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

[RESOLVED] compiling Amarok git - process hangs at a "Test"

Tags: None
(comma "," separated)
User avatar
google01103
Manager
Posts
6668
Karma
25
I attempted to create Amarok git using rpmbuild of the 8/30 src.rpm in kde4 unstable and the process just stops @ "Performing Test BINDINGS_RUN_RESULT". No error, no cpu utilization - it just hangs.

Earlier in the week I dl'd the source from git and tried do do a compile and got the same problem as today.

A week or so earlier I was able to compile from git without any problem.

tried google'ing and didn't find a solution.

thanks

Last edited by google01103 on Thu Sep 03, 2009 3:30 pm, edited 1 time in total.


OpenSuse Leap 42.1 x64, Plasma 5.x

User avatar
Dieter Schroeder
Registered Member
Posts
714
Karma
7
OS
Cmake tries to check for bindings, then tries to build a testapp called bindingstest (check if it's in your build dir!) and finally tries to run it. You should take a look at CMakeCache.txt, too.
I've compiled 2.2-git today without any trouble on my SuSE system, but I reuse my old builddir.

m0nk


If men could get pregnant, abortion would be a sacrament.
User avatar
google01103
Manager
Posts
6668
Karma
25
I found in the CMakeError.log:
/usr/src/packages/BUILD/amarok/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8: error: ‘Q_WS_WIN’ undeclared (first use in this function)
/usr/src/packages/BUILD/amarok/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8: error: ‘Q_WS_MAC’ undeclared (first use in this function)
/usr/src/packages/BUILD/amarok/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8: error: ‘Q_WS_QWS’ undeclared (first use in this function)

- but afik all qt4 packages are installed

I found a bindingtest dir but it has the same timestamp as all the dl'ed files

in CMakeCache.txt i found :
//No help, variable specified on the command line.
COMPILE_DEFINITIONS:STRING=-DBINDINGS_RUN_RESULT -I/usr/include/taglib

thanks, I do think I'm over my head and unless you see something obvious I'll probably wait for an rpm in the repo


OpenSuse Leap 42.1 x64, Plasma 5.x

User avatar
Dieter Schroeder
Registered Member
Posts
714
Karma
7
OS
cd /usr/src/packages/BUILD/amarok/build
rm -rf *
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
make
su -c 'make install'

or you can use the master from here.
cd to/directory/with/amarok/master
md amarok/build
cd amarok
tar xzf amarok-master.tar.gz
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
make
su -c 'make install'

or check out the git repository:
git clone git://gitorious.org/amarok/amarok.git
cd amarok
mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
make
su -c 'make install'

The last is the most flexible (but ~50megs).
You don't need to remove the build dir.
Just do a
git pull --rebase
in the amarok dir and you always have the latest version.
cd build
cmake ..
make
su -c 'make install'
DONE
m0nk


If men could get pregnant, abortion would be a sacrament.
User avatar
google01103
Manager
Posts
6668
Karma
25
Dieter Schroeder wrote:cd /usr/src/packages/BUILD/amarok/build
rm -rf *
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
make
su -c 'make install'
---> hangs with "-- Performing Test BINDINGS_RUN_RESULT" <----

or you can use the master from here.
cd to/directory/with/amarok/master
md amarok/build
cd amarok
tar xzf amarok-master.tar.gz
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
make
su -c 'make install'
---> hangs with "-- Performing Test BINDINGS_RUN_RESULT" <-----


or check out the git repository:
git clone git://gitorious.org/amarok/amarok.git
cd amarok
mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
make
su -c 'make install'
--> this is what I had done and 50mb is a lot on my connection <----

m0nk


and same errors as earlier


OpenSuse Leap 42.1 x64, Plasma 5.x

User avatar
Dieter Schroeder
Registered Member
Posts
714
Karma
7
OS
-----snip-----
Code: Select all
-- Checking if the QtScript Qt Bindings are installed.                                                                                                                 
-- includes /usr/include/QtCore;/usr/include/QtScript;/usr/include;/usr/include/KDE;/usr/include/QtXmlPatterns;/usr/include/QtWebKit;/usr/include/QtHelp;/usr/include/QtAssistant;/usr/include/QtDBus;/usr/include/QtTest;/usr/include/QtUiTools;/usr/include/QtScript;/usr/include/QtSvg;/usr/include/QtXml;/usr/include/QtSql;/usr/include/QtOpenGL;/usr/include/QtNetwork;/usr/include/QtDesigner;/usr/include/QtDesigner;/usr/include/QtAssistant;/usr/include/Qt3Support;/usr/include/QtGui;/usr/include/Qt;/usr/share/qt4/mkspecs/default;/usr/include libraries /usr/lib64/libQtScript.so;/usr/lib64/libQtCore.so;-lpthread;/usr/lib64/libQtGui.so;-L/usr/lib64;-lkdecore;-lkdeui                                                                                                                                                       
-- Performing Test BINDINGS_RUN_RESULT                                                                                                                                     
-- Performing Test BINDINGS_RUN_RESULT - Success                                                                                                                           
-- QtBindings found

-----snap-----

Really strange, because we have nearly the same system running.
(openSUSE 11.1, KDE 4.3, Qt 4.5.2)
Which version of qtscript-qt have you installed (0.1.0-2.1)
I've just made a git pull and ran cmake ... No trouble.

m0nk


If men could get pregnant, abortion would be a sacrament.
User avatar
google01103
Manager
Posts
6668
Karma
25
don't you mean kde4-qtscript-qt? which is at 0.1.0-6.11
there is no qtscript-qt in my repos nor shown on webpin http://packages.opensuse-community.org/

to me what's weird is I was able to compile from git till recently

interesting note: I can rebuild the src.rpm in the unstable repo but the app errors out when executed


OpenSuse Leap 42.1 x64, Plasma 5.x

User avatar
Dieter Schroeder
Registered Member
Posts
714
Karma
7
OS
I don't use precompiled packages from foreign repos.
It should be the same, although there's no need for kde4 prefix, because it doesn't depend on KDE4.
I've build my own package, as I always do for packages handling with Amarok.
In openSUSE build repos, it's called qt4-qtscript.
The output, I've posted was from a fresh build dir.
Are you sure, you have a complete clean build dir?
I don't have //No help, variable specified on the command line.
COMPILE_DEFINITIONS:STRING=-DBINDINGS_RUN_RESULT -I/usr/include/taglib

in CMakeCache.txt
The only BINDINGS are here:
Code: Select all
//Advanced flag for variable: AUTOMOC4_EXECUTABLE
AUTOMOC4_EXECUTABLE-ADVANCED:INTERNAL=1
//Test BINDINGS_RUN_RESULT
BINDINGS_RUN_RESULT:INTERNAL=1
//Result of TRY_COMPILE
BINDINGS_RUN_RESULT_COMPILED:INTERNAL=TRUE
//Result of TRY_RUN
BINDINGS_RUN_RESULT_EXITCODE:INTERNAL=0

about line 850.

Sorry, but can't see a solution tonight. Go to bed now. It's 01:00 am here in Germany.

m0nk


If men could get pregnant, abortion would be a sacrament.
User avatar
google01103
Manager
Posts
6668
Karma
25
definitely have clean build dir

I do have //No help, variable specified on the command line.
COMPILE_DEFINITIONS:STRING=-DBINDINGS_RUN_RESULT -I/usr/include/taglib
in CMakeCache.txt

my CMakeCache.txt is only abou 210 lines
last few lines are:
//Advanced flag for variable: CMAKE_USE_RELATIVE_PATHS
CMAKE_USE_RELATIVE_PATHS-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_VERBOSE_MAKEFILE
CMAKE_VERBOSE_MAKEFILE-ADVANCED:INTERNAL=1

I wouldn't spend much time on this - either a newer build will compile or there'll be a rpm from openSuse


OpenSuse Leap 42.1 x64, Plasma 5.x

User avatar
google01103
Manager
Posts
6668
Karma
25
(RESOLUTION]

re-Googe'ing brought up a couple of results I missed earlier (lost links after a X crash)

Seems that the test is not actually needed (?) and by editing amarok/cmake/modules/FindQtScriptQtBindings.cmake

to be just:
include(CheckCXXSourceRuns)
set(QTSCRIPTQTBINDINGS_FOUND TRUE)

it compiles and appears to be running fine and yes it would be cleaner to just comment out the call to the module but at the time this was easiest


OpenSuse Leap 42.1 x64, Plasma 5.x



Bookmarks



Who is online

Registered users: Baidu [Spider], Bing [Bot], Google [Bot], Yahoo [Bot]