yeah i built a non app bundle yesterday on an m1. i'm trying to figure out how i can get
```
brew install freecad
```
to install everything and build an app bundle without having to manually link shiboken and pyside
i'm getting closer, but still haven't quite figured everything out.
as for your Py_complex issue i believe that may be to the cmake setup process finding a different version of pyside. homebrew-core provides a `pyside@2` it seems recently the pyside@2 formula file provided by homebrew-core switched to the limitied api as one of the configure options for pyside. and when i built and installed the homebrew-core version the cmake scripts found libraries related to abi3 whereas the pyside version provided by homebrew-freecad tap will use a cpython
also make sure to unlink python@3.9 and adjust your
Code: Select all
PATH
my command was looking like the below as of yesterday (july 27 2022)
Code: Select all
cmake \
-DHOMEBREW_PREFIX=$bp \
-DPYTHON_EXECUTABLE=$bp/opt/python@3.10/bin/python3 \
-DPYTHON_INCLUDE_DIR=$bp/opt/python@3.10/Frameworks/Python.framework/Headers \
-DCMAKE_PREFIX_PATH="$pthmed;$pthboostpy3;$bp/Cellar/pyside2@5.15.5/5.15.5/lib/cmake/PySide2-5.15.5" \
-DCMAKE_BUILD_TYPE="Release" \
-DFREECAD_CREATE_MAC_APP=0 \
-DCMAKE_INSTALL_PREFIX=$code/freecad-git/installs/build.release.0.20.no.bundledir \
-DCMAKE_OSX_ARCHITECTURES="arm64" \
--debug-find-pkg=PySide2 \
--debug-find-var=PYSIDE_INCLUDE_DIR \
../../freecad-src