Jump to content

CMake Error


Recommended Posts

I got an CMake error. How I can fix it?

[email protected]:/home/mangos/mangos/build# cmake ..

-- The C compiler identification is GNU

-- The CXX compiler identification is GNU

-- Check for working C compiler: /usr/bin/gcc

-- Check for working C compiler: /usr/bin/gcc -- 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

-- Detected 64-bit platform.

-- Found Git: /usr/bin/git

This script builds the MaNGOS server.

Options that can be used in order to configure the process:

PREFIX: Path where the server should be installed to

PCH: Use precompiled headers

DEBUG: Debug mode

To set an option simply type -D<OPTION>=<VALUE> after 'cmake <srcs>'.

For example: cmake .. -DDEBUG=1 -DPREFIX=/opt/mangos

CMake Error at cmake/FindMySQL.cmake:151 (message):

Could not find the MySQL libraries! Please install the

development-libraries and headers.

Call Stack (most recent call first):

CMakeLists.txt:205 (find_package)

-- Configuring incomplete, errors occurred!

Link to comment
Share on other sites

Stupid question, but did you try to actually read the error?

CMake Error at cmake/FindMySQL.cmake:151 (message):

Could not find the MySQL libraries! Please install the

development-libraries and headers.

Since you didn't give any details about the Linux distro you're using, i can't tell you what package you need, in case of Ubuntu it would be libmysqlclient-dev for example.

Link to comment
Share on other sites

 Share

×
×
  • 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