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

MYSQL_EMBEDDED_LIBRARIES

Tags: None
(comma "," separated)
alfetopito
Registered Member
Posts
10
Karma
0

MYSQL_EMBEDDED_LIBRARIES

Thu Oct 09, 2008 7:22 pm
Hi!

Just updated from svn(r869676) and when I try to build I've got this:

Code: Select all
alfeto@amebamovel:~/workspace/amarok/build$ make 
-- Found Qt-Version 4.4.2 (using /usr/bin/qmake)        
-- Found X11: /usr/lib/libX11.so                        
-- Found Automoc4: /usr/bin/automoc4                    
-- Found KDE 4.1 include dir: /usr/include              
-- Found KDE 4.1 library dir: /usr/lib                  
-- Found KDE4 kconfig_compiler preprocessor: /usr/bin/kconfig_compiler
-- Found automoc4: /usr/bin/automoc4                                 
Qt NSPLUGIN library not found.                                       
-- Found taglib: -L/usr/lib -ltag                                    
-- Taglib found: -L/usr/lib -ltag                                    
-- Found Strigi >= 0.5.9                                             
-- Found Strigi: /usr/lib/libstreams.so                              
-- Found MySQL: /usr/include/mysql, /usr/lib/libmysqlclient.so       
-- MySQL Embedded not found.                                         
-- Found GLIB2: /usr/lib/libglib-2.0.so                              
-- Could not find OPTIONAL package MP4V2                             
-- Found MTP: /usr/lib/libmtp.so                                     
-- Libgcrypt found: /usr/lib/libgcrypt.so                            
-- Found GObject libraries: /usr/lib/libgobject-2.0.so;/usr/lib/libgmodule-2.0.so;/usr/lib/libgthread-2.0.so;/usr/lib/libglib-2.0.so                             
-- Found GObject includes : /usr/include/glib-2.0/gobject
-- KDE CMake PKGCONFIG macro indicates that loudmouth-1.0 is not installed on your computer.
-- Install the package which contains loudmouth-1.0.pc if you want to support this feature.
-- Could not find OPTIONAL package Loudmouth
-- Found KdeMultimedia: /usr/lib/libkcddb.so;/usr/lib/libkcompactdisc.so
-- Found Soprano: /usr/lib/libsoprano.so
-- Found Soprano includes: /usr/include
-- Found Soprano Index: /usr/lib/libsopranoindex.so
-- Found Soprano Client: /usr/lib/libsopranoclient.so
-- Found MTP: /usr/lib/libmtp.so
--
-----------------------------------------------------------------------------
-- The following REQUIRED packages could NOT be located on your system.
-- Please install them before continuing this software installation.
-----------------------------------------------------------------------------
+ mysqld: Embedded MySQL <http://www.mysql.com>
-----------------------------------------------------------------------------
CMake Error: Exiting: Missing Requirements
CMake Error: This project requires some variables to be set,
and cmake can not find them.
Please set the following variables:
MYSQL_EMBEDDED_LIBRARIES (ADVANCED)

-- Configuring done
make: *** [cmake_check_build_system] Error 255


I researched a little bit and find out that
The embedded MySQL server library is NOT part of MySQL 5.0. It is part of previous editions and will be included in future versions, starting with MySQL 5.1.
From http://dev.mysql.com/doc/refman/5.0/en/libmysqld.html.

I need to install the next version of MySQL then?

Maybe yes, how I could see someone saying that on the devel lists http://lists.kde.org/?l=amarok-devel&m=122221019012877&w=2

And agreeing with him, do I need to do this to test/use amarok from svn?

I'll try to do as he said, but I would prefer an easier way to do it.

Or all that I said was ****? Please, let me know.


tks.
User avatar
markey
KDE Developer
Posts
2286
Karma
3
OS

Re: MYSQL_EMBEDDED_LIBRARIES

Thu Oct 09, 2008 8:05 pm
It is really easy to build MySQL, if you use our script. Does it all automatically.


--
Mark Kretschmann - Amarok Developer
alfetopito
Registered Member
Posts
10
Karma
0

Re: MYSQL_EMBEDDED_LIBRARIES

