ad-freiburg / loom

Software suite for the automated generation of geographically correct or schematic transit maps.
GNU General Public License v3.0
132 stars 12 forks source link

Error when cmake: Your C++ compiler does not support C++11 #9

Closed yan-map closed 6 months ago

yan-map commented 1 year ago

Hello!

I'm struggling to build the project on command cmake .. I have this error list:

CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.19045.
CMake Warning (dev) at cmake/FindGLPK.cmake:62 (MARK_AS_ADVANCED):
  Policy CMP0102 is not set: The variable named "GLPK_BIN_DIR" is not in the
  cache.  This results in an empty cache entry which is no longer created
  when policy CMP0102 is set to NEW.  Run "cmake --help-policy CMP0102" for
  policy details.  Use the cmake_policy command to set the policy and
  suppress this warning.
Call Stack (most recent call first):
  CMakeLists.txt:16 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

Found no Gurobi library. If you have Gurobi installed, make sure GUROBI_HOME is set properly.
    COIN Root Dir: COIN_INCLUDE_DIR-NOTFOUND
COIN_ROOT_DIR hint is : 
Coin multiple library dependency status:
    COIN Include Dir: COIN_INCLUDE_DIR-NOTFOUND/coin
    COIN CBC: COIN_CBC_LIBRARY-NOTFOUND
    COIN CBC solver: COIN_CBC_SOLVER_LIBRARY-NOTFOUND
    COIN CGL: COIN_CGL_LIBRARY-NOTFOUND
    COIN CLP: COIN_CLP_LIBRARY-NOTFOUND
    COIN UTILS: COIN_COIN_UTILS_LIBRARY-NOTFOUND
    COIN OSI: COIN_OSI_LIBRARY-NOTFOUND
    COIN OSI CBC: COIN_OSI_CBC_LIBRARY-NOTFOUND
    COIN OSI CLP: COIN_OSI_CLP_LIBRARY-NOTFOUND
    COIN ZLIB: C:/Users/Yan/anaconda3/Library/lib/z.lib
    COIN BZ2: COIN_BZ2_LIBRARY-NOTFOUND
Could NOT find COIN (missing: COIN_CBC_LIBRARY COIN_CBC_SOLVER_LIBRARY COIN_CGL_LIBRARY COIN_CLP_LIBRARY COIN_COIN_UTILS_LIBRARY COIN_OSI_LIBRARY COIN_OSI_CBC_LIBRARY COIN_OSI_CLP_LIBRARY COIN_BZ2_LIBRARY) 
COIN Include Dirs NOT FOUND
CMake Warning (dev) at CMakeLists.txt:55 (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 Warning (dev) at CMakeLists.txt:65 (elseif):
  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 CMakeLists.txt:69 (message):
  Your C++ compiler does not support C++11.

clang version 17.0.2 gcc (MinGW.org GCC-6.3.0-1) 6.3.0

Thank you!

patrickbr commented 11 months ago

Could you try again with the latest master? I replaced the old manual logic to set up C++-11 by set(CMAKE_CXX_STANDARD 11).

patrickbr commented 6 months ago

I am assuming this issue is now fixed with the latest master.