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

'make' fails for latest 2.9.0 release

Tags: None
(comma "," separated)
leolist
Registered Member
Posts
47
Karma
0
Ran cmake without any errors but when I run make I get the following
Code: Select all
[ 48%] Building CXX object src/core-impl/collections/db/sql/CMakeFiles/amarok-sqlcollection.dir/device/nfs/NfsDeviceHandler.cpp.o
[ 48%] Building CXX object src/core-impl/collections/db/sql/CMakeFiles/amarok-sqlcollection.dir/device/smb/SmbDeviceHandler.cpp.o
[ 48%] Linking CXX shared library ../../../../../lib/libamarok-sqlcollection.so
[ 48%] Built target amarok-sqlcollection
Generating MySqlCollectionFactory.moc
[ 48%] Built target amarok_collection-mysqlcollection_automoc
Scanning dependencies of target amarok_collection-mysqlcollection
[ 49%] Building CXX object src/core-impl/collections/db/sql/mysqlcollection/CMakeFiles/amarok_collection-mysqlcollection.dir/amarok_collection-mysqlcollection_automoc.cpp.o
[ 49%] Building CXX object src/core-impl/collections/db/sql/mysqlcollection/CMakeFiles/amarok_collection-mysqlcollection.dir/MySqlCollectionFactory.cpp.o
[ 49%] Building CXX object src/core-impl/collections/db/sql/mysqlcollection/CMakeFiles/amarok_collection-mysqlcollection.dir/MySqlQueryMaker.cpp.o
[ 49%] Linking CXX shared module ../../../../../../lib/amarok_collection-mysqlcollection.so
[ 49%] Built target amarok_collection-mysqlcollection
Scanning dependencies of target testsqltrack
[ 49%] Building CXX object tests/core-impl/collections/db/sql/CMakeFiles/testsqltrack.dir/testsqltrack_automoc.cpp.o
[ 49%] Building CXX object tests/core-impl/collections/db/sql/CMakeFiles/testsqltrack.dir/TestSqlTrack.cpp.o
[ 49%] Building CXX object tests/core-impl/collections/db/sql/CMakeFiles/testsqltrack.dir/__/__/__/__/MetaNotificationSpy.cpp.o
[ 49%] Linking CXX executable ../../../../testsqltrack
CMakeFiles/testsqltrack.dir/TestSqlTrack.cpp.o: In function `TestSqlTrack::initTestCase()':
/home/llist/tmp/amarok-2.9.0/tests/core-impl/collections/db/sql/TestSqlTrack.cpp:52: undefined reference to `Collections::DatabaseCollection::setMountPointManager(MountPointManager*)'
collect2: error: ld returned 1 exit status
tests/core-impl/collections/db/sql/CMakeFiles/testsqltrack.dir/build.make:168: recipe for target 'tests/testsqltrack' failed
make[2]: *** [tests/testsqltrack] Error 1
CMakeFiles/Makefile2:3597: recipe for target 'tests/core-impl/collections/db/sql/CMakeFiles/testsqltrack.dir/all' failed
make[1]: *** [tests/core-impl/collections/db/sql/CMakeFiles/testsqltrack.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2


I rans cmake as follows on 64bit Ubuntu 17.10
Code: Select all
cmake .. -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` -DDBUS_INTERFACES_INSTALL_DIR=/home/llist/amarok -Wno-dev


Thanks
User avatar
markey
KDE Developer
Posts
2286
Karma
3
OS
If you add this to the cmake line it should fix it:

-DKDE4_BUILD_TESTS=OFF


--
Mark Kretschmann - Amarok Developer
leolist
Registered Member
Posts
47
Karma
0
Thanks for the quick reply

Built with
cmake .. -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` -DDBUS_INTERFACES_INSTALL_DIR=/home/llist/amarok -Wno-dev -DKDE4_BUILD_TESTS=OFF -DWITH_MP3Tunes=OFF


Bookmarks



Who is online

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