copyand rename /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk to /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk
Since I was not getting anywhere, I reinstalled EVERYTHING, but home-brew stopped immediately
This formula was found in a tap:
caskroom/cask/freecad
To install it, run:
brew install caskroom/cask/freecad
[/Users/fca] brew install --only-dependencies caskroom/cask/freecad
I hope I am doing this right. Best,
Federico Carminati
Co-Founder and Scientific Director of Transmutex SA
Switzerland/Suisse
OK,
I zapped everything and reinstalled. It worked "almost" out of the box:
Fasteners workbench Loaded
During initialization the error "'RaytracingWorkbench' already exists." occurred in /Applications/FreeCAD.app/Contents/Mod/JtReader/InitGui.py
Please look into the log file for further information
dlopen(/Applications/FreeCAD.app/Contents/lib/WebGui.so, 2): Library not loaded: @rpath/libpng16.16.dylib
Referenced from: /Applications/FreeCAD.app/Contents/lib/QtWebKit
Reason: Incompatible library version: QtWebKit requires version 51.0.0 or later, but libpng16.16.dylib provides version 38.0.0
Traceback (most recent call last):
File "<string>", line 43, in Initialize
It turns out libpng 38 was brought in by matplotlib
[...r/local/FreeCAD/build] for i in `find /usr/local -name libpng16.16.dylib` ; do otool -L $i ; done
/usr/local/lib/libpng16.16.dylib:
/usr/local/opt/libpng/lib/libpng16.16.dylib (compatibility version 51.0.0, current version 51.0.0)
/usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.11)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1252.0.0)
/usr/local/lib/python2.7/site-packages/matplotlib/.dylibs/libpng16.16.dylib:
/DLC/matplotlib/libpng16.16.dylib (compatibility version 38.0.0, current version 38.0.0)
@loader_path/libz.1.2.10.dylib (compatibility version 1.0.0, current version 1.2.10)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1238.60.2)
/usr/local/Cellar/libpng/1.6.34/lib/libpng16.16.dylib:
/usr/local/opt/libpng/lib/libpng16.16.dylib (compatibility version 51.0.0, current version 51.0.0)
/usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.11)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1252.0.0)
[
currently , if you upgrade brew, your python will become python3. to compile freecad, you need python2. right?
and if you use the newest xcode , it will use MacOSX10.13.sdk.
In my case , I think some of freecad/freecad dependencies from brew still use MacOSX10.12.sdk. That is why I copy and rename MacOSX10.13.sdk to MacOSX10.12.sdk
Last edited by microartisan on Tue Apr 03, 2018 10:43 am, edited 1 time in total.
Determining if the include file GL/gl.h exists failed with the following output:
Change Dir: /Users/apple/Documents/caad/caad.xyz/homebrew-freecad/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_e8299/fast"
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTC_e8299.dir/build.make CMakeFiles/cmTC_e8299.dir/build
Building C object CMakeFiles/cmTC_e8299.dir/CheckIncludeFile.c.o
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -o CMakeFiles/cmTC_e8299.dir/CheckIncludeFile.c.o -c /Users/apple/Documents/caad/caad.xyz/homebrew-freecad/CMakeFiles/CMakeTmp/CheckIncludeFile.c
/Users/apple/Documents/caad/caad.xyz/homebrew-freecad/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:10: fatal error: 'GL/gl.h' file not found
#include <GL/gl.h>
^~~~~~~~~
1 error generated.
make[1]: *** [CMakeFiles/cmTC_e8299.dir/CheckIncludeFile.c.o] Error 1
make: *** [cmTC_e8299/fast] Error 2