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

Need help with building Amarok on Ubuntu 17.04 running Unity

Tags: None
(comma "," separated)
leolist
Registered Member
Posts
47
Karma
0
I'm trying to build from the latest master to get the fix for the wiki problem and get the following error.
Code: Select all
llist@LeoGamesLT:~/gitrepos/amarok/leosBuild$ cmake .. -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` -DDBUS_INTERFACES_INSTALL_DIR=/home/llist/tools -Wno-dev
-- /home/llist/gitrepos/amarok/cmake/modules
-- Taglib found: -L/usr/lib/x86_64-linux-gnu -ltag
-- Taglib-Extras found: -L/usr/lib -ltag-extras
-- Found Qt-Version 4.8.7 (using /usr/bin/qmake)
-- Found X11: /usr/lib/x86_64-linux-gnu/libX11.so
-- Found KDE 4.12 include dir: /usr/include
-- Found KDE 4.12 library dir: /usr/lib
-- Found the KDE4 kconfig_compiler preprocessor: /usr/bin/kconfig_compiler
-- Found automoc4: /usr/bin/automoc4
-- Found liblastfm: /usr/include/lastfm, /usr/lib/x86_64-linux-gnu/liblastfm.so, version 1.0.9
-- Found libofa: /usr/include/ofa1, /usr/lib/x86_64-linux-gnu/libofa.so
-- Found MySQL: /usr/include/mysql, -L/usr/lib/x86_64-linux-gnu -lmysqlclient -lpthread -lz -lm -lrt -latomic -ldl
-- Found MySQL Embedded: /usr/include/mysql, -L/usr/lib/x86_64-linux-gnu -lmysqld -lpthread -lz -lm -lrt -latomic -lcrypt -ldl -laio -llz4 -lnuma -lpthread
--    Include directory: /usr/include/gdk-pixbuf-2.0
-- Found MTP: /usr/lib/x86_64-linux-gnu/libmtp.so
-- Libgcrypt found: /usr/lib/x86_64-linux-gnu/libgcrypt.so
-- Found gmock and gtest but need to build both: /usr/include/gmock;/usr/src/gmock;GOOGLEMOCK_DEP_GTEST_SOURCES-NOTFOUND/gtest/include, GOOGLEMOCK_DEP_GTEST_SOURCES-NOTFOUND
CMake Error at tests/CMakeLists.txt:143 (add_subdirectory):
  add_subdirectory given source "GOOGLEMOCK_DEP_GTEST_SOURCES-NOTFOUND/gtest"
  which is not an existing directory.


Not sure how to resolve this.
leolist
Registered Member
Posts
47
Karma
0
Removed the Ubuntu distribution of googlemock and cloned/installed googletest, which includes googlemock

cmake then reported no issue
leolist
Registered Member
Posts
47
Karma
0
When I run 'make' I now get the following error
Code: Select all
Scanning dependencies of target testaggregatemeta
[ 52%] Building CXX object tests/core-impl/collections/aggregate/CMakeFiles/testaggregatemeta.dir/testaggregatemeta_automoc.cpp.o
[ 52%] Linking CXX executable ../../../testaggregatemeta
[ 52%] Built target testaggregatemeta
[ 52%] Built target amarok_storage-mysqlestorage_automoc
[ 52%] Linking CXX shared module ../../../../../lib/amarok_storage-mysqlestorage.so
/usr/bin/ld: cannot find -llz4
collect2: error: ld returned 1 exit status
src/core-impl/storage/sql/mysqlestorage/CMakeFiles/amarok_storage-mysqlestorage.dir/build.make:181: recipe for target 'lib/amarok_storage-mysqlestorage.so' failed
make[2]: *** [lib/amarok_storage-mysqlestorage.so] Error 1
CMakeFiles/Makefile2:8810: recipe for target 'src/core-impl/storage/sql/mysqlestorage/CMakeFiles/amarok_storage-mysqlestorage.dir/all' failed
make[1]: *** [src/core-impl/storage/sql/mysqlestorage/CMakeFiles/amarok_storage-mysqlestorage.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2


cmake reported no errors, so not sure what is missing

Thanks
leolist
Registered Member
Posts
47
Karma
0
I think the problem is the the line staring with
--- -- Found MySQL Embedded:----------------
There is no "-llz4" flag for ld on Ubuntu

Code: Select all
-- Taglib found: -L/usr/lib/x86_64-linux-gnu -ltag
-- Taglib-Extras found: -L/usr/lib -ltag-extras
-- Found Qt-Version 4.8.7 (using /usr/bin/qmake)
-- Found X11: /usr/lib/x86_64-linux-gnu/libX11.so
-- Found KDE 4.12 include dir: /usr/include
-- Found KDE 4.12 library dir: /usr/lib
-- Found the KDE4 kconfig_compiler preprocessor: /usr/bin/kconfig_compiler
-- Found automoc4: /usr/bin/automoc4
-- Found liblastfm: /usr/include/lastfm, /usr/lib/x86_64-linux-gnu/liblastfm.so, version 1.0.9
-- Found libofa: /usr/include/ofa1, /usr/lib/x86_64-linux-gnu/libofa.so
-- Found MySQL: /usr/include/mysql, -L/usr/lib/x86_64-linux-gnu -lmysqlclient -lpthread -lz -lm -lrt -latomic -ldl
-- Found MySQL Embedded: /usr/include/mysql, -L/usr/lib/x86_64-linux-gnu -lmysqld -lpthread -lz -lm -lrt -latomic -lcrypt -ldl -laio -llz4 -lnuma -lpthread
--    Include directory: /usr/include/gdk-pixbuf-2.0
-- Found MTP: /usr/lib/x86_64-linux-gnu/libmtp.so
-- Libgcrypt found: /usr/lib/x86_64-linux-gnu/libgcrypt.so
-- Found libgmock: /usr/local/include/gmock, /usr/local/lib/libgmock.a;/usr/local/lib/libgtest.a;/usr/lib/x86_64-linux-gnu/libpthread.so
-- Found MTP: /usr/lib/x86_64-linux-gnu/libmtp.so
-- Found X11: /usr/lib/x86_64-linux-gnu/libX11.so


Bookmarks



Who is online

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