8 February 2021 at 15:19 #18547peluntraBlocked
when trying to compile SOFA on my Mac, I get this error:
[ 16%] Building CXX object SofaKernel/SofaFramework/SofaHelper/CMakeFiles/SofaHelper.dir/src/sofa/helper/gl/FrameBufferObject.cpp.o make: *** No rule to make target <code>/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/OpenGL.framework', needed by</code>lib/libSofaHelper.20.06.00.dylib'. Stop. make: *** Waiting for unfinished jobs.... make: *** [SofaKernel/SofaFramework/SofaHelper/CMakeFiles/SofaHelper.dir/all] Error 2 make: *** [all] Error 2
I followed the steps exactly as described in the documentation and tried different versions of SOFA, including v19.12, v20.06, and v20.12, but I always get stuck during the compilation with the same error. When activating
SOFA_NO_OPENGLin CMake, everything works fine but since I want to use the CGAL plugin, I need OpenGL. However, the path to the OpenGl framework seems to have been moved to
wherefore it cannot be found on the path mentioned in the error message.
I already tried updating (and reinstalling) XCode as proposed here,
xcode-select -palso looks fine. I also upgraded glew and checked my compilers, as mentioned here. None of these solved the problem.
My macOS version is macOS 10.15.7, I’m using Apple clang version 12.0.0 (clang-1184.108.40.206) and XCode Version 12.4.
I will be grateful for any help!
Peluntra11 February 2021 at 16:34 #18572GuillaumeKeymaster
What is your CMake version?
You could try replacing with CMake-GUI all occurrences of
EDIT: you can also try replacing by
Hope that helps,
Guillaume.15 February 2021 at 12:51 #18673peluntraBlocked
Thanks for your help Guillaume! 🙂
I solved it by simply running
xcode-select --installto reinstall the command line tools.
I hope this helps other frustrated collegues.
- You must be logged in to reply to this topic.