Menu

Won't compile in Ubuntu

Help
Kris
2008-01-26
2013-04-30
  • Kris

    Kris - 2008-01-26

    I can't get either program to compile in Ubuntu.

    Here's the errors I get for usbb2k-api

    kris@kris-laptop:~/Desktop/usbb2k-api-mod2.7/src$ make
    cc -g -O1 `pkg-config --cflags libusb`  -Wall   -c -o usbb2k-main.o usbb2k-main.c
    usbb2k-main.c: In function ‘signal_handler’:
    usbb2k-main.c:70: warning: implicit declaration of function ‘fifoWrite’
    usbb2k-main.c: In function ‘halModeInit’:
    usbb2k-main.c:284: warning: implicit declaration of function ‘yld_decode_model’
    usbb2k-main.c:289: warning: implicit declaration of function ‘createYealinkDeviceName’
    usbb2k-main.c: In function ‘main’:
    usbb2k-main.c:402: error: ‘usbServer’ undeclared (first use in this function)
    usbb2k-main.c:402: error: (Each undeclared identifier is reported only once
    usbb2k-main.c:402: error: for each function it appears in.)
    usbb2k-main.c:412: warning: implicit declaration of function ‘cmdServer’
    make: *** [usbb2k-main.o] Error 1

    Here's the errors for kb2kskype

    kris@kris-laptop:~/Desktop/kb2kskype-0.3.6/src$ make
    source='skypeapidlg.cpp' object='skypeapidlg.o' libtool=no \         depfile='.deps/skypeapidlg.Po' tmpdepfile='.deps/skypeapidlg.TPo' \         depmode=gcc3 /bin/bash /home/kris/Desktop/kb2kskype-0.3.6/admin/depcomp \         g++ -DHAVE_CONFIG_H -I. -I/home/kris/Desktop/kb2kskype-0.3.6/src -I.. -I/usr/include/kde -I/usr/share/qt3/include -I.   -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -O2 -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common  -c -o skypeapidlg.o `test -f 'skypeapidlg.cpp' || echo '/home/kris/Desktop/kb2kskype-0.3.6/src/'`skypeapidlg.cpp
    In file included from skypeapidlg.cpp:71:
    skypeapidlg.h:34:24: error: testapp_ui.h: No such file or directory
    skypeapidlg.h:48: error: expected class-name before ‘{’ token
    skypeapidlg.h:48: warning: ‘class SkypeAPI’ has virtual functions but non-virtual destructor
    /usr/share/qt3/include/qvariant.h:104: error: expected identifier before ‘int’
    /usr/share/qt3/include/qvariant.h:104: error: expected `}' before ‘int’
    /usr/share/qt3/include/qvariant.h:104: error: expected unqualified-id before ‘,’ token
    /usr/share/qt3/include/qvariant.h:123: error: expected unqualified-id before ‘)’ token
    /usr/share/qt3/include/qvariant.h:124: error: expected constructor, destructor, or type conversion before ‘;’ token
    /usr/share/qt3/include/qvariant.h:125: error: expected unqualified-id before ‘const’
    /usr/share/qt3/include/qvariant.h:125: error: expected `)' before ‘const’
    /usr/share/qt3/include/qvariant.h:127: error: expected `)' before ‘&’ token
    /usr/share/qt3/include/qvariant.h:129: error: expected unqualified-id before ‘const’
    /usr/share/qt3/include/qvariant.h:129: error: expected `)' before ‘const’
    /usr/share/qt3/include/qvariant.h:130: error: expected unqualified-id before ‘const’
    /usr/share/qt3/include/qvariant.h:130: error: expected `)' before ‘const’
    /usr/share/qt3/include/qvariant.h:131: error: expected unqualified-id before ‘const’
    /usr/share/qt3/include/qvariant.h:131: error: expected `)' before ‘const’
    /usr/share/qt3/include/qvariant.h:133: error: expected unqualified-id before ‘const’
    /usr/share/qt3/include/qvariant.h:133: error: expected `)' before ‘const’
    /usr/share/qt3/include/qvariant.h:135: error: expected unqualified-id before ‘const’
    /usr/share/qt3/include/qvariant.h:135: error: expected `)' before ‘const’
    /usr/share/qt3/include/qvariant.h:136: error: expected unqualified-id before ‘const’
    /usr/share/qt3/include/qvariant.h:136: error: expected `)' before ‘const’
    /usr/share/qt3/include/qvariant.h:137: error: expected unqualified-id before ‘const’
    /usr/share/qt3/include/qvariant.h:137: error: expected `)' before ‘const’
    /usr/share/qt3/include/qvariant.h:138: error: expected unqualified-id before ‘const’
    /usr/share/qt3/include/qvariant.h:138: error: expected `)' before ‘const’
    /usr/share/qt3/include/qvariant.h:139: error: expected unqualified-id before ‘const’
    /usr/share/qt3/include/qvariant.h:139: error: expected `)' before ‘const’
    /usr/share/qt3/include/qvariant.h:140: error: expected unqualified-id before ‘const’
    /usr/share/qt3/include/qvariant.h:140: error: expected `)' before ‘const’
    /usr/share/qt3/include/qvariant.h:141: error: expected unqualified-id before ‘const’
    /usr/share/qt3/include/qvariant.h:141: error: expected `)' before ‘const’
    /usr/share/qt3/include/qvariant.h:142: error: expected unqualified-id before ‘const’
    /usr/share/qt3/include/qvariant.h:142: error: expected `)' before ‘const’
    /usr/share/qt3/include/qvariant.h:143: error: expected unqualified-id before ‘const’
    /usr/share/qt3/include/qvariant.h:143: error: expected `)' before ‘const’
    /usr/share/qt3/include/qvariant.h:144: error: expected unqualified-id before ‘const’
    /usr/share/qt3/include/qvariant.h:144: error: expected `)' before ‘const’
    /usr/share/qt3/include/qvariant.h:145: error: expected unqualified-id before ‘const’
    /usr/share/qt3/include/qvariant.h:145: error: expected `)' before ‘const’
    /usr/share/qt3/include/qvariant.h:146: error: expected unqualified-id before ‘const’
    /usr/share/qt3/include/qvariant.h:146: error: expected `)' before ‘const’
    /usr/share/qt3/include/qvariant.h:147: error: expected unqualified-id before ‘const’
    /usr/share/qt3/include/qvariant.h:147: error: expected `)' before ‘const’
    /usr/share/qt3/include/qvariant.h:148: error: expected unqualified-id before ‘const’
    /usr/share/qt3/include/qvariant.h:148: error: expected `)' before ‘const’
    /usr/share/qt3/include/qvariant.h:149: error: expected unqualified-id before ‘const’
    /usr/share/qt3/include/qvariant.h:149: error: expected `)' before ‘const’
    /usr/share/qt3/include/qvariant.h:150: error: expected unqualified-id before ‘const’
    /usr/share/qt3/include/qvariant.h:150: error: expected `)' before ‘const’
    /usr/share/qt3/include/qvariant.h:151: error: expected unqualified-id before ‘const’
    /usr/share/qt3/include/qvariant.h:151: error: expected `)' before ‘const’
    /usr/share/qt3/include/qvariant.h:152: error: expected unqualified-id before ‘const’
    /usr/share/qt3/include/qvariant.h:152: error: expected `)' before ‘const’
    /usr/share/qt3/include/qvariant.h:153: error: expected unqualified-id before ‘const’
    /usr/share/qt3/include/qvariant.h:153: error: expected `)' before ‘const’
    /usr/share/qt3/include/qvariant.h:154: error: expected unqualified-id before ‘const’
    /usr/share/qt3/include/qvariant.h:154: error: expected `)' before ‘const’
    /usr/share/qt3/include/qvariant.h:156: error: expected unqualified-id before ‘const’
    /usr/share/qt3/include/qvariant.h:156: error: expected `)' before ‘const’
    /usr/share/qt3/include/qvariant.h:158: error: expected unqualified-id before ‘const’
    /usr/share/qt3/include/qvariant.h:158: error: expected `)' before ‘const’
    /usr/share/qt3/include/qvariant.h:160: error: expected unqualified-id before ‘const’
    /usr/share/qt3/include/qvariant.h:160: error: expected `)' before ‘const’
    /usr/share/qt3/include/qvariant.h:161: error: expected unqualified-id before ‘const’
    /usr/share/qt3/include/qvariant.h:161: error: expected `)' before ‘const’
    /usr/share/qt3/include/qvariant.h:163: error: expected unqualified-id before ‘int’
    /usr/share/qt3/include/qvariant.h:163: error: expected `)' before ‘int’
    /usr/share/qt3/include/qvariant.h:164: error: ‘QVariant uint’ redeclared as different kind of symbol
    /usr/include/sys/types.h:153: error: previous declaration of ‘typedef unsigned int uint’
    /usr/share/qt3/include/qvariant.h:165: error: ‘QVariant Q_LLONG’ redeclared as different kind of symbol
    /usr/share/qt3/include/qglobal.h:734: error: previous declaration of ‘typedef Q_INT64 Q_LLONG’
    /usr/share/qt3/include/qvariant.h:166: error: ‘QVariant Q_ULLONG’ redeclared as different kind of symbol
    /usr/share/qt3/include/qglobal.h:735: error: previous declaration of ‘typedef Q_UINT64 Q_ULLONG’
    /usr/share/qt3/include/qvariant.h:168: error: expected unqualified-id before ‘bool’
    /usr/share/qt3/include/qvariant.h:168: error: expected `)' before ‘bool’
    /usr/share/qt3/include/qvariant.h:169: error: expected unqualified-id before ‘double’
    /usr/share/qt3/include/qvariant.h:169: error: expected `)' before ‘double’
    /usr/share/qt3/include/qvariant.h:172: error: ‘QVariant& operator=(const QVariant&)’ must be a nonstatic member function
    /usr/share/qt3/include/qvariant.h:173: error: non-member function ‘bool operator==(const QVariant&)’ cannot have cv-qualifier
    /usr/share/qt3/include/qvariant.h:173: error: ‘bool operator==(const QVariant&)’ must take exactly two arguments
    /usr/share/qt3/include/qvariant.h:174: error: non-member function ‘bool operator!=(const QVariant&)’ cannot have cv-qualifier
    /usr/share/qt3/include/qvariant.h:174: error: ‘bool operator!=(const QVariant&)’ must take exactly two arguments
    /usr/share/qt3/include/qvariant.h:176: error: ‘Type’ does not name a type
    /usr/share/qt3/include/qvariant.h:177: error: non-member function ‘const char* typeName()’ cannot have cv-qualifier
    /usr/share/qt3/include/qvariant.h:179: error: ‘Type’ was not declared in this scope
    /usr/share/qt3/include/qvariant.h:179: error: expected ‘,’ or ‘;’ before ‘const’
    /usr/share/qt3/include/qvariant.h:180: error: ‘Type’ was not declared in this scope
    /usr/share/qt3/include/qvariant.h:182: error: non-member function ‘bool isValid()’ cannot have cv-qualifier
    /usr/share/qt3/include/qvariant.h:183: error: non-member function ‘bool isNull()’ cannot have cv-qualifier
    /usr/share/qt3/include/qvariant.h:187: error: non-member function ‘const QString toString()’ cannot have cv-qualifier
    /usr/share/qt3/include/qvariant.h:188: error: non-member function ‘const QCString toCString()’ cannot have cv-qualifier
    /usr/share/qt3/include/qvariant.h:190: error: non-member function ‘const QStringList toStringList()’ cannot have cv-qualifier
    /usr/share/qt3/include/qvariant.h:192: error: non-member function ‘const QFont toFont()’ cannot have cv-qualifier
    /usr/share/qt3/include/qvariant.h:193: error: non-member function ‘const QPixmap toPixmap()’ cannot have cv-qualifier
    /usr/share/qt3/include/qvariant.h:194: error: non-member function ‘const QImage toImage()’ cannot have cv-qualifier
    /usr/share/qt3/include/qvariant.h:195: error: non-member function ‘const QBrush toBrush()’ cannot have cv-qualifier
    /usr/share/qt3/include/qvariant.h:196: error: non-member function ‘const QPoint toPoint()’ cannot have cv-qualifier
    /usr/share/qt3/include/qvariant.h:197: error: non-member function ‘const QRect toRect()’ cannot have cv-qualifier
    /usr/share/qt3/include/qvariant.h:198: error: non-member function ‘const QSize toSize()’ cannot have cv-qualifier
    /usr/share/qt3/include/qvariant.h:199: error: non-member function ‘const QColor toColor()’ cannot have cv-qualifier
    /usr/share/qt3/include/qvariant.h:200: error: non-member function ‘const QPalette toPalette()’ cannot have cv-qualifier
    /usr/share/qt3/include/qvariant.h:201: error: non-member function ‘const QColorGroup toColorGroup()’ cannot have cv-qualifier
    /usr/share/qt3/include/qvariant.h:202: error: non-member function ‘const QIconSet toIconSet()’ cannot have cv-qualifier
    /usr/share/qt3/include/qvariant.h:203: error: non-member function ‘const QPointArray toPointArray()’ cannot have cv-qualifier
    /usr/share/qt3/include/qvariant.h:204: error: non-member function ‘const QBitmap toBitmap()’ cannot have cv-qualifier
    /usr/share/qt3/include/qvariant.h:205: error: non-member function ‘const QRegion toRegion()’ cannot have cv-qualifier
    /usr/share/qt3/include/qvariant.h:206: error: non-member function ‘const QCursor toCursor()’ cannot have cv-qualifier
    /usr/share/qt3/include/qvariant.h:207: error: non-member function ‘const QDate toDate()’ cannot have cv-qualifier
    /usr/share/qt3/include/qvariant.h:208: error: non-member function ‘const QTime toTime()’ cannot have cv-qualifier
    /usr/share/qt3/include/qvariant.h:209: error: non-member function ‘const QDateTime toDateTime()’ cannot have cv-qualifier
    /usr/share/qt3/include/qvariant.h:210: error: non-member function ‘const QByteArray toByteArray()’ cannot have cv-qualifier
    /usr/share/qt3/include/qvariant.h:211: error: non-member function ‘const QBitArray toBitArray()’ cannot have cv-qualifier
    /usr/share/qt3/include/qvariant.h:213: error: non-member function ‘const QKeySequence toKeySequence()’ cannot have cv-qualifier
    /usr/share/qt3/include/qvariant.h:215: error: non-member function ‘const QPen toPen()’ cannot have cv-qualifier
    /usr/share/qt3/include/qvariant.h:216: error: non-member function ‘int toInt(bool*)’ cannot have cv-qualifier
    /usr/share/qt3/include/qvariant.h:217: error: non-member function ‘uint toUInt(bool*)’ cannot have cv-qualifier
    /usr/share/qt3/include/qvariant.h:218: error: non-member function ‘Q_LLONG toLongLong(bool*)’ cannot have cv-qualifier
    /usr/share/qt3/include/qvariant.h:219: error: non-member function ‘Q_ULLONG toULongLong(bool*)’ cannot have cv-qualifier
    /usr/share/qt3/include/qvariant.h:220: error: non-member function ‘bool toBool()’ cannot have cv-qualifier
    /usr/share/qt3/include/qvariant.h:221: error: non-member function ‘double toDouble(bool*)’ cannot have cv-qualifier
    /usr/share/qt3/include/qvariant.h:223: error: non-member function ‘const QValueList<QVariant> toList()’ cannot have cv-qualifier
    /usr/share/qt3/include/qvariant.h:224: error: non-member function ‘const QMap<QString, QVariant> toMap()’ cannot have cv-qualifier
    /usr/share/qt3/include/qvariant.h:226: error: ‘QSizePolicy’ does not name a type
    /usr/share/qt3/include/qvariant.h:229: error: non-member function ‘QValueListConstIterator<QString> stringListBegin()’ cannot have cv-qualifier
    /usr/share/qt3/include/qvariant.h:230: error: non-member function ‘QValueListConstIterator<QString> stringListEnd()’ cannot have cv-qualifier
    /usr/share/qt3/include/qvariant.h:231: error: non-member function ‘QValueListConstIterator<QVariant> listBegin()’ cannot have cv-qualifier
    /usr/share/qt3/include/qvariant.h:232: error: non-member function ‘QValueListConstIterator<QVariant> listEnd()’ cannot have cv-qualifier
    /usr/share/qt3/include/qvariant.h:233: error: non-member function ‘QMapConstIterator<QString, QVariant> mapBegin()’ cannot have cv-qualifier
    /usr/share/qt3/include/qvariant.h:234: error: non-member function ‘QMapConstIterator<QString, QVariant> mapEnd()’ cannot have cv-qualifier
    /usr/share/qt3/include/qvariant.h:235: error: non-member function ‘QMapConstIterator<QString, QVariant> mapFind(const QString&)’ cannot have cv-qualifier
    /usr/share/qt3/include/qvariant.h:276: error: expected constructor, destructor, or type conversion before ‘&’ token
    /usr/share/qt3/include/qvariant.h:280: error: non-member function ‘void save(QDataStream&)’ cannot have cv-qualifier
    /usr/share/qt3/include/qvariant.h:282: error: ‘Type’ was not declared in this scope
    /usr/share/qt3/include/qvariant.h:283: error: ‘Type’ does not name a type
    /usr/share/qt3/include/qvariant.h:285: error: expected unqualified-id before ‘private’
    /usr/share/qt3/include/qvariant.h:297: error: ‘Type’ does not name a type
    /usr/share/qt3/include/qvariant.h:313: error: expected unqualified-id before ‘public’
    /usr/share/qt3/include/qvariant.h:315: error: expected declaration before ‘}’ token
    /usr/share/qt3/include/qvariant.h:282: warning: ‘typeToName’ defined but not used
    make: *** [skypeapidlg.o] Error 1

    I have been using linux for only six months and have always used packages to install software. This is the first time I have compiled a program. Any and all help is greatly appreciated.

     
    • Simon_6162

      Simon_6162 - 2008-01-28

      I had trouble compiling the jan 20th release but the latest svn is fine. Additionally I haven't got hal working on fedora yet but marcos says it works on ubuntu. This version http://kb2kskype.sourceforge.net/downloads...01-2008.tar.bz2 has the normal configure and make scripts and should setup hal (see the readme for where files go.) when you make install if hal doesn't work move the binary to somewhere in your path and copy the init script over as it says on the website.

      For kb2kskype have you checked you have all the dependencies listed on the website http://kb2kskype.sourceforge.net/install.html ? The run "comfigure" then run "make clean" then run "make" if you get errors try running "make" again incase its a build order issue.

      Simon

       
      • jareguero

        jareguero - 2008-01-30

        I make usbb2k-api-mod2.7 work with hal on Fedora, putting usbb2k_api in /usr/libexec/ instead of /usr/lib/hal/ but I have some problems  and now I am working without hal.

        Jose Alberto

         
    • Kris

      Kris - 2008-01-29

      I'm not familiar with SVN. How to I get the latest SVN. Also the link to the version that you said works, didn't render a page.

      Thanks,
      KS

       
    • Simon_6162

      Simon_6162 - 2008-01-29

      Sorry the link should have been this. This is a package from the latest svn

      http://kb2kskype.sourceforge.net/downloads/usbb2k-api-mod-2.8-svn-21-01-2008.tar.bz2

       

Log in to post a comment.