You should not need XQuartz - FreeCAD uses Qt that abstracts a common UI framework to the platform-specific implementation. On Linux, it uses native X11 but on MacOS it uses the Cocoa frameworks, wherever possible (i.e. not X11)easyw-fc wrote: I finally managed to build FC on Sierra.
My Sierra is a clean installation and to build FC I followed the steps here, cleaning up all my previous attempts, brew included
I just had installed XQuartz: https://www.xquartz.org/
and Xcode
and Homebrew https://brew.sh/
--with-freecad-bottles is deprecated and no longer needed. It will not affect your install so this is just an FYI.easyw-fc wrote: here the steps I did:Code: Select all
# Remove Homebrew cd /usr sudo rm -rf local # Reinstall Homebrew /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" # Brew FreeCAD dependencies brew tap homebrew/science brew tap freecad/freecad brew install --only-dependencies freecad --with-freecad-bottles brew install --only-dependencies freecad --with-freecad-bottles #run a second time to ensure all dependencies are installed
The freecad formula should have installed all the dependencies you need for a successful configure. If you still have the logs from the brew install --only-dependencies freecad/freecad/freecad step, please provide them because I would like to see why it failed to install dependencies such as eigen.easyw-fc wrote:after a incomplete configure attempt I did alsoCode: Select all
# get FreeCAD src git clone https://github.com/FreeCAD.git cd FreeCAD mkdir build && cd build
Code: Select all
# Brew FreeCAD dependencies brew install eigen brew install libspnav brew install doxygen brew install graphviz
I haven't had to symlink openGL this in the past. Are you sure this step was needed?easyw-fc wrote: # made a symlink for OpenGL
ln -s /opt/X11/include/GL /usr/local/include/GL[/code]
Glad you got it working Maurice and were rewarded with a real beereasyw-fc wrote: and finally I didthen I went to drink a real bear waiting for the gem to be released!Code: Select all
cmake -DBUILD_FEM_NETGEN="1" -DFREECAD_CREATE_MAC_APP="1" -DCMAKE_PREFIX_PATH=/usr/local/Cellar/qt@5.6/5.6.2/lib/cmake -CMAKE_BUILD_TYPE="Release" -DBUILD_QT5="1" ../FreeCAD-git make
and finally I got my FC branch built! yeah!