This forum has been archived. All content is frozen. Please use KDE Discuss instead.

1.2b2 can't build universalamarok.cpp

Tags: None
(comma "," separated)
alexis.deruelle
Karma
0
Hi,

Couldn\'t get beta2 to build, build log and config.h appended.

Greetz,

--
Alex.

config.h

[code:1]

/* config.h. Generated by configure. */
/* config.h.in. Generated from configure.in by autoheader. */

/* Amazon cover download support enabled */
#define AMAZON_SUPPORT 1

/* have aRts and kdemultimedia */
#define HAVE_ARTS 1

/* Define if you have the CoreAudio API */
/* #undef HAVE_COREAUDIO */

/* Define to 1 if you have the header file. */
/* #undef HAVE_CRT_EXTERNS_H */

/* Defines if your system has the crypt function */
#define HAVE_CRYPT 1

/* Define to 1 if you have the header file. */
#define HAVE_DLFCN_H 1

/* have GStreamer */
#define HAVE_GSTREAMER 1

/* Define to 1 if you have the header file. */
#define HAVE_INTTYPES_H 1

/* have KJSEMBED */
/* #undef HAVE_KJSEMBED */

/* Define if you have libjpeg */
#define HAVE_LIBJPEG 1

/* Define if you have libpng */
/* #undef HAVE_LIBPNG */

/* Define if you have a working libpthread (will enable threaded code) */
#define HAVE_LIBPTHREAD 1

/* have LIBVISUAL */
/* #undef HAVE_LIBVISUAL */

/* Define if you have libz */
#define HAVE_LIBZ 1

/* have MAS */
/* #undef HAVE_MAS */

/* Define to 1 if you have the header file. */
#define HAVE_MEMORY_H 1

/* have MusicBrainz */
/* #undef HAVE_MUSICBRAINZ */

/* have NMM */
/* #undef HAVE_NMM */

/* Define if your system needs _NSGetEnviron to set up the environment */
/* #undef HAVE_NSGETENVIRON */

/* have Qt with OpenGL support */
#define HAVE_QGLWIDGET 1

/* Define if you have res_init */
#define HAVE_RES_INIT 1

/* Define if you have the res_init prototype */
#define HAVE_RES_INIT_PROTO 1

/* Define if you have setenv */
#define HAVE_SETENV 1

/* Define if you have the setenv prototype */
#define HAVE_SETENV_PROTO 1

/* Define if you have a STL implementation by SGI */
#define HAVE_SGI_STL 1

/* Define to 1 if you have the `snprintf\' function. */
#define HAVE_SNPRINTF 1

/* Define to 1 if you have the header file. */
#define HAVE_STDINT_H 1

/* Define to 1 if you have the header file. */
#define HAVE_STDLIB_H 1

/* Define to 1 if you have the header file. */
#define HAVE_STRINGS_H 1

/* Define to 1 if you have the header file. */
#define HAVE_STRING_H 1

/* Define if you have strlcat */
/* #undef HAVE_STRLCAT */

/* Define if you have the strlcat prototype */
/* #undef HAVE_STRLCAT_PROTO */

/* Define if you have strlcpy */
/* #undef HAVE_STRLCPY */

/* Define if you have the strlcpy prototype */
/* #undef HAVE_STRLCPY_PROTO */

/* Define to 1 if you have the header file. */
#define HAVE_SYS_BITYPES_H 1

/* Define to 1 if you have the header file. */
#define HAVE_SYS_STAT_H 1

/* Define to 1 if you have the header file. */
#define HAVE_SYS_TYPES_H 1

/* have TagLib */
#define HAVE_TAGLIB 1

/* Define to 1 if you have the header file. */
#define HAVE_UNISTD_H 1

/* Define if you have unsetenv */
#define HAVE_UNSETENV 1

/* Define if you have the unsetenv prototype */
#define HAVE_UNSETENV_PROTO 1

/* Define to 1 if you have the `vsnprintf\' function. */
#define HAVE_VSNPRINTF 1

