Version: 2.0.90 (using KDE 4.2.1) Compiler: gcc (Gentoo 4.3.3-r2 p1.1, pie-10.1.5) 4.3.3 OS: Linux Installed from: Gentoo Packages I can't compile Amarok 2.0.90 because CMake stays blockec in the BINDINGS_RUN_RESULT test : -- The C compiler identification is GNU -- The CXX compiler identification is GNU -- Check for working C compiler: /usr/bin/i686-pc-linux-gnu-gcc -- Check for working C compiler: /usr/bin/i686-pc-linux-gnu-gcc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /usr/bin/i686-pc-linux-gnu-g++ -- Check for working CXX compiler: /usr/bin/i686-pc-linux-gnu-g++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Looking for dlopen in dl -- Looking for dlopen in dl - found -- Taglib found: -L/usr/lib -ltag -- checking for module 'taglib-extras>=0.1' -- found taglib-extras, version 0.1.0 -- Found Taglib-Extras: /usr/include/taglib-extras -- Performing Test COMPLEX_TAGLIB_FILENAME -- Performing Test COMPLEX_TAGLIB_FILENAME - Failed -- Looking for Q_WS_X11 -- Looking for Q_WS_X11 - found -- Looking for Q_WS_WIN -- Looking for Q_WS_WIN - not found. -- Looking for Q_WS_QWS -- Looking for Q_WS_QWS - not found. -- Looking for Q_WS_MAC -- Looking for Q_WS_MAC - not found. -- Found Qt-Version 4.5.0 (using /usr/bin/qmake) -- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so;/usr/lib/libXft.so;/usr/lib/libXau.so;/usr/lib/libXdmcp.so;/usr/lib/libXpm.so -- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so;/usr/lib/libXft.so;/usr/lib/libXau.so;/usr/lib/libXdmcp.so;/usr/lib/libXpm.so - found -- Looking for gethostbyname -- Looking for gethostbyname - found -- Looking for connect -- Looking for connect - found -- Looking for remove -- Looking for remove - found -- Looking for shmat -- Looking for shmat - found -- Looking for IceConnectionNumber in ICE -- Looking for IceConnectionNumber in ICE - found -- Found X11: /usr/lib/libX11.so -- Looking for include files CMAKE_HAVE_PTHREAD_H -- Looking for include files CMAKE_HAVE_PTHREAD_H - found -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE -- Found Automoc4: /usr/bin/automoc4 -- Found Perl: /usr/bin/perl -- Performing Test _OFFT_IS_64BIT -- Performing Test _OFFT_IS_64BIT - Failed -- Performing Test HAVE_FPIE_SUPPORT -- Performing Test HAVE_FPIE_SUPPORT - Success -- Performing Test __KDE_HAVE_W_OVERLOADED_VIRTUAL -- Performing Test __KDE_HAVE_W_OVERLOADED_VIRTUAL - Success -- Performing Test __KDE_HAVE_GCC_VISIBILITY -- Performing Test __KDE_HAVE_GCC_VISIBILITY - Success -- Phonon Version: 4.3.0 -- Found Phonon: /usr/lib/libphonon.so -- Found Phonon Includes: /usr/include/KDE;/usr/include -- Found KDE 4.2 include dir: /usr/include -- Found KDE 4.2 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/QtXmlPatterns;/usr/include/qt4/QtWebKit;/usr/include/qt4/QtHelp;/usr/include/qt4/QtAssistant;/usr/include/qt4/QtDBus;/usr/include/qt4/QtTest;/usr/include/qt4/QtUiTools;/usr/include/qt4/QtScript;/usr/include/qt4/QtSvg;/usr/include/qt4/QtXml;/usr/include/qt4/QtSql;/usr/include/qt4/QtOpenGL;/usr/include/qt4/QtNetwork;/usr/include/qt4/QtDesigner;/usr/include/qt4/QtDesigner;/usr/include/qt4/QtAssistant;/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;/usr/include libraries /usr/lib/qt4/libQtScript.so;/usr/lib/qt4/libQtCore.so;-lpthread;-L/usr/lib;-lkdecore;-lkdeui -- Performing Test BINDINGS_RUN_RESULT
So, what's the dealio with this? Ian, got any ideas?
Some Google searches show that some people got this kind of error sometime ago, with SVN version. Unfortunately, I don't find how it has been corrected for them. I can perform some tests on my environment if it can help you.
Frédéric: any news on this?
Not really. I can just confirm the problem with Amarok 2.1 beta 2. I'm trying to understand the problem but I have no knownledge about CMake. It seems that this message : -- Performing Test BINDINGS_RUN_RESULT corresponds to this test : CHECK_CXX_SOURCE_RUNS( "${source}" BINDINGS_RUN_RESULT) Is there someone who know what's doing this line ?
If I add : set( BINDINGS_RUN_RESULT 0 ) before the line with CHECK_CXX_SOURCE_RUNS, CMake is no longer blocked. But it says it can't find QtBindings : -- QtBindings not found. run `make bindingstest && ./bindingstest && echo $?` to see what is missing. If it only prints '0' then you're actually fine.
(In reply to comment #5) > If I add : > set( BINDINGS_RUN_RESULT 0 ) > before the line with CHECK_CXX_SOURCE_RUNS, CMake is no longer blocked. > > But it says it can't find QtBindings : > -- QtBindings not found. run `make bindingstest && ./bindingstest && echo $?` > to see what is missing. If it only prints '0' then you're actually fine. Frédéric, I think this is more a Gentoo compilation issue than a real Amarok bug. Please refer to our forums or get in touch with us in #amarok on Freenode.
I agree. In fact, by adding set( BINDINGS_RUN_RESULT 1 ), QtBindings isn't tested but CMake is no longer blocked and I reach to compile Amarok. So, it's enough for the moment.
Actually, you might want to have a look at my investigations at http://bugs.gentoo.org/show_bug.cgi?id=270923 The freeze is a deadlock on a Qt internal mutex in QtDBus while trying to register with the bus. Further i found that the same compiled executable seems to work if run as "normal" user, but doesn't if run as root. However; i see no reason at all to use DBus in that test. What is the use of KApplication (which causes DBus registration) for?
Created attachment 38326 [details] convert QtScriptBindings to Qt-only App I'm sorry but i have to ask you to reopen this as I have a patch here. As Sput (quassel dev) suggested, QtScriptBindingsTest.cpp could use QApplication instead, so i did it a Qt-app. I hope this is acceptable to you. I guess there is no reason for it to be KDE-app. Thank you.
I presume you are both using version 2.2.0 at least? Theo, please make a merge request on Gitorious, so the devs can review the patch.
The above patch is wrong, it should use QCoreApplication. Never mind, here is the merge request [1] the comments of which give all the necessary info. [1] http://gitorious.org/amarok/amarok/merge_requests/2093
merged.