Hi, the problem is that CMake is not able to find valid compiler due to the 
fact that it tries to use stdlibc++. I have latest version of XCode 10.1 and 
command line tools.

The exact error is this one:

Code:

CMake Error at 
/Applications/CMake.app/Contents/share/cmake-3.13/Modules/CMakeTestCXXCompiler.cmake:45
 (message):
  The C++ compiler

    
"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: /Users/janbrejcha/devel/OpenSceneGraph/build/CMakeFiles/CMakeTmp
    
    Run Build Command:"/usr/bin/make" "cmTC_d8931/fast"
    /Applications/Xcode.app/Contents/Developer/usr/bin/make -f 
CMakeFiles/cmTC_d8931.dir/build.make CMakeFiles/cmTC_d8931.dir/build
    Building CXX object CMakeFiles/cmTC_d8931.dir/testCXXCompiler.cxx.o
    
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
    -arch x86_64 -isysroot 
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk
 -mmacosx-version-min=10.8   -o CMakeFiles/cmTC_d8931.dir/testCXXCompiler.cxx.o 
-c 
/Users/janbrejcha/devel/OpenSceneGraph/build/CMakeFiles/CMakeTmp/testCXXCompiler.cxx
    warning: include path for stdlibc++ headers not found; pass '-std=libc++' 
on the command line to use the libc++ standard library instead 
[-Wstdlibcxx-not-found]
    1 warning generated.
    Linking CXX executable cmTC_d8931
    /Applications/CMake.app/Contents/bin/cmake -E cmake_link_script 
CMakeFiles/cmTC_d8931.dir/link.txt --verbose=1
    
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
    -arch x86_64 -isysroot 
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk
 -mmacosx-version-min=10.8 -Wl,-search_paths_first 
-Wl,-headerpad_max_install_names   
CMakeFiles/cmTC_d8931.dir/testCXXCompiler.cxx.o  -o cmTC_d8931 
    clang: warning: libstdc++ is deprecated; move to libc++ with a minimum 
deployment target of OS X 10.9 [-Wdeprecated]
    ld: library not found for -lstdc++
    clang: error: linker command failed with exit code 1 (use -v to see 
invocation)
    make[1]: *** [cmTC_d8931] Error 1
    make: *** [cmTC_d8931/fast] Error 2
    

  

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:113 (PROJECT)




kornerr wrote:
> Hi. What are the issues exactly?
> 
> On Tue, 5 Feb 2019 at 10:31, Jan Brejcha <> wrote:
> 
> > 
> > Hi Ulrich,
> > 
> > I am also wondering why there are no other people complaining about the 
> > same issue. It is also weird that before the update to macos 10.14 I have 
> > had exactly the same version of XCode as I have now, and everything worked 
> > well for me. I didn't do much research about it, but it looks like it could 
> > be a change in the system environment or CMake maybe?
> > 
> > I am happy to help with debugging if you can provide the diff, that would 
> > be great.
> > 
> > Thanks, Jan.
> > 
> > ------------------
> > Read this topic online here:
> > http://forum.openscenegraph.org/viewtopic.php?p=75583#75583
> > 
> > 
> > 
> > 
> > 
> > _______________________________________________
> > osg-users mailing list
> > 
> > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> > 
> _______________________________________________
> osg-users mailing list
> 
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> 
>  ------------------
> Post generated by Mail2Forum

Code:




------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=75590#75590





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to