Home › Forum › SOFA › Building SOFA › SOFA build on MacOS
Tagged: MacOS
- This topic has 6 replies, 4 voices, and was last updated 4 years, 8 months ago by Guillaume.
-
AuthorPosts
-
12 November 2019 at 16:05 #14585PriyaBlocked
Hi
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.
Thanks
Priya27 November 2019 at 16:36 #14639HugoKeymasterHi @priya-vada4
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?Best
Hugo
27 March 2020 at 14:25 #15572linzhiBlockedHi @Hugo
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[2]: *** No rule to make target/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/OpenGL.framework', needed by
lib/libSofaHelper.19.12.00.dylib’. Stop.
make[1]: *** [SofaKernel/SofaFramework/SofaHelper/CMakeFiles/SofaHelper.dir/all] Error 2Thanks.
Lin31 March 2020 at 11:39 #15596HugoKeymasterHi @priya-vada4
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.
Best,Hugo
31 March 2020 at 16:40 #15608HugoKeymastercould you tell us what are your cmake and XCode versions please?
Hugo
31 March 2020 at 21:43 #15613HugoKeymasterLatest update @priya-vada4 : got a confirmation, updating XCode to its latest version should work. Let us know if it solves your case.
Best wishes,
Hugo
31 March 2020 at 21:48 #15614GuillaumeKeymasterHi,
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:
xcode-select -p
5. Reboot
6. Erase your build directory
7. Clear ccache with
ccache -C
8. Build again
Hope that helps,
Guillaume. -
AuthorPosts
- You must be logged in to reply to this topic.