Error compilation
#1
Hello,

I have errors compilations with Cmake:
http://prntscr.com/65cp1y

I select all square.

Code:
xxd not found, changes to tolua scripts will be ignored
CMake Warning (dev) at lib/SQLiteCpp/CMakeLists.txt:111 (if):
  Policy CMP0054 is not set: Only interpret if() arguments as variables or
  keywords when unquoted.  Run "cmake --help-policy CMP0054" for policy
  details.  Use the cmake_policy command to set the policy and suppress this
  warning.

  Quoted variables like "MSVC" will no longer be dereferenced when the policy
  is set to NEW.  Since the policy is not set the OLD behavior will be used.
This warning is for project developers.  Use -Wno-dev to suppress it.

SQLITECPP_RUN_CPPLINT OFF
SQLITECPP_RUN_CPPCHECK OFF
SQLITECPP_RUN_DOXYGEN OFF
SQLITECPP_BUILD_EXAMPLES OFF
SQLITECPP_BUILD_TESTS OFF
CMake Warning (dev) at lib/libevent/CMakeLists.txt:82 (if):
  Policy CMP0054 is not set: Only interpret if() arguments as variables or
  keywords when unquoted.  Run "cmake --help-policy CMP0054" for policy
  details.  Use the cmake_policy command to set the policy and suppress this
  warning.

  Quoted variables like "MSVC" will no longer be dereferenced when the policy
  is set to NEW.  Since the policy is not set the OLD behavior will be used.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Error at lib/libevent/CMakeLists.txt:83 (message):
  Trying to compile coverage support (--DEVENT__COVERAGE) but compiler is not
  GNU gcc! Aborting...  You can set this on the command line using
  CC=/usr/bin/gcc CXX=/usr/bin/g++ cmake <options> ..


Configuring incomplete, errors occurred!
See also "C:/Users/Creaprog/Documents/code source mcserver/sources/CMakeFiles/CMakeOutput.log".
See also "C:/Users/Creaprog/Documents/code source mcserver/sources/CMakeFiles/CMakeError.log".

why ?
Reply
Thanks given by:
#2
Did you change any options in the GUI? You're not supposed to, we should have reasonable defaults in place. It seems your EVENT__COVERAGE variable is set to true and that's causing the error; set it to false and retry.

Normally we only use commandline cmake, which means executing "cmake ." in the MCS source root. Much easier than the GUI.
Reply
Thanks given by:
#3
Ok, by default no problem. If i select all there are errors.
Reply
Thanks given by:




Users browsing this thread: 1 Guest(s)