ok, so I tried what you suggested.
Code: Select all
nyholku$ brew deps FreeCAD/freecad/freecad | xargs brew uninstall --ignore-dependencies
Uninstalling /usr/local/Cellar/coin/3.1.3... (866 files, 9.1M)
Uninstalling /usr/local/Cellar/med-file/3.2.0... (57 files, 1.7M)
Uninstalling /usr/local/Cellar/nglib/5.3.1_2... (208 files, 6.0M)
nglib 5.3.1 is still installed.
Remove all versions with `brew uninstall --force nglib`.
Uninstalling /usr/local/Cellar/pivy/HEAD-8eab90908f2a... (48 files, 14.3M)
Uninstalling /usr/local/Cellar/boost/1.63.0... (12,491 files, 417.2M)
Uninstalling /usr/local/Cellar/boost-python/1.63.0... (458 files, 17.5M)
Uninstalling /usr/local/Cellar/pyside/1.2.2_1... (92 files, 23.2M)
Uninstalling /usr/local/Cellar/pyside-tools/0.2.15... (41 files, 388.1K)
Uninstalling /usr/local/Cellar/qt/4.8.7_3... (2,816 files, 113.3M)
Uninstalling /usr/local/Cellar/shiboken/1.2.2... (34 files, 3.0M)
Uninstalling /usr/local/Cellar/eigen/3.3.1... (486 files, 6.4M)
Uninstalling /usr/local/Cellar/fontconfig/2.12.1_2... (468 files, 3M)
Uninstalling /usr/local/Cellar/freeimage/3.17.0... (11 files, 30.2M)
Uninstalling /usr/local/Cellar/freetype/2.7.1... (62 files, 2.5M)
freetype 2.7 is still installed.
Remove all versions with `brew uninstall --force freetype`.
Uninstalling /usr/local/Cellar/gdbm/1.12... (18 files, 490.9K)
Uninstalling /usr/local/Cellar/gl2ps/1.3.9_2... (12 files, 228K)
Uninstalling /usr/local/Cellar/hdf5/1.8.18... (181 files, 10.6M)
hdf5 1.8.17 is still installed.
Remove all versions with `brew uninstall --force hdf5`.
Error: No such file or directory - /usr/local/Cellar/hdf5/1.8.18
Code: Select all
brew deps FreeCAD/freecad/freecad | xargs brew uninstall --ignore-dependencies
Error: No such keg: /usr/local/Cellar/coin
Code: Select all
brew install --only-dependencies FreeCAD/freaked/freecad
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> Updated Formulae
pyqt5 ✔ sip ✔
==> Tapping freecad/freaked
Cloning into '/usr/local/Homebrew/Library/Taps/freecad/homebrew-freaked'...
remote: Repository not found.
fatal: repository 'https://github.com/FreeCAD/homebrew-freaked/' not found
Error: Failure while executing: git clone https://github.com/FreeCAD/homebrew-freaked /usr/local/Homebrew/Library/Taps/freecad/homebrew-freaked --depth=1
The I did what originally worked for me:
Code: Select all
nyholkus-MacBook-Pro-5:build nyholku$ brew tap homebrew/science
nyholkus-MacBook-Pro-5:build nyholku$ brew tap freecad/freecad
nyholkus-MacBook-Pro-5:build nyholku$ brew install --only-dependencies freecad --with-freecad-bottles
Code: Select all
==> Installing freecad/freecad/freecad dependency: cartr/qt4/pyside
==> Downloading https://dl.bintray.com/cartr/bottle-qt4/pyside-1.2.2_1.yosemite.bottle.tar.gz
Already downloaded: /Users/nyholku/Library/Caches/Homebrew/pyside-1.2.2_1.yosemite.bottle.tar.gz
Error: SHA256 mismatch
Expected: 8c2463514cd2133b9237143ceb2d73e64f96ff162c5c302b28f894132ad88490
Actual: b87ab7f4961d669028237d7aefafb71863619f09f1c35ec2d4718283cfff561b
Archive: /Users/nyholku/Library/Caches/Homebrew/pyside-1.2.2_1.yosemite.bottle.tar.gz
To retry an incomplete download, remove the file above.
So I tried Cmake and it failed like this:
Code: Select all
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
NGLIB_INCLUDE_DIR
used as include directory in directory /Users/nyholku/FreeCAD/FreeCAD-git/src/3rdParty/salomesmesh
used as include directory in directory /Users/nyholku/FreeCAD/FreeCAD-git/src/3rdParty/salomesmesh
used as include directory in directory /Users/nyholku/FreeCAD/FreeCAD-git/src/3rdParty/salomesmesh
At this point I concluded that the uninstallation of pre-requisites had removed something that the bottled installation does not contain.
So went again manually through installing the pre-requisites that are listed in this page:
http://www.freecadweb.org/wiki/?title=CompileOnMac
which of course needed some TLC as some of the things are in multiple taps.
But after that the CMake worked and compilation with make worked.
The resulting FreeCAD runs but complains about the pyside again:
Code: Select all
Last login: Sun Jan 15 11:25:41 on ttys003
nyholkus-MacBook-Pro-5:~ nyholku$ /Users/nyholku/FreeCAD/build/bin/FreeCAD ; exit;
FreeCAD 0.17, Libs: 0.17R9422 (Git)
© Juergen Riegel, Werner Mayer, Yorik van Havre 2001-2016
##### #### ### ####
# # # # # #
# ## #### #### # # # # #
#### # # # # # # # ##### # #
# # #### #### # # # # #
# # # # # # # # # ## ## ##
# # #### #### ### # # #### ## ## ##
Hello from ~/Library/PreferencesFreeCAD/Mod/cloud9/Init.py
During initialization the error dlopen(/Applications/FreeCAD.app/Contents/lib/Part.so, 2): Symbol not found: __ZN5boost16re_detail_10600012perl_matcherIPKcNSt3__19allocatorINS_9sub_matchIS3_EEEENS_12regex_traitsIcNS_16cpp_regex_traitsIcEEEEE14construct_initERKNS_11basic_regexIcSC_EENS_15regex_constants12_match_flagsE
Referenced from: /Applications/FreeCAD.app/Contents/lib//libFreeCADBase.dylib
Expected in: /usr/local/opt/boost/lib/libboost_regex-mt.dylib
in /Applications/FreeCAD.app/Contents/lib//libFreeCADBase.dylib occurred in /Users/nyholku/Library/Preferences/FreeCAD/Mod/cloud9/Init.py
During initialization the error No module named PySide occurred in /Users/nyholku/FreeCAD/build/Mod/Ship/InitGui.py
During initialization the error No module named PySide occurred in /Users/nyholku/FreeCAD/build/Mod/Plot/InitGui.py
Hello from ~/Library/PreferencesFreeCAD/Mod/cloud9/InitGUI.py TEST1
During initialization the error No module named PySide occurred in /Users/nyholku/FreeCAD/build/Mod/Draft/InitGui.py
During initialization the error No module named PySide occurred in /Users/nyholku/FreeCAD/build/Mod/Arch/InitGui.py
No module named PySide
Coin warning in cc_glglue_instance(): Error when setting up the GL context. This can happen if there is no current context, or if the context has been set up incorrectly.
Failed to import BOPTools package:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/Users/nyholku/FreeCAD/build/Mod/Part/BOPTools/__init__.py", line 47, in importAll
from . import JoinFeatures
File "/Users/nyholku/FreeCAD/build/Mod/Part/BOPTools/JoinFeatures.py", line 35, in <module>
from PySide import QtCore, QtGui
<type 'exceptions.ImportError'>: No module named PySide
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/Users/nyholku/FreeCAD/build/Mod/Part/AttachmentEditor/Commands.py", line 27, in <module>
from PySide import QtCore
<type 'exceptions.ImportError'>: No module named PySide
Can't find Origin for "Body"
Can't find Origin for "Body"
Can't find Origin for "Body001"
Can't find Origin for "Body001"
Reading failed from embedded file: PartShape.bin (0 bytes, 2 bytes compressed)
2017-01-15 21:58:57.321 FreeCAD[72209:387896] modalSession has been exited prematurely - check for a reentrant call to endModalSession:
But as everything seems to work, do I really need pyside?
I guess the main takeaway from this whole thread is that the easy prerequisite installation with the bottles is not complete (as I suspected) and that manually installing all the dependencies listed on that page fixes things.
And that with Xcode 7.2 it is necessary to specify 10.11 deployment target. More or less what I said in my summary.
cheers Kusti
PS
Boys is the C build system brittle when it is based on system installed shared libraries.
Would it not be much better to have the project have its own libraries and system installed?
Is there no Maven equivalent system for C that would pull the correct version of required libraries automatically from some common repo?
With the current system so many people are fighting the tool chain and probably there are subtle errors when the version of the system installed libraries that are used when people who build from source are (likely) different from those that the FreeCAD is tested against?!
Not to mention that installing libraries needed by some other project is likely break an other project build.
Just saying...