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

Building Amarok 5

Tags: None
(comma "," separated)
jfarrar
Registered Member
Posts
24
Karma
0

Building Amarok 5

Wed May 02, 2018 9:58 am
Hi

Trying to make Amarok 5 and getting following error:

Code: Select all
[ 50%] Linking CXX executable testtrackorganizer
/usr/bin/ld: cannot find -lgmock
collect2: error: ld returned 1 exit status
make[2]: *** [tests/CMakeFiles/testtrackorganizer.dir/build.make:144: tests/testtrackorganizer] Error 1
make[1]: *** [CMakeFiles/Makefile2:1251: tests/CMakeFiles/testtrackorganizer.dir/all] Error 2



Gmock and Gtest are both installed.

Thanks

John F.


jfarrar, proud to be a member of KDE forums since 2008-Oct.
User avatar
markey
KDE Developer
Posts
2286
Karma
3
OS

Re: Building Amarok 5

Wed May 02, 2018 3:17 pm
Usually it's not enough just to install gtest and gmock, because this just installs the source code. So they also need to be built, e.g. .like explained here:

https://larry-price.com/blog/2013/10/13 ... 13-dot-04/

(That said, I'm strongly in favor of making gmock an optional dependency of Amarok, because it's such a hassle. I might go ahead and do just that.)


--
Mark Kretschmann - Amarok Developer
jfarrar
Registered Member
Posts
24
Karma
0

Re: Building Amarok 5

Wed May 02, 2018 3:34 pm
Thanks Mark

I have got beyond that problem by doing just that, building and installing gmock.

Now running into a mass of issues with TestTrackOrganizer.cpp

Thanks

John F.


jfarrar, proud to be a member of KDE forums since 2008-Oct.
User avatar
markey
KDE Developer
Posts
2286
Karma
3
OS

Re: Building Amarok 5

Wed May 02, 2018 4:15 pm
Alright, so in that case we can simply disable compilation of the tests altogether. Delete your build folder, and then add this to your CMake line:

Code: Select all
-DBUILD_TESTING=off


--
Mark Kretschmann - Amarok Developer
jfarrar
Registered Member
Posts
24
Karma
0

Re: Building Amarok 5

Wed May 02, 2018 4:55 pm
Getting there but now have a mysql problem, ld can't find it. I though all the dev files were there.

Anyway, I'm out of time.

Thnaks for your help.

John F.


jfarrar, proud to be a member of KDE forums since 2008-Oct.


Bookmarks



Who is online

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