/* have Xine */
#define HAVE_XINE 1

/* have XMMS */
/* #undef HAVE_XMMS */

/* Suffix for lib directories */
#define KDELIBSUFF \"\"

/* Name of package */
#define PACKAGE \"kdeextragear-1\"

/* Define to the address where bug reports for this package should be sent. */
#define PACKAGE_BUGREPORT \"\"

/* Define to the full name of this package. */
#define PACKAGE_NAME \"\"

/* Define to the full name and version of this package. */
#define PACKAGE_STRING \"\"

/* Define to the one symbol short name of this package. */
#define PACKAGE_TARNAME \"\"

/* Define to the version of this package. */
#define PACKAGE_VERSION \"\"

/* The size of a `char *\', as computed by sizeof. */
#define SIZEOF_CHAR_P 4

/* The size of a `int\', as computed by sizeof. */
#define SIZEOF_INT 4

/* The size of a `long\', as computed by sizeof. */
#define SIZEOF_LONG 4

/* The size of a `short\', as computed by sizeof. */
#define SIZEOF_SHORT 2

/* The size of a `size_t\', as computed by sizeof. */
#define SIZEOF_SIZE_T 4

/* The size of a `unsigned long\', as computed by sizeof. */
#define SIZEOF_UNSIGNED_LONG 4

/* Determine pointer size for SQLite */
#define SQLITE_PTR_SZ SIZEOF_CHAR_P

/* Define to 1 if you have the ANSI C header files. */
#define STDC_HEADERS 1

/* MySql database support enabled */
/* #undef USE_MYSQL */

/* Version number of package */
#define VERSION \"3.3.90\"

/* Defined if compiling without arts */
/* #undef WITHOUT_ARTS */

/* Define the path to XMMS plugins */
#define XMMS_PLUGIN_PATH \"\"

/*
* jpeg.h needs HAVE_BOOLEAN, when the system uses boolean in system
* headers and I\'m too lazy to write a configure test as long as only
* unixware is related
*/
#ifdef _UNIXWARE
#define HAVE_BOOLEAN
#endif

/*
* AIX defines FD_SET in terms of bzero, but fails to include
* that defines bzero.
*/

#if defined(_AIX)
#include
#endif

#if defined(HAVE_NSGETENVIRON) && defined(HAVE_CRT_EXTERNS_H)
# include
# include
# define environ (*_NSGetEnviron())
#endif

#if !defined(HAVE_RES_INIT_PROTO)
#ifdef __cplusplus
extern \"C\" {
#endif
int res_init(void);
#ifdef __cplusplus
}
#endif
#endif

#if !defined(HAVE_SETENV_PROTO)
#ifdef __cplusplus
extern \"C\" {
#endif
int setenv (const char *, const char *, int);
#ifdef __cplusplus
}
#endif
#endif

#if !defined(HAVE_STRLCAT_PROTO)
#ifdef __cplusplus
extern \"C\" {
#endif
unsigned long strlcat(char*, const char*, unsigned long);
#ifdef __cplusplus
}
#endif
#endif

#if !defined(HAVE_STRLCPY_PROTO)
#ifdef __cplusplus
extern \"C\" {
#endif
unsigned long strlcpy(char*, const char*, unsigned long);
#ifdef __cplusplus
}
#endif
#endif

#if !defined(HAVE_UNSETENV_PROTO)
#ifdef __cplusplus
extern \"C\" {
#endif
void unsetenv (const char *);
#ifdef __cplusplus
}
#endif
#endif

/*
* On HP-UX, the declaration of vsnprintf() is needed every time !
*/

#if !defined(HAVE_VSNPRINTF) || defined(hpux)
#if __STDC__
#include
#include
#else
#include
#endif
#ifdef __cplusplus
extern \"C\"
#endif
int vsnprintf(char *str, size_t n, char const *fmt, va_list ap);
#ifdef __cplusplus
extern \"C\"
#endif
int snprintf(char *str, size_t n, char const *fmt, ...);
#endif

