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

compile error, QT4

Tags: None
(comma "," separated)
sanskritter
Registered Member
Posts
30
Karma
0

compile error, QT4

Tue Jul 16, 2013 11:10 am
I thought I had all the dependencies sorted, having compiled a few times before.
apt-get build-dep amarok thinks so.
but i am getting this error:
Code: Select all
[ 16%] Generating CollectionAdaptor.moc
Scanning dependencies of target amaroklib
[ 16%] Building CXX object src/CMakeFiles/amaroklib.dir/amaroklib_automoc.o
In file included from /usr/src/amarok/src/amaroklib_automoc.cpp:6:0:
/usr/src/amarok/src/moc_AmarokScriptConfig.cpp: In static member function ‘static void AmarokScript::AmarokScriptConfig::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)’:
/usr/src/amarok/src/moc_AmarokScriptConfig.cpp:56:28: error: variable ‘QVariant _r’ has initializer but incomplete type
In file included from /usr/src/amarok/src/amaroklib_automoc.cpp:6:0:
/usr/src/amarok/src/moc_AmarokScriptConfig.cpp:56:140: error: invalid use of incomplete type ‘class QVariant’
In file included from /usr/include/qt4/QtGui/qwidget.h:47:0,
                 from /usr/include/qt4/QtGui/QWidget:1,
                 from /usr/src/amarok/src/widgets/FilenameLayoutWidget.h:24,
                 from /usr/src/amarok/src/moc_FilenameLayoutWidget.cpp:9,
                 from /usr/src/amarok/src/amaroklib_automoc.cpp:4:
/usr/include/qt4/QtCore/qobject.h:66:7: error: forward declaration of ‘class QVariant’
make[2]: *** [src/CMakeFiles/amaroklib.dir/amaroklib_automoc.o] Error 1
make[1]: *** [src/CMakeFiles/amaroklib.dir/all] Error 2
make: *** [all] Error 2


I removed the QT analyzer from CMakeLists, same error.

here is the output of configure:
Code: Select all
root@monkeybusiness:/usr/src/amarok# cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` -DCMAKE_BUILD_TYPE=debugfull -DKDE4_BUILD_TESTS=OFF
-- /usr/src/amarok/cmake/modules
-- Taglib found: -L/usr/local/lib -ltag
-- Taglib-Extras found: -L/usr/lib -ltag-extras
-- Found Qt-Version 4.8.5 (using /usr/bin/qmake)
-- Found X11: /usr/lib/i386-linux-gnu/libX11.so
-- Found KDE 4.10 include dir: /usr/include
-- Found KDE 4.10 library dir: /usr/lib
-- Found the KDE4 kconfig_compiler preprocessor: /usr/bin/kconfig_compiler
-- Found automoc4: /usr/bin/automoc4
-- Checking if the QtScript Qt Bindings are installed.
-- includes /usr/include/qt4/QtCore;/usr/include/qt4/QtScript;/usr/include;/usr/include/KDE;/usr/include/KDE;/usr/include;/usr/include/qt4/phonon;/usr/include/qt4/QtXmlPatterns;/usr/include/qt4/QtXml;/usr/include/qt4/QtWebKit;/usr/include/qt4/QtUiTools;/usr/include/qt4/QtTest;/usr/include/qt4/QtSvg;/usr/include/qt4/QtSql;/usr/include/qt4/QtScriptTools;/usr/include/qt4/QtScript;/usr/include/qt4/QtOpenGL;/usr/include/qt4/QtNetwork;/usr/include/qt4/QtHelp;/usr/include/qt4/QtDesigner;/usr/include/qt4/QtDesigner;/usr/include/qt4/QtDeclarative;/usr/include/qt4/QtDBus;/usr/include/qt4/Qt3Support;/usr/include/qt4/QtGui;/usr/include/qt4/QtCore;/usr/include/qt4/Qt;/usr/share/qt4/mkspecs/default;/usr/include/qt4;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include libraries Qt4::QtScript;Qt4::QtCore;Qt4::QtGui;-L/usr/lib;-lkdecore;-lkdeui
-- QtBindings found
-- Found liblastfm: /usr/include/lastfm, /usr/local/lib/i386-linux-gnu/liblastfm.so, version 1.0.7
-- Found libofa: /usr/include/ofa1, /usr/lib/libofa.so
-- Found MySQL: /usr/include/mysql, -L/usr/lib/i386-linux-gnu -lmysqlclient -lpthread -lz -lm -lrt -ldl
-- Found MySQL Embedded: /usr/include/mysql, -L/usr/lib/i386-linux-gnu -lmysqld_pic -lpthread -lz -lm -lrt -lwrap -lcrypt -ldl -laio -L/usr/lib/mysql -lpthread
--      Include directory: /usr/include/gdk-pixbuf-2.0
-- Found MTP: /usr/lib/i386-linux-gnu/libmtp.so
-- Libgcrypt found: /usr/lib/i386-linux-gnu/libgcrypt.so
-- Found MTP: /usr/lib/i386-linux-gnu/libmtp.so
-- Found X11: /usr/lib/i386-linux-gnu/libX11.so

