Closed WizzerWorks closed 2 months ago
If you are using a Boost version > 1.82 you may need (at least on macOS) to specify the C++ Standard version on the CMake command line, e.g. -DCMAKE_CXX_STANDARD=11.
For example: cmake -Hcoin -Bcoin_build -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_BUILD_TYPE=Release -DCOIN_BUILD_DOCUMENTATION=OFF -DCMAKE_CXX_STANDARD=11
The MacOS build should then succeed.
Use -DCMAKE_CXX_STANDARD=11 to resolve this issue.
msm@Marks-Mac-Pro Projects % cmake -Hcoin -Bcoin_build -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_BUILD_TYPE=Release -DCOIN_BUILD_DOCUMENTATION=OFF 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 value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.
-- The C compiler identification is AppleClang 14.0.0.14000029 -- The CXX compiler identification is AppleClang 14.0.0.14000029 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Looking for C++ include thread -- Looking for C++ include thread - found CMake Warning (dev) at CMakeLists.txt:172 (find_package): Policy CMP0167 is not set: The FindBoost module is removed. Run "cmake --help-policy CMP0167" for policy details. Use the cmake_policy command to set the policy and suppress this warning.
This warning is for project developers. Use -Wno-dev to suppress it.
-- Found Boost: /usr/local/lib/cmake/Boost-1.85.0/BoostConfig.cmake (found version "1.85.0") -- Found OpenGL: /Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk/System/Library/Frameworks/OpenGL.framework -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success -- Found Threads: TRUE -- Boost::boost;OpenGL::GL;OpenGL::GLU;Threads::Threads -- Looking for sys/types.h -- Looking for sys/types.h - found -- Looking for stdint.h -- Looking for stdint.h - found -- Looking for stddef.h -- Looking for stddef.h - found -- Check size of int8_t -- Check size of int8_t - done -- Check size of uint8_t -- Check size of uint8_t - done -- Check size of int16_t -- Check size of int16_t - done -- Check size of uint16_t -- Check size of uint16_t - done -- Check size of int32_t -- Check size of int32_t - done -- Check size of uint32_t -- Check size of uint32_t - done -- Check size of int64_t -- Check size of int64_t - done -- Check size of uint64_t -- Check size of uint64_t - done -- Check size of intptr_t -- Check size of intptr_t - done -- Check size of uintptr_t -- Check size of uintptr_t - done -- Looking for inttypes.h -- Looking for inttypes.h - found -- Looking for unistd.h -- Looking for unistd.h - found -- Looking for sys/time.h -- Looking for sys/time.h - found -- Looking for sys/timeb.h -- Looking for sys/timeb.h - found -- Looking for sys/stat.h -- Looking for sys/stat.h - found -- Looking for sys/param.h -- Looking for sys/param.h - found -- Looking for io.h -- Looking for io.h - not found -- Looking for ieeefp.h -- Looking for ieeefp.h - not found -- Looking for time.h -- Looking for time.h - found -- Looking for 4 include files stdlib.h, ..., float.h -- Looking for 4 include files stdlib.h, ..., float.h - found -- Looking for windows.h -- Looking for windows.h - not found -- Looking for libgen.h -- Looking for libgen.h - found -- Looking for gettimeofday -- Looking for gettimeofday - found -- Looking for mach-o/dyld.h -- Looking for mach-o/dyld.h - found -- Looking for NSLookupAndBindSymbol -- Looking for NSLookupAndBindSymbol - found -- Looking for dlfcn.h -- Looking for dlfcn.h - found -- Looking for shl_load in dld -- Looking for shl_load in dld - not found -- Performing Test HAVE_CGL -- Performing Test HAVE_CGL - Success -- Performing Test HAVE_CGL_PBUFFER -- Performing Test HAVE_CGL_PBUFFER - Success -- Looking for OpenGL/gl.h -- Looking for OpenGL/gl.h - found -- Looking for OpenGL/glu.h -- Looking for OpenGL/glu.h - found -- Looking for OpenGL/glext.h -- Looking for OpenGL/glext.h - found -- Looking for OpenGL/CGLCurrent.h -- Looking for OpenGL/CGLCurrent.h - found -- Looking for va_copy -- Looking for va_copy - found -- Looking for strncasecmp -- Looking for strncasecmp - found -- Looking for memmove -- Looking for memmove - found -- Looking for bcopy -- Looking for bcopy - found -- Looking for fstat -- Looking for fstat - found -- Looking for localtime_s -- Looking for localtime_s - not found -- Looking for localtime_r -- Looking for localtime_r - found -- Looking for ftime -- Looking for ftime - found -- Looking for getcwd -- Looking for getcwd - found -- Looking for isinf -- Looking for isinf - found -- Looking for isnan -- Looking for isnan - found -- Looking for finite -- Looking for finite - found -- Looking for ilogb -- Looking for ilogb - found -- Looking for vsnprintf -- Looking for vsnprintf - found -- Looking for builtin_expect -- Looking for __builtin_expect - not found -- Looking for func -- Looking for func - found -- Looking for PRETTY_FUNCTION -- Looking for PRETTY_FUNCTION - found -- Looking for FUNCTION -- Looking for FUNCTION__ - found -- Performing Test HAVE_PTHREAD_TIMESPEC_NSEC -- Performing Test HAVE_PTHREAD_TIMESPEC_NSEC - Success -- Check size of ((struct timeval)0)->tv_sec -- Check size of ((struct timeval)0)->tv_sec - done -- Check size of time_t -- Check size of time_t - done -- Check size of ((struct timeval)0)->tv_usec -- Check size of ((struct timeval)0)->tv_usec - done -- Check size of suseconds_t -- Check size of suseconds_t - done -- Performing Test HAVE_HASH_QUOTING -- Performing Test HAVE_HASH_QUOTING - Success -- Performing Test DISABLE_WARNING_TAUTOLOGCOMPARE -- Performing Test DISABLE_WARNING_TAUTOLOGCOMPARE - Success -- Configuring done (20.7s) -- Generating done (0.7s) -- Build files have been written to: /Users/msm/Projects/coin_build
msm@Marks-Mac-Pro coin % cd coin_build msm@Marks-Mac-Pro coin_build % ls CMakeCache.txt Coin.pc bin data src CMakeFiles Info.plist cmake_install.cmake include testsuite CTestTestfile.cmake Makefile coin-default.cfg lib version.plist msm@Marks-Mac-Pro coin_build % make [ 1%] Building CXX object src/soscxml/CMakeFiles/soscxml.dir/ScXMLCoinEvaluator.cpp.o In file included from /Users/msm/Projects/coin/src/soscxml/ScXMLCoinEvaluator.cpp:50: In file included from /usr/local/include/boost/scoped_array.hpp:13: In file included from /usr/local/include/boost/smart_ptr/scoped_array.hpp:13: /usr/local/include/boost/smart_ptr/detail/requires_cxx11.hpp:19:1: warning: C++03 support was deprecated in Boost.SmartPtr 1.82 and will be removed in Boost.SmartPtr 1.86. [-W#pragma-messages] BOOST_PRAGMA_MESSAGE("C++03 support was deprecated in Boost.SmartPtr 1.82 and will be removed in Boost.SmartPtr 1.86.") /usr/local/include/boost/config/pragma_message.hpp:24:34: note: expanded from macro 'BOOST_PRAGMA_MESSAGE' # define BOOST_PRAGMA_MESSAGE(x) _Pragma(BOOST_STRINGIZE(message(x)))