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

help compiling amarok 2.4

Tags: None
(comma "," separated)
vlad420
Registered Member
Posts
6
Karma
0
OS

help compiling amarok 2.4

Sat Feb 05, 2011 10:36 pm
I've been trying to compile amarok 2.4 but am gettin problems with mysql. I'm supposed to use MySQL embeded for it but the instructions on how to do this don't work
tar xzvf mysql-5.1.28-rc.tar.gz
cd mysql-5.1.28
cp -R /path/to/amaroksource/supplementary_scripts/mysqle/* .
export MAKEOPTS=-j2 # or more if you have many CPU cores
./build-mysqle.sh --prefix=${HOME}/usr
then build Amarok like normal
When I try to do the 3rd line I get this error
cp: cannot stat `/home/vlad/amarok-2.4.0/src/supplementary_scripts/mysqle/*': No such file or directory
I'm obviously doing somphing wrong but can't figure out what
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: help compiling amarok 2.4

Sun Feb 06, 2011 1:06 am
The supplementary scripts are located at the top level of a Amarok clone, rather than the src/ subfolder.

Your local path is therefore: /home/vlad/amarok-2.4.0/supplementary_scripts/mysqle/*


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
vlad420
Registered Member
Posts
6
Karma
0
OS

Re: help compiling amarok 2.4

Sun Feb 06, 2011 1:49 am
Unfortunately no it's not there either
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: help compiling amarok 2.4

Sun Feb 06, 2011 2:12 am
That is extremely unusual. Your copy of the sources appears to be missing them unfortunately. You may want to try getting them straight from Git.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
vlad420
Registered Member
Posts
6
Karma
0
OS

Re: help compiling amarok 2.4

Sun Feb 06, 2011 8:14 am
Well that solved the problem but I'm still having some trouble compiling. When get to 59% i get this error
[ 59%] Built target amarok_collection-mysqlecollection_automoc
Linking CXX shared module ../../../../../../lib/amarok_collection-mysqlecollection.so
/usr/lib/gcc/i486-slackware-linux/4.4.4/../../../../i486-slackware-linux/bin/ld: cannot find -lmysqld
collect2: ld returned 1 exit status
make[2]: *** [lib/amarok_collection-mysqlecollection.so] Error 1
make[1]: *** [src/core-impl/collections/db/sql/mysqlecollection/CMakeFiles/amarok_collection-mysqlecollection.dir/all] Error 2
make: *** [all] Error 2
Based on what I've found on Google it seems to be a common problem but the solution is supposed to be install MySQL which I have
User avatar
google01103
Manager
Posts
6668
Karma
25

Re: help compiling amarok 2.4

Sun Feb 06, 2011 12:24 pm
vlad420 wrote:to be a common problem but the solution is supposed to be install MySQL which I have


maybe you don't have all the mysql modules required?

this is what one of the compiling tutorials specifies http://blogs.fsfe.org/myriam/2009/09/co ... l-summary/
libmysqlclient
libmysqlclient-dev
libmysqld-dev
libmysqld-pic
libwrap0-dev, needed as a dependency for MySQL
Note: If you have installed MySQL Embedded in non-default location (i.e. $HOME/usr), Amarok may fail to start with error regarding libmysqlclient library. In this case, add the following string to your ~/.bashrc:
export LD_LIBRARY_PATH=$HOME/usr/lib/mysql:$LD_LIBRARY_PATH
where $HOME/usr is the path you will use in the --prefix option when compiling

this is the mysql packages I've got installed in openSuse - I compile Amarok fine but not sure which are actually required for the task nor if they package names are the same for you

libmysqlcppconn-devel-1.0.5-6.2.x86_64
mysql-community-server-client-5.1.46-2.18.x86_64
libmysqlcppconn1-1.0.5-6.2.x86_64
mysql-community-server-5.1.46-2.18.x86_64
libqt4-sql-mysql-4.7.1-156.1.x86_64
libmysqlclient-devel-5.1.46-2.18.x86_64
libmysqld-devel-5.1.46-2.18.x86_64
libmysqlclient_r16-5.1.46-2.18.x86_64
libmysqlclient16-5.1.46-2.18.x86_64
libmysqld0-5.1.46-2.18.x86_64


OpenSuse Leap 42.1 x64, Plasma 5.x

vlad420
Registered Member
Posts
6
Karma
0
OS

Re: help compiling amarok 2.4

Sun Feb 06, 2011 6:59 pm
I do seem to be missing the dev libraries but unfortunately the only packages I can find are debs and I'm using Slackware so I think I'm just gonna stick with 2.3 for now unless someone knows where I can get them.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], q.ignora, watchstar