12 November 2019 at 16 h 05 min #14585PriyaParticipant
I am trying to build SOFA on MacOS but keep running into this error:
/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/OpenGL.framework’, needed by `lib/libSofaHelper.19.06.01.dylib’. Stop.
Any help would be greatly appreciated.
Priya27 November 2019 at 16 h 36 min #14639
First of all, welcome in our open source and free forum!
From what I understand you downloaded the sources of SOFA and you compiled it. Right? Did the compilation process run properly?
Hugo27 March 2020 at 14 h 25 min #15572linzhiParticipant
I got the same problem with Priya.
I followed the steps in your tutorial for mac. When I finished configuring and generating in CMake UI, I want to compile it in the terminal. Then the error occurred:
[ 9%] Built target QGLViewer
make: *** No rule to make target
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/OpenGL.framework', needed bylib/libSofaHelper.19.12.00.dylib’. Stop.
make: *** [SofaKernel/SofaFramework/SofaHelper/CMakeFiles/SofaHelper.dir/all] Error 2
Lin31 March 2020 at 11 h 39 min #15596
I already saw this kind of issue.
Some reported this problem due to the glew library. I was installed with homebrew which was not up-to-date (with a dependency on the old OpenGL):
brew upgrade glew
Let me know whether this helps.
Hugo31 March 2020 at 16 h 40 min #15608
could you tell us what are your cmake and XCode versions please?
Hugo31 March 2020 at 21 h 43 min #15613
Latest update @priya-vada4 : got a confirmation, updating XCode to its latest version should work. Let us know if it solves your case.
Hugo31 March 2020 at 21 h 48 min #15614GuillaumeKeymaster
- SOFA Consortium
I just had this issue. Here is how I solved it.
1. Download and install the highest possible Xcode compatible with your MacOS.
Compatibility list (taken from Wikipedia):
MacOS >= 10.15.2 : Xcode 11.4 MacOS >= 10.14.4 : Xcode 11.3.1 MacOS >= 10.14.3 : Xcode 10.3 MacOS >= 10.13.6 : Xcode 10.1 MacOS >= 10.13.2 : Xcode 9.4.1 MacOS >= 10.12.6 : Xcode 9.2 MacOS >= 10.12 : Xcode 8.3.3 MacOS >= 10.11.5 : Xcode 8.2.1 MacOS >= 10.11 : Xcode 7.3.1
To download any version, go to https://developer.apple.com/download/more/ and search “Xcode”.
2. Open Xcode to automatically finalize installation
3. In Xcode, navigate to “Xcode > Preferences > Locations” and set Command Line Tools to your Xcode version
4. Switch Command Line Tools to your Xcode install:
xcode-select --switch /Applications/Xcode.app
Verify your command:
6. Erase your build directory
7. Clear ccache with
8. Build again
Hope that helps,
- You must be logged in to reply to this topic.