Jump to content
  • 0

CentOS 7 en Wiki needs correction?


Wryshu

Question

When following the Wiki CentOS 7 en guide, I'm running into an error when executing cmake command:

mkdir _build && cd _build

and here is the huge command of the day:

***I'm making an assumption here that the above should be, because the above when followed as posted leads to an error about missing CMakeLists.txt

mkdir /opt/mangos/SOURCES/server/src/bindings/scripts/_build && cd /opt/mangos/SOURCES/server/src/bindings/scripts/_build

When running the following, you get the error listed below.

cmake .. -DTBB_USE_EXTERNAL=1 -DCMAKE_BUILD_TYPE=release -DACE_USE_EXTERNAL=0 -DCMAKE_INSTALL_PREFIX=/opt/mangos -DINCLUDE_BINDINGS_DIR=scripts -DPCH=0 -DCMAKE_CXX_FLAGS="-O3 -march=native" -DCMAKE_C_FLAGS="-O3 -march=native"

results in the following error:

CMake Error at CMakeLists.txt:95 (set_target_properties):
 set_target_properties called with incorrect number of arguments.


CMake Error at CMakeLists.txt:138 (install):
 install TARGETS given no LIBRARY DESTINATION for shared library target
 "mangosscript".


CMake Error at CMakeLists.txt:143 (install):
 install FILES given no DESTINATION!


CMake Warning (dev) in CMakeLists.txt:
 No cmake_minimum_required command is present.  A line of code such as

   cmake_minimum_required(VERSION 2.8)

 should be added at the top of the file.  The version specified may be lower
 if you wish to support older CMake versions for this project.  For more
 information run "cmake --help-policy CMP0000".
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring incomplete, errors occurred!

I'm trying to polish the tutorial a bit and make it easier for CentOS users.

Thanks!

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

***I'm making an assumption here that the above should be, because the above when followed as posted leads to an error about missing CMakeLists.txt

mkdir /opt/mangos/SOURCES/server/src/bindings/scripts/_build && cd /opt/mangos/SOURCES/server/src/bindings/scripts/_build

When running the following, you get the error listed below.

cmake .. -DTBB_USE_EXTERNAL=1 -DCMAKE_BUILD_TYPE=release -DACE_USE_EXTERNAL=0 -DCMAKE_INSTALL_PREFIX=/opt/mangos -DINCLUDE_BINDINGS_DIR=scripts -DPCH=0 -DCMAKE_CXX_FLAGS="-O3 -march=native" -DCMAKE_C_FLAGS="-O3 -march=native"

You may create the build folder anywhere you want. Nevertheless, cmake must get the repository root folder path (the folder containing this) as the first parameter. The guide implies that you issue "mkdir" command while having the folder as the current one, therefore ".." in the cmake command points to the root repo folder. To correct your example, if you stay firm in creating the build folder in that place, you need to change ".." cmake command line parameter to "/opt/mangos/SOURCES/server".

Note that the SD3 script library does not require any separate build. It is an integral part of the solution.

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