FreeCAD 0.20.26155 (Git) DMG app bundle
Update
This release has an issue with the addon manager as described in this forum post, and further discussed/reported in this forum thread
Fix ✅
to get the addon manager working again is change the authentication for the addon manager from SERVER
to CLIENT
keep in mind in believe this disables SSL while using the addon manager so be aware. 🚨
This is an Apple .app
bundle I created yesterday using as many of the upstream hombrew-core formula as I could, while still attempting to build in as much of the app as possible ie. this build should contain a working FEM module based off netgen/ngsolve. I also included the SPNAV modules for those who have those fancy mice.
OS: macOS Mojave (10.14)
Word size of FreeCAD: 64-bit
Version: 0.20.26155 (Git)
Build type: Release
Branch: ipatch.build.02
Hash: 0926a4148bcff11249fd4f56bc30256102ffe105
Python version: 3.9.7
Qt version: 5.15.2
Coin version: 4.0.0
OCC version: 7.5.3
Locale: English/United States (en_US)
the cmake command I used to setup the build folder,
cmake \
-DHOMEBREW_PREFIX="$bp" \
-DUSE_PYTHON3=1 \
-DPYTHON_EXECUTABLE="$bp"/bin/python3 \
-DPYTHON_INCLUDE_DIR="$bp/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9" \
-DBUILD_QT5=1 \
-DBUILD_SMESH=1 \
-DBUILD_FEM_NETGEN=1 \
-DFREECAD_CREATE_MAC_APP=1 \
-DCMAKE_PREFIX_PATH="$bp/Cellar/qt@5/5.15.2/lib/cmake;$bp/Cellar/coin3d/4.0.0_1/lib/cmake;$bp/Cellar/pyside@2/5.15.2/lib/cmake;$bp/Cellar/llvm@11/11.1.0_3/lib/cmake;$bp/Cellar/[email protected]/6.2.2104/Contents/Resources/CMake;" \
--graphviz=/opt/code/ltmp/freecad-deps-with-netgen/freecad.graphviz.macapp.dep \
-DCMAKE_INSTALL_PREFIX=/opt/beta/freecad.aplbundl.amd64 ../freecad-src/
- the
$bp
environment variable is set to my$(brew --prefix)
as I'm working with multiple homebrew installations on this build box. - several of the QT formula/packages install
rcc
anduic
i believe,qt@5
,shiboken
, andpyside@2
all provide these binaries, but i got the best results using the binaries provided bypyside@2
when runningbrew link pyside@2
and making sure the binaries provided bypyside@2
overwrote existing binaries in the$(brew -prefix)/bin
.
a couple of notes about building an Apple .app
bundle. i still haven't attempted to build the app bundle using the provided freecad.rb
formula contained within this tap, but hopefully i can start refining that formula sooner rather than later.
it's also in my interest to successfully build the Apple .app
bundle on Big Sur box, hopefully provide M1 and amd64 builds of the .app
bundle and even attempt to have all setup using github provided actions using CI/CD in the distant future.
this bundle required so modifications to the freecad source code unfortunately due to the fact that i have homebrew setup for this build $USER
in /Users/microbrewer/homebrew
. i'll attempt to send PR to the upsteram freecad repo about updating the build instructions, but for now, a common issue i ran into while assembling an apple .app
bundle
-- ERROR: Unable to find LC_DYLD_LOAD entry: @loader_path/libicudata.69.dylib
the quickest fix i found to allow the python2.7
script, is to modify the CMakeLists.txt and define the path to my icu install dir. there are some hardcoded paths in the src/MacAppBundle/CMakeLists.txt
that can use some updating to be more robust.
if i failed to find any issues with this release, please let me know so they can be resolved in future releases.