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

Compiling svn amarok issues

Tags: None
(comma "," separated)
james2432
Registered Member
Posts
12
Karma
0

Compiling svn amarok issues

Fri Nov 07, 2008 4:05 am
Fallowed the instructions in this guide: http://amarok.kde.org/wiki/2.0_Development_HowTo

I'm having problems compiling the svn version of amarok(trying to see if they support ipod touch 2g yet)

Ran into this:
james@james-laptop:~/Desktop/amarok/build$ cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` -DCMAKE_BUILD_TYPE=debugfull .. && make && make install
-- The C compiler identification is GNU
-- The CXX compiler identification is unknown
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: CMAKE_CXX_COMPILER-NOTFOUND
CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found.  Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
CMake Error: Internal CMake error, TryCompile configure of cmake failed
-- Check for working CXX compiler: CMAKE_CXX_COMPILER-NOTFOUND -- broken
CMake Error at /usr/share/cmake-2.6/Modules/CMakeTestCXXCompiler.cmake:25 (MESSAGE):
  The C++ compiler "CMAKE_CXX_COMPILER-NOTFOUND" is not able to compile a
  simple test program.

  It fails with the following output:

 

 

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:1 (project)


CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found.  Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
-- Configuring done

User avatar
markey
KDE Developer
Posts
2286
Karma
3
OS

Re: Compiling svn amarok issues

Fri Nov 07, 2008 10:58 am
You will first have to install a compiler and the necessary build tools ;)

On Ubuntu there is a package "build-essential" that does all this automatically.


--
Mark Kretschmann - Amarok Developer
james2432
Registered Member
Posts
12
Karma
0
I did "apt-get build-essential" and "apt-get build-dep amarok" and am getting this:

james@james-laptop:~/Desktop/amarok/build$ cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` -DCMAKE_BUILD_TYPE=debugfull .. && make && make install
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
CMake Error at /usr/share/cmake-2.6/Modules/FindKDE4.cmake:72 (MESSAGE):
ERROR: cmake/modules/FindKDE4Internal.cmake not found in
/home/james/.kde/share/apps;/usr/share/kde4/apps
Call Stack (most recent call first):
CMakeLists.txt:8 (find_package)




EDIT: found out that you need: kdelibs5-dev  installed or it won't find it.

Last edited by james2432 on Fri Nov 07, 2008 1:38 pm, edited 1 time in total.
james2432
Registered Member
Posts
12
Karma
0

Re: Compiling svn amarok issues

Fri Nov 07, 2008 2:47 pm
tried compiling the svn version and the 1.94 version and I get an end result:
[ 88%] Building CXX object src/collection/sqlcollection/CMakeFiles/amarok_collection-sqlcollection.dir/SqlCollection.o
In file included from /home/james/Desktop/amarok-1.94/src/collection/sqlcollection/XesamCollectionBuilder.h:22,
                from /home/james/Desktop/amarok-1.94/src/collection/sqlcollection/SqlCollection.cpp:38:
/home/james/Desktop/amarok-1.94/src/collection/sqlcollection/XesamDbus.h:22:39: error: strigi/qtdbus/strigitypes.h: No such file or directory
In file included from /home/james/Desktop/amarok-1.94/src/collection/sqlcollection/SqlCollection.cpp:307:
/usr/include/qt4/QtCore/qmetatype.h: In static member function ‘static int QMetaTypeId2::qt_metatype_id() [with T = QList]’:
/usr/include/qt4/QtCore/qmetatype.h:195:  instantiated from ‘int qMetaTypeId(T*) [with T = QList]’
/usr/include/qt4/QtCore/qvariant.h:427:  instantiated from ‘QVariant qVariantFromValue(const T&) [with T = QList]’
/home/james/Desktop/amarok-1.94/src/collection/sqlcollection/XesamDbus.h:89:  instantiated from here
/usr/include/qt4/QtCore/qmetatype.h:185: error: ‘qt_metatype_id’ is not a member of ‘QMetaTypeId >’
/usr/include/qt4/QtCore/qmetatype.h: In static member function ‘static int QMetaTypeId2::qt_metatype_id() [with T = QVector >]’:
/usr/include/qt4/QtCore/qmetatype.h:195:  instantiated from ‘int qMetaTypeId(T*) [with T = QVector >]’
/usr/include/qt4/QtDBus/qdbusreply.h:68:  instantiated from ‘QDBusReply& QDBusReply::operator=(const QDBusMessage&) [with T = QVector >]’
/usr/include/qt4/QtDBus/qdbusreply.h:64:  instantiated from ‘QDBusReply::QDBusReply(const QDBusMessage&) [with T = QVector >]’
/home/james/Desktop/amarok-1.94/src/collection/sqlcollection/XesamDbus.h:90:  instantiated from here
/usr/include/qt4/QtCore/qmetatype.h:185: error: ‘qt_metatype_id’ is not a member of ‘QMetaTypeId > >’
make[2]: *** [src/collection/sqlcollection/CMakeFiles/amarok_collection-sqlcollection.dir/SqlCollection.o] Error 1
make[1]: *** [src/collection/sqlcollection/CMakeFiles/amarok_collection-sqlcollection.dir/all] Error 2
make: *** [all] Error 2
User avatar
markey
KDE Developer
Posts
2286
Karma
3
OS