Thu Oct 09, 2008 9:11 pm
Well, that's true, everything went fine.

I've build the MySQL and amarok successfully, but when I launch it:

KLibLoader could not load the plugin:
libamarok_collection-sqlcollection
Error message:
QLibrary::load_sys: Cannot load /usr/lib/kde4/libamarok_collection-sqlcollection.so (libmysqlclient.so.16: cannot open shared object file: No such file or directory)


What can I do now?
User avatar
markey
KDE Developer
Posts
2286
Karma
3
OS

Re: MYSQL_EMBEDDED_LIBRARIES

Thu Oct 09, 2008 9:54 pm
Uninstall your distro MySQL package. You may possibly have to nuke the build folder and rebuild after that.


--
Mark Kretschmann - Amarok Developer
alfetopito
Registered Member
Posts
10
Karma
0

Re: MYSQL_EMBEDDED_LIBRARIES

Fri Oct 10, 2008 1:16 pm
I did that, uninstalled my old mysql, recompiled mysql5.1 and amarok etc.

But I still got this:

Code: Select all
KLibLoader could not load the plugin:
libamarok_collection-sqlcollection
Error message:
QLibrary::load_sys: Cannot load /usr/lib/kde4/libamarok_collection-sqlcollection.so (libmysqlclient.so.16: cannot open shared object file: No such file or directory)



What am I missing?
User avatar
markey
KDE Developer
Posts
2286
Karma
3
OS

Re: MYSQL_EMBEDDED_LIBRARIES

Fri Oct 10, 2008 1:23 pm
Did you actually delete your Amarok build folder completely? Then you need to run CMake again, etc.


--
Mark Kretschmann - Amarok Developer
alfetopito
Registered Member
Posts
10
Karma
0

Re: MYSQL_EMBEDDED_LIBRARIES

Fri Oct 10, 2008 1:33 pm
Yup, I did. Removed the build directory from my amorok svn folder, CMake once again, etc.

The same way as I deleted all the mysql5.1 building directory, unpacked it, build it.

Oh, forgot to mention.

It's not working yet, the same as the earlier post.

Last edited by alfetopito on Fri Oct 10, 2008 7:41 pm, edited 1 time in total.
imported-amurian
Registered Member
Posts
3
Karma
0

Re: MYSQL_EMBEDDED_LIBRARIES

Sat Oct 11, 2008 10:04 am
I found a way to resolve on linuxquestions.
First you have to locate libmsyqlclient.so.16
If you don't know where the script installed it run the command
Code: Select all
$ locate libmysqlclient.so.16

Then, when you have the directory containing that file copy the path to it, only the directory, not also the filename.
Now edit your ld.so.conf doing
Code: Select all
# kwrite /etc/ld.so.conf

and add the directory as a new line.
Then simply run
Code: Select all
# ldconfig

Amarok returns to rock!
alfetopito
Registered Member
Posts
10
Karma
0

Re: MYSQL_EMBEDDED_LIBRARIES

Sun Oct 12, 2008 12:30 pm
amurian wrote:I found a way to resolve on linuxquestions.
First you have to locate libmsyqlclient.so.16
If you don't know where the script installed it run the command
Code: Select all
$ locate libmysqlclient.so.16

Then, when you have the directory containing that file copy the path to it, only the directory, not also the filename.
Now edit your ld.so.conf doing
Code: Select all
# kwrite /etc/ld.so.conf

and add the directory as a new line.
Then simply run
Code: Select all
# ldconfig

Amarok returns to rock!


Well, looks like it worked!

but, now I have another problem.

when I run amarok, the kded4 crashes...

Any ideas?
alfetopito
Registered Member
Posts
10
Karma
0

Re: MYSQL_EMBEDDED_LIBRARIES

Sun Oct 12, 2008 12:43 pm
alfetopito wrote:
Well, looks like it worked!

but, now I have another problem.

when I run amarok, the kded4 crashes...

Any ideas?


Hey!

I've just found it:

http://lists.kde.org/?l=amarok&m=122312836413611&w=2

No more complains! Its solved by now!


Bookmarks



Who is online

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