Jump to content
  • 0

[ZERO] Error CMAKE


minatohd

Question

mkdir objdir

cd objdir

cmake .. -DPREFIX=/opt/mangos-server

root@vps23549:~/mangos/server/objdir# cmake .. -DPREGIX=/opt/mangos-server
-- 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

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
   PCH                     Use precompiled headers
   DEBUG                   Debug mode
   TBB_USE_EXTERNAL        Use external TBB
   USE_STD_MALLOC          Use standard malloc instead of TBB
   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 .. -DDEBUG=1 -DCMAKE_INSTALL_PREFIX=/opt/mangos

-- Detected 64-bit platform.
-- Found Git: /usr/bin/git
-- Using mysql-config: /usr/bin/mysql_config
-- Found MySQL library: /usr/lib/x86_64-linux-gnu/libmysqlclient_r.so
-- Found MySQL headers: /usr/include/mysql
-- Found OpenSSL library: /usr/lib/x86_64-linux-gnu/libssl.so
-- Found OpenSSL headers: /usr/include/openssl
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.3.4")
-- MaNGOS-Core revision  : 41ca23c208618d398389214c1a4c09b85b39b78a
-- Install server to     : /usr/local
-- Use PCH               : No
-- Build in debug-mode   : No  (default)
CMake Error at src/bindings/CMakeLists.txt:21 (add_subdirectory):
 add_subdirectory given source "scripts" which is not an existing directory.


-- Configuring incomplete, errors occurred!

Why do I get this error?

EDIT: Ubuntu Server 12.04

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

CMake Error at src/bindings/CMakeLists.txt:21 (add_subdirectory):

add_subdirectory given source "scripts" which is not an existing directory.

scripts missing in bindings folder https://github.com/mangoszero/scripts

Now I get another error

CMake Error at CMakeLists.txt:90 (message):
 The parameter PREFIX has been removed.  Please re-run CMake and use
 CMAKE_INSTALL_PREFIX instead to define your installation location!

I always use this command, what should I do?

cmake .. -DPREFIX=/opt/mangos-server

EDIT: Thanks for the help

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