-----------------------------------------------------------------------------
-- The following external packages were located on your system.
-- This installation will have the extra features provided by these packages.
-----------------------------------------------------------------------------
   * kdelibs - The toolkit Amarok uses to build
   * QtOpenGL - Required for the spectrum analyzer
   * qtscript-qt - QtScript Qt Bindings
   * mysqld - Embedded MySQL Libraries
   * mysql - MySQL Server Libraries
   * zlib - zlib
   * qca2 - Qt Cryptographic Architecture
   * QJson - Qt JSON Parser used for the Playdar Collection
   * liblastfm - Enable Last.Fm service, including scrobbling, song submissions, and suggested song dynamic playlists
   * ffmpeg - Libraries and tools for handling multimedia data
   * libofa - Enable MusicDNS service
   * libmygpo-qt - Enable gpodder.net service
   * libgpod - Support Apple iPod/iPad/iPhone audio devices
   * GDK-PixBuf - Support for artwork on iPod audio devices via GDK-PixBuf
   * libmtp - Enable Support for portable media devices that use the media transfer protocol
   * curl - cURL provides the necessary network libraries required by mp3tunes.
   * libxml2 - LibXML2 is an XML parser required by mp3tunes.
   * openssl or libgcrypt - OpenSSL or GNU Libgcrypt provides cryptographic functions required by mp3tunes.
   * loudmouth - Loudmouth is the communication backend needed by mp3tunes for syncing.
   * Qt4 Glib support - Qt4 must be compiled with glib support for mp3tunes
   * gobject - Required by libgpod and mp3tunes.
   * glib2 - Required by libgpod and mp3tunes
   * clamz - Optional requirement to download songs from the Amazon MP3 store. Highly recommended on Linux, as the official downloader from Amazon is quite broken on many systems.
   * nepomuk-core - NepomukCore Libraries required by Nepomuk Collection
   * Soprano - Soprano libraries required by Nepomuk Collection
   * taglib - Support for Audio metadata.
   * taglib - Additional support for Audio metadata of mod, s3m, it and xm files.

-----------------------------------------------------------------------------
-- The following OPTIONAL packages could NOT be located on your system.
-- Consider installing them to enable more features from this software.
-----------------------------------------------------------------------------
   * taglib (1.9 or higher)  <http://developer.kde.org/~wheeler/taglib.html>
     Additional support for Audio metadata of opus files.

-----------------------------------------------------------------------------

-- Configuring done
-- Generating done
-- Build files have been written to: /usr/src/amarok


but make croaks here every time:
Code: Select all

[ 16%] Generating CollectionAdaptor.moc
Scanning dependencies of target amaroklib
[ 16%] Building CXX object src/CMakeFiles/amaroklib.dir/amaroklib_automoc.o
In file included from /usr/src/amarok/src/amaroklib_automoc.cpp:6:0:
/usr/src/amarok/src/moc_AmarokScriptConfig.cpp: In static member function ‘static void AmarokScript::AmarokScriptConfig::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)’:
/usr/src/amarok/src/moc_AmarokScriptConfig.cpp:56:28: error: variable ‘QVariant _r’ has initializer but incomplete type
In file included from /usr/src/amarok/src/amaroklib_automoc.cpp:6:0:
/usr/src/amarok/src/moc_AmarokScriptConfig.cpp:56:140: error: invalid use of incomplete type ‘class QVariant’
In file included from /usr/include/qt4/QtGui/qwidget.h:47:0,
                 from /usr/include/qt4/QtGui/QWidget:1,
                 from /usr/src/amarok/src/widgets/FilenameLayoutWidget.h:24,
                 from /usr/src/amarok/src/moc_FilenameLayoutWidget.cpp:9,
                 from /usr/src/amarok/src/amaroklib_automoc.cpp:4:
/usr/include/qt4/QtCore/qobject.h:66:7: error: forward declaration of ‘class QVariant’
make[2]: *** [src/CMakeFiles/amaroklib.dir/amaroklib_automoc.o] Error 1
make[1]: *** [src/CMakeFiles/amaroklib.dir/all] Error 2
make: *** [all] Error 2

Im using: 3.2.0-4-686-pae #1 SMP Debian 3.2.46-1 i686 GNU/Linux
and todays checkout from git
any ideas gratefully received.
:)
User avatar
Mamarok
Manager
Posts
6071
Karma
16
OS

Re: compile error, QT4

Tue Jul 16, 2013 11:29 am
Are you sure you have all Qt packages needed?


Running Kubuntu 22.10 with Plasma 5.26.3, Frameworks 5.100.0, Qt 5.15.6, kernel 5.19.0-23 on Ryzen 5 4600H, AMD Renoir, X11
FWIW: it's always useful to state the exact Plasma version (+ distribution) when asking questions, makes it easier to help ...
User avatar
markey
KDE Developer
Posts
2286
Karma
3
OS

Re: compile error, QT4

Tue Jul 16, 2013 11:30 am
Git pull from master again, I've just fixed it.


--
Mark Kretschmann - Amarok Developer
sanskritter
Registered Member
Posts
30
Karma
0

Re: compile error, QT4

Tue Jul 16, 2013 12:37 pm
thanks, you certainly did.
8-)


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot], Sogou [Bot]