#if defined(__SVR4) && !defined(__svr4__)
#define __svr4__ 1
#endif

/* type to use in place of socklen_t if not defined */
#define kde_socklen_t socklen_t

/* type to use in place of socklen_t if not defined (deprecated, use
kde_socklen_t) */
#define ksize_t socklen_t

[/code:1]

build log

[code:1]
/bin/sh ../../../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I/usr/include/kde -I/usr/lib/qt-3.3/include -I/usr/X11R6/include -DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -O2 -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -c -o universalamarok.lo `test -f \'universalamarok.cpp\' || echo \'./\'`universalamarok.cpp
In file included from universalamarok.cpp:20:
universalamarok.h:23:31: konqsidebarplugin.h: No such file or directory
In file included from universalamarok.cpp:20:
universalamarok.h:37: error: expected class-name before \'{\' token
universalamarok.h:40: error: expected `)\' before \'*\' token
universalamarok.h:46: error: expected `,\' or `...\' before \'&\' token
universalamarok.h:46: error: ISO C++ forbids declaration of `KURL\' with no type
universalamarok.h:55: error: field `fileDT\' has incomplete type
universalamarok.h:65: error: expected `,\' or `...\' before \'&\' token
universalamarok.h:65: error: ISO C++ forbids declaration of `KURL\' with no type
universalamarok.h:37: warning: `class UniversalAmarok\' has virtual functions but non-virtual destructor
universalamarok.cpp:45: error: prototype for `UniversalAmarok::UniversalAmarok(KInstance*, QObject*, QWidget*, QString&, const char*)\' does not match any in class `UniversalAmarok\'
universalamarok.h:37: error: candidates are: UniversalAmarok::UniversalAmarok()
universalamarok.h:37: error: UniversalAmarok::UniversalAmarok(const UniversalAmarok&«»)
universalamarok.cpp: In constructor `UniversalAmarok::UniversalAmarok(KInstance*, QObject*, QWidget*, QString&, const char*)\':
universalamarok.cpp:46: error: class `UniversalAmarok\' does not have any field named `KonqSidebarPlugin\'
universalamarok.cpp:57: error: no matching function for call to `KToolBar::insertButton(const char[13], int, const char[11], UniversalAmarok* const, const char[12])\'
/usr/include/kde/ktoolbar.h:208: note: candidates are: int KToolBar::insertButton(const QString&, int, bool, const QString&, int, KInstance*)
/usr/include/kde/ktoolbar.h:231: note: int KToolBar::insertButton(const QString&, int, const char*, const QObject*, const char*, bool, const QString&, int, KInstance*)
/usr/include/kde/ktoolbar.h:258: note: int KToolBar::insertButton(const QPixmap&, int, bool, const QString&, int)
/usr/include/kde/ktoolbar.h:280: note: int KToolBar::insertButton(const QPixmap&, int, const char*, const QObject*, const char*, bool, const QString&, int)
/usr/include/kde/ktoolbar.h:295: note: int KToolBar::insertButton(const QString&, int, QPopupMenu*, bool, const QString&, int)
/usr/include/kde/ktoolbar.h:310: note: int KToolBar::insertButton(const QPixmap&, int, QPopupMenu*, bool, const QString&, int)
universalamarok.cpp:58: error: no matching function for call to `KToolBar::insertButton(const char[12], int, const char[11], UniversalAmarok* const, const char[12])\'
/usr/include/kde/ktoolbar.h:208: note: candidates are: int KToolBar::insertButton(const QString&, int, bool, const QString&, int, KInstance*)
/usr/include/kde/ktoolbar.h:231: note: int KToolBar::insertButton(const QString&, int, const char*, const QObject*, const char*, bool, const QString&, int, KInstance*)
/usr/include/kde/ktoolbar.h:258: note: int KToolBar::insertButton(const QPixmap&, int, bool, const QString&, int)
/usr/include/kde/ktoolbar.h:280: note: int KToolBar::insertButton(const QPixmap&, int, const char*, const QObject*, const char*, bool, const QString&, int)
/usr/include/kde/ktoolbar.h:295: note: int KToolBar::insertButton(const QString&, int, QPopupMenu*, bool, const QString&, int)
/usr/include/kde/ktoolbar.h:310: note: int KToolBar::insertButton(const QPixmap&, int, QPopupMenu*, bool, const QString&, int)
universalamarok.cpp:59: error: no matching function for call to `KToolBar::insertButton(const char[13], int, const char[11], UniversalAmarok* const, const char[13])\'
/usr/include/kde/ktoolbar.h:208: note: candidates are: int KToolBar::insertButton(const QString&, int, bool, const QString&, int, KInstance*)
/usr/include/kde/ktoolbar.h:231: note: int KToolBar::insertButton(const QString&, int, const char*, const QObject*, const char*, bool, const QString&, int, KInstance*)
/usr/include/kde/ktoolbar.h:258: note: int KToolBar::insertButton(const QPixmap&, int, bool, const QString&, int)
/usr/include/kde/ktoolbar.h:280: note: int KToolBar::insertButton(const QPixmap&, int, const char*, const QObject*, const char*, bool, const QString&, int)
/usr/include/kde/ktoolbar.h:295: note: int KToolBar::insertButton(const QString&, int, QPopupMenu*, bool, const QString&, int)
/usr/include/kde/ktoolbar.h:310: note: int KToolBar::insertButton(const QPixmap&, int, QPopupMenu*, bool, const QString&, int)
universalamarok.cpp:60: error: no matching function for call to `KToolBar::insertButton(const char[12], int, const char[11], UniversalAmarok* const, const char[12])\'
/usr/include/kde/ktoolbar.h:208: note: candidates are: int KToolBar::insertButton(const QString&, int, bool, const QString&, int, KInstance*)
/usr/include/kde/ktoolbar.h:231: note: int KToolBar::insertButton(const QString&, int, const char*, const QObject*, const char*, bool, const QString&, int, KInstance*)
/usr/include/kde/ktoolbar.h:258: note: int KToolBar::insertButton(const QPixmap&, int, bool, const QString&, int)
/usr/include/kde/ktoolbar.h:280: note: int KToolBar::insertButton(const QPixmap&, int, const char*, const QObject*, const char*, bool, const QString&, int)
/usr/include/kde/ktoolbar.h:295: note: int KToolBar::insertButton(const QString&, int, QPopupMenu*, bool, const QString&, int)
/usr/include/kde/ktoolbar.h:310: note: int KToolBar::insertButton(const QPixmap&, int, QPopupMenu*, bool, const QString&, int)
universalamarok.cpp:61: error: no matching function for call to `KToolBar::insertButton(const char[11], int, const char[11], UniversalAmarok* const, const char[12])\'
/usr/include/kde/ktoolbar.h:208: note: candidates are: int KToolBar::insertButton(const QString&, int, bool, const QString&, int, KInstance*)
/usr/include/kde/ktoolbar.h:231: note: int KToolBar::insertButton(const QString&, int, const char*, const QObject*, const char*, bool, const QString&, int, KInstance*)
/usr/include/kde/ktoolbar.h:258: note: int KToolBar::insertButton(const QPixmap&, int, bool, const QString&, int)
/usr/include/kde/ktoolbar.h:280: note: int KToolBar::insertButton(const QPixmap&, int, const char*, const QObject*, const char*, bool, const QString&, int)
/usr/include/kde/ktoolbar.h:295: note: int KToolBar::insertButton(const QString&, int, QPopupMenu*, bool, const QString&, int)
/usr/include/kde/ktoolbar.h:310: note: int KToolBar::insertButton(const QPixmap&, int, QPopupMenu*, bool, const QString&, int)
universalamarok.cpp:64: error: no matching function for call to `QTimer::QTimer(UniversalAmarok* const)\'
/usr/lib/qt-3.3/include/qtimer.h:76: note: candidates are: QTimer::QTimer(const QTimer&«»)
/usr/lib/qt-3.3/include/qtimer.h:50: note: QTimer::QTimer(QObject*, const char*)
universalamarok.cpp:65: error: `connect\' undeclared (first use this function)
universalamarok.cpp:65: error: (Each undeclared identifier is reported only once for each function it appears in.)
In file included from universalamarok.cpp:78:
universalamarok.moc: In static member function `static QMetaObject* UniversalAmarok::staticMetaObject()\':
universalamarok.moc:54: error: `KonqSidebarPlugin\' has not been declared
universalamarok.moc: In member function `virtual void* UniversalAmarok::qt_cast(const char*)\':
universalamarok.moc:98: error: `KonqSidebarPlugin\' has not been declared
universalamarok.moc: In member function `virtual bool UniversalAmarok::qt_invoke(int, QUObject*)\':
universalamarok.moc:111: error: no matching function for call to `UniversalAmarok::openURLRequest(const KURL&«»)\'
universalamarok.h:65: note: candidates are: void UniversalAmarok::openURLRequest(int)
universalamarok.moc:114: error: `KonqSidebarPlugin\' has not been declared
universalamarok.moc: In member function `virtual bool UniversalAmarok::qt_emit(int, QUObject*)\':
universalamarok.moc:121: error: `KonqSidebarPlugin\' has not been declared
universalamarok.moc: In member function `virtual bool UniversalAmarok::qt_property(int, int, QVariant*)\':
universalamarok.moc:127: error: `KonqSidebarPlugin\' has not been declared
universalamarok.cpp: In function `void* create_konqsidebar_universalamarok(KInstance*, QObject*, QWidget*, QString&, constchar*)\':
universalamarok.cpp:85: error: no matching function for call to `UniversalAmarok::UniversalAmarok(KInstance*&, QObject*&, QWidget*&, QString&, const char*&«»)\'
universalamarok.h:37: note: candidates are: UniversalAmarok::UniversalAmarok()
universalamarok.h:37: note: UniversalAmarok::UniversalAmarok(const UniversalAmarok&«»)
universalamarok.cpp: In member function `void UniversalAmarok::updateStatus()\':
universalamarok.cpp:124: error: `fileDT\' undeclared (first use this function)
universalamarok.cpp: In member function `QString UniversalAmarok::getCurrentPlaying()\':
universalamarok.cpp:140: warning: passing NULL used for non-pointer converting 1 of `QMemArray::QMemArray(int) [withtype = char]\'
universalamarok.cpp: At global scope:
universalamarok.cpp:152: error: prototype for `void UniversalAmarok::openURLRequest(const KURL&«»)\' does not match any in class `UniversalAmarok\'
universalamarok.h:65: error: candidate is: void UniversalAmarok::openURLRequest(int)
universalamarok.cpp: In member function `void UniversalAmarok::checkForAmarok()\':
universalamarok.cpp:168: warning: unused variable \'pid\'
universalamarok.h: At global scope:
universalamarok.h:46: warning: unused parameter \'KURL\'
make[4]: *** [universalamarok.lo] Erreur 1
make[4]: Leaving directory `/home/alexis/amarok-1.2-beta2/amarok/src/konquisidebar\'
make[3]: *** [all-recursive] Erreur 1
make[3]: Leaving directory `/home/alexis/amarok-1.2-beta2/amarok/src\'
make[2]: *** [all-recursive] Erreur 1
make[2]: Leaving directory `/home/alexis/amarok-1.2-beta2/amarok\'
make[1]: *** [all-recursive] Erreur 1
make[1]: Leaving directory `/home/alexis/amarok-1.2-beta2\'
make: *** [all] Erreur 2
[/code:1]
alexis.deruelle
Karma
0
OK forget it : missing kdebase-devel package.

It should be detected by configure, no ?

--
Alex.


Bookmarks



Who is online

Registered users: abc72656, Bing [Bot], daret, Google [Bot], Sogou [Bot], Yahoo [Bot]