Jump to content
  • 0

MySQL Development Library Issue


Jadenn

Question

Not sure where to start with this one, so i'll start with the error and what i've researched on the issue.

So basically, while building I get the error

make[2]: *** No rule to make target `/usr/lib/libmysqlclient_r.so', needed by `src/realmd/realmd'. Stop.

Now, as a young system administrator, I am into `cool` things, so I of course run MariaDB everywhere. I had already encountered the whole mysql dev lib issue when I did this last year, but they had since fixed their debian repo to detect maria's libmysqlclient-dev and handle the mysql++ wrapping accordingly. So that is all good and well, I have verified the library in question does exist.

During my visit to #maria, I am told that maria's development libs should be compatible with any software that requires the mysql libs. So i'll stop rambling and end off with versions, etc, and get to my question. Is there a cmake option to use an external mysql lib?

Debian 7

MariaDB 5.5

MangosThree

MaNGOS-Core revision 4b960bb1b5895f6675cf1ad5f0b2a79880a20f05

Regards,

Jadenn

P.S. After glancing at the CMake log again, I did notice this little tidbit:

-- Found MySQL library: /usr/lib/libmysqlclient_r.so

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

Took a bit longer than that night sorry, building it atm. Will post back with an update

Edit:

Sorry, i can't replicate this on my arch x64 installation. Running mariadb 5.5.36-1 though so it shouldn't be a difference there at least :/

Here's what cmake says to me:

[xxx@xxx obj]$ cmake .. -DCMAKE_INSTALL_PREFIX=~/src/c++/mangosthree/bin/
-- The C compiler identification is GNU 4.8.2
-- The CXX compiler identification is GNU 4.8.2
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done

This script builds the MaNGOS server.
 Options that can be used in order to configure the process:
   CMAKE_INSTALL_PREFIX    Path where the server should be installed to
       CMAKE_BUILD_TYPE        Sets build type (Release;Debug;...)
   PCH                     Use precompiled headers
   INCLUDE_BINDINGS_DIR    Include a script library in src/bindings/ with the
                           defined name. the name must corespond to the name of
                           the folder and the folder must contain a valid
                           CMakeLists.txt
   ACE_USE_EXTERNAL        Use external ACE
 To set an option simply type -D<OPTION>=<VALUE> after 'cmake <srcs>'.
 Also, you can specify the generator with -G. see 'cmake --help' for more details
 For example: cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=/opt/mangos

-- Detected 64-bit platform.
-- Found Git: /usr/bin/git (found version "1.9.1") 
-- Using mysql-config: /usr/bin/mysql_config
-- Found MySQL library: /usr/lib64/libmysqlclient_r.so
-- Found MySQL headers: /usr/include/mysql
-- Found OpenSSL: /usr/lib64/libssl.so;/usr/lib64/libcrypto.so (found version "1.0.1g") 
-- Found ZLIB: /usr/lib64/libz.so (found version "1.2.8") 
-- MaNGOS-Core revision  : 4b960bb1b5895f6675cf1ad5f0b2a79880a20f05
-- Install server to     : /home/xxx/src/c++/mangosthree/bin
-- Build script library  : No
-- Use PCH               : No
-- Using Linux port
-- Configuring done
-- Generating done
-- Build files have been written to: /home/xxx/src/c++/mangosthree/server/obj

Have you tried removing your object dir and recreating it so that cmake hasn't done some strange caching?

As i don't have access to a debian machine i'm afraid i can't be of much more help :(

Link to comment
Share on other sites

Thank you for trying, I will try cloning a clean folder and give it a whirl later today. I also forgot to post my make arguments:

cmake .. -DCMAKE_INSTALL_PREFIX=/home/wow -DTBB_USE_EXTERNAL=1 -DACE_USE_EXTERNAL=1 -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-O3 -march=native" -DCMAKE_C_FLAGS="-O3 -march=native" -DINCLUDE_BINDINGS_DIR=ScriptDev2  -DTBB_USE_EXTERNAL=1

Not sure if any of that makes a difference.

Cheers,

Jadenn

Link to comment
Share on other sites

Thank you for trying, I will try cloning a clean folder and give it a whirl later today. I also forgot to post my make arguments:

cmake .. -DCMAKE_INSTALL_PREFIX=/home/wow -DTBB_USE_EXTERNAL=1 -DACE_USE_EXTERNAL=1 -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-O3 -march=native" -DCMAKE_C_FLAGS="-O3 -march=native" -DINCLUDE_BINDINGS_DIR=ScriptDev2  -DTBB_USE_EXTERNAL=1

Not sure if any of that makes a difference.

Cheers,

Jadenn

I'll try with those settings aswell and see if it's any different, hope you'll get it sorted!

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use