- This topic has 1 reply, 2 voices, and was last updated 8 years, 8 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
Home › Forum › SOFA › Building SOFA › [SOLVED] Mac compilation v15.12 and master
Hi,
I had some problems compiling SOFA on Mac.
I followed the instruction from Getting Started -> build on MAC (https://www.sofa-framework.org/support/doc/getting-started/build/build-on-mac-os-x/)
Some things seem not to be up to date.
brew install install cmake -> brew install cmake
Then I had to build qt with –with-qt3support. Otherwise the make failed with
sofa/master/build/SofaGui/SofaGuiQt/ui_PluginManager.h:12:10: fatal error: ‘Qt3Support/Q3MimeSourceFactory’ file not found
#include <Qt3Support/Q3MimeSourceFactory>
It seems qt3 was removed, but maybe some dependencies are still there?
ui_PluginManager.h is generated by PluginManager.ui (?) I don’t understand why this header line is created #include <Qt3Support/Q3MimeSourceFactory>
My qt version is qt/4.8.7_2
The options documentation page seems also outdated:
for example the option
-DSOFA-PLUGIN_SOFAPYTHON=ON
is now
-DPLUGIN_SOFAPYTHON=ON
Compiler is Apple LLVM version 7.0.2 (clang-700.1.81)
I managed to compile both master and 15.12 (with these modifications), but let me know if something is not right (qt3support?) and I should recompile it!
-> and then maybe update the documentation page 😉
Thanks
Sergi
For the qt3support problem, there were some remnants of qt3 options into the .ui files (namely the line
I just committed into the master branch (#2d93de ) and backported into the v15.12 branch (#4ec83a)
It should fix your problem.
Thanks for your feedback !
WARNING
The forum has been moved to GitHub Discussions.
Old topics and replies are kept here as an archive.