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

problem compiling amarok2

Tags: None
(comma "," separated)
luismanson
Registered Member
Posts
4
Karma
0

problem compiling amarok2

Mon Oct 27, 2008 11:52 pm
Hi, i just got almost to the end of the compilation:
Code: Select all
[ 92%] Built target amarok_service_opmldirectory
[ 93%] Built target amarok_collection-daapcollection
Linking CXX shared module ../../../lib/libamarok_collection-sqlcollection.so
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.1/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/mysql/libmysqld.a(client.o): relocation R_X86_64_32 against `mysql_server_last_error' can not be used when making a shared object; recompile with -fPIC
/usr/lib64/mysql/libmysqld.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [lib/libamarok_collection-sqlcollection.so] Error 1
make[1]: *** [src/collection/sqlcollection/CMakeFiles/amarok_collection-sqlcollection.dir/all] Error 2
make: *** [all] Error 2



since im on gentoo:

emerge -pv dev-db/mysql

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  R  ] dev-db/mysql-5.0.60-r1  USE="berkdb embedded perl ssl -big-tables -cluster -debug -extraengine -latin1 -max-idx-128 -minimal (-selinux) -static" 0 kB



i googled a bit, but just found a mySQL bug report from 2006....
User avatar
sebr
Moderator
Posts
301
Karma
0

Re: problem compiling amarok2

Mon Oct 27, 2008 11:58 pm
Please read the Amarok documentation:
  • http://websvn.kde.org/trunk/extragear/multimedia/amarok/README?revision=864903&view=markup
  • http://amarok.kde.org/wiki/Development/MySQL_Embedded

As the error says, you need to compile mysql with -fPIC flags.
luismanson
Registered Member
Posts
4
Karma
0

Re: problem compiling amarok2

Tue Oct 28, 2008 12:20 am
thanks, sorry


Bookmarks



Who is online

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