Announcement

News: Chakra 2013.03 Benz Released: Release Notes - Download - A good place to start: Beginner's Guide - For pasting any code/info please use paste.chakra. Please read Forum Etiquette.

#1 2009-06-02 13:11:42

robotangel
Apprentice
From: Cologne, Germany
Registered: 2009-03-01
Posts: 10

Amarok 2.1 beta-svn CMake Error

Hi there,

over the last few weeks I used to compile amarok2.1-svn by myself because I need some features 2.0 doesn't have. There were a few bugs, though, but nothing that really annoyed me. So I checked out a recent version now and then and compiled it. Worked like a charm - but not anymore.

I don't know why, but the CMake configure process keeps complaining about not finding QtScript:

-----------------------------------------------------------------------------
-- The following REQUIRED packages could NOT be located on your system.
-- Please install them before continuing this software installation.
-----------------------------------------------------------------------------
+ qtscript-qt: QtScript Qt Bindings <http://code.google.com/p/qtscriptgenerator/>
-----------------------------------------------------------------------------
CMake Error at /usr/share/apps/cmake/modules/MacroLogFeature.cmake:93 (MESSAGE):
  Exiting: Missing Requirements
Call Stack (most recent call first):
  CMakeLists.txt:114 (macro_display_feature_log)


-- Configuring incomplete, errors occurred!

I already experienced this problem when I wanted to compile amarok2 before, but I could solve it by using this cmake command I found in an PKGBUILD in AUR:

cmake -DCMAKE_INSTALL_PREFIX=/usr -DQTDIR=/usr -DCMAKE_BUILD_TYPE=RELWITHDEBINF ..

Of course, qtscriptgenerator-git is installed. Compiling amarok2-svn stopped working after the 4.2.3 update I think.

Thanks for any help in advance
robo

PS: I'm using x86_64.

Offline

#2 2009-06-02 15:15:28

Howl
Member
Registered: 2009-03-14
Posts: 62

Re: Amarok 2.1 beta-svn CMake Error

I ran into the same error; i moved around this problem editing CMakeLists.txt (it's in src/amarok2-svn inside the sources folder).
You have to comment these lines:

find_package( QtScriptQtBindings REQUIRED )
macro_log_feature( QTSCRIPTQTBINDINGS_FOUND "qtscript-qt" "QtScript Qt Bindings" "http://code.google.com/p/qtscriptgenerator/" TRUE "" "" )

Offline

#3 2009-06-02 21:14:38

robotangel
Apprentice
From: Cologne, Germany
Registered: 2009-03-01
Posts: 10

Re: Amarok 2.1 beta-svn CMake Error

Hi there,

thanks for your tip. But that doesn't really solve the problem. Of course CMake runs fine now but the building process fails (of course).

$ LC_MESSAGES=posix make                                                           
[  0%] Building CXX object CMakeFiles/bindingstest.dir/cmake/modules/QtScriptBindingsTest.o            
/home/marco/Anwendungen/amarok/cmake/modules/QtScriptBindingsTest.cpp:19:28: error: KDE/KApplication: No such file or directory                                                                               
/home/marco/Anwendungen/amarok/cmake/modules/QtScriptBindingsTest.cpp:20:26: error: KDE/KAboutData: No such file or directory                                                                                 
/home/marco/Anwendungen/amarok/cmake/modules/QtScriptBindingsTest.cpp:21:28: error: KDE/KCmdLineArgs: No such file or directory                                                                               
[  0%] Built target amarok_automoc                                                                     
[  0%] Built target mediadevicelib_automoc                                                             
[  0%] Built target amaroklib_automoc                                                                  
[  1%] Built target amarokpud                                                                          
[  1%] [  1%] Built target amarok_collection-daapcollection_automoc
Built target amarok_afttagger_automoc
/home/marco/Anwendungen/amarok/cmake/modules/QtScriptBindingsTest.cpp: In function ‘int main(int, char**)’:
/home/marco/Anwendungen/amarok/cmake/modules/QtScriptBindingsTest.cpp:30: error: ‘KAboutData’ was not declared in this scope
/home/marco/Anwendungen/amarok/cmake/modules/QtScriptBindingsTest.cpp:30: error: expected ‘;’ before ‘about’
/home/marco/Anwendungen/amarok/cmake/modules/QtScriptBindingsTest.cpp:31: error: ‘KCmdLineArgs’ has not been declared
/home/marco/Anwendungen/amarok/cmake/modules/QtScriptBindingsTest.cpp:31: error: ‘about’ was not declared in this scope
/home/marco/Anwendungen/amarok/cmake/modules/QtScriptBindingsTest.cpp:32: error: ‘KApplication’ was not declared in this scope
/home/marco/Anwendungen/amarok/cmake/modules/QtScriptBindingsTest.cpp:32: error: expected ‘;’ before ‘app’
[  1%] make[2]: *** [CMakeFiles/bindingstest.dir/cmake/modules/QtScriptBindingsTest.o] Error 1
Built target amarok_collection-mtpcollection_automoc
make[1]: *** [CMakeFiles/bindingstest.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[  1%] Built target amarok_collection-ipodcollection_automoc
make: *** [all] Error 2

This really seems to be a KDEmod-issue.

Thanks
robo

Offline

#4 2009-06-02 21:57:38

boom1992
Core Team & Tools Developer
From: Arnsberg, Germany
Registered: 2008-12-17
Posts: 1,602
Website

Re: Amarok 2.1 beta-svn CMake Error

sudo pacman -S kdemod-kdelibs-devel

Lukas

Offline

#5 2009-06-02 22:53:36

robotangel
Apprentice
From: Cologne, Germany
Registered: 2009-03-01
Posts: 10

Re: Amarok 2.1 beta-svn CMake Error

Ah, thanks!

I just noticed that a lot of packages (all of them?) now have -devel packages, too. Well, this seems to be against the philosophy arch itself developed (devel-files inside of the "main" packages), good to know. Maybe you should mention that somewhere in the FAQs or on the "How to enable KDEmod repo" pages.

Thanks! Let's see if it works now smile

edit: It worked! Thanks again!

Last edited by robotangel (2009-06-02 23:07:02)

Offline

Board footer

Powered by FluxBB 1.4.8