Re: Compiling svn amarok issues

Sat Nov 08, 2008 7:19 am
Missing kdesupport, which contains strigi and more.


--
Mark Kretschmann - Amarok Developer
james2432
Registered Member
Posts
12
Karma
0

Re: Compiling svn amarok issues

Sat Nov 08, 2008 12:52 pm
Which means what? I can't compile on Gnome?
User avatar
markey
KDE Developer
Posts
2286
Karma
3
OS

Re: Compiling svn amarok issues

Sat Nov 08, 2008 1:02 pm
Yes you can.

See, why are you trying to go through all this trouble, instead of just installing the Beta 3 package? It was released only a few days ago, so it's pretty recent.


--
Mark Kretschmann - Amarok Developer
User avatar
sebr
Moderator
Posts
301
Karma
0

Re: Compiling svn amarok issues

Sat Nov 08, 2008 1:04 pm
You actually need the following packages:
* libstrigiqtdbusclient-dev
* libsearchclient-dev
james2432
Registered Member
Posts
12
Karma
0

Re: Compiling svn amarok issues

Sun Nov 09, 2008 2:42 am
Mark Kretschmann wrote:Yes you can.

See, why are you trying to go through all this trouble, instead of just installing the Beta 3 package? It was released only a few days ago, so it's pretty recent.



The beta link(i tried) links me to the 1.94 version in which I have to compile(no install, only source code I have to compile)

Install.txt that is included
Installing Amarok
=================

Build instructions can be found at
    % http://amarok.kde.org/wiki/2.0_Development_HowTo
    % http://techbase.kde.org/Getting_Started/Build/KDE4

Last edited by james2432 on Sun Nov 09, 2008 2:44 am, edited 1 time in total.
james2432
Registered Member
Posts
12
Karma
0

Re: Compiling svn amarok issues

Sun Nov 09, 2008 3:28 am
Got a little bit fearther with the packages you suggested

[ 77%] Building CXX object src/CMakeFiles/amaroklib.dir/dynamic/BiasSolver.o
/home/james/Desktop/amarok/src/dynamic/BiasSolver.cpp: In member function ‘void Dynamic::BiasSolver::prepareToRun()’:
/home/james/Desktop/amarok/src/dynamic/BiasSolver.cpp:120: error: no matching function for call to ‘QMutexLocker::QMutexLocker(QMutex&)’
/usr/include/qt4/QtCore/qmutex.h:137: note: candidates are: QMutexLocker::QMutexLocker(const QMutexLocker&)
/usr/include/qt4/QtCore/qmutex.h:93: note:                QMutexLocker::QMutexLocker(QMutex*)
make[2]: *** [src/CMakeFiles/amaroklib.dir/dynamic/BiasSolver.o] Error 1
make[1]: *** [src/CMakeFiles/amaroklib.dir/all] Error 2
make: *** [all] Error 2
User avatar
sebr
Moderator
Posts
301
Karma
0

Re: Compiling svn amarok issues

Sun Nov 09, 2008 5:27 am
If you are using ubuntu/kubuntu: http://www.kubuntu.org/news/amarok-2-beta-3
james2432
Registered Member
Posts
12
Karma
0

Re: Compiling svn amarok issues

Mon Nov 10, 2008 1:55 am
Thanks seb, unfortunatly they did not add support for the ipod touch 2g T_T *sigh* windows partition is still good for something...


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], kde-naveen, Sogou [Bot], Yahoo [Bot]