New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Documentation on building dev version #373
Comments
With the version installed lastnight, during startup (with /usr/local/Cellar/freecad@0.20.1/HEAD-caa953a/MacOS/FreeCAD) During initialization the error "No module named 'PySide2'" occurred in /usr/local/Cellar/freecad@0.20.1/HEAD-caa953a/Mod/Draft/InitGui.py
Please look into the log file for further information
During initialization the error "No module named 'PySide2'" occurred in /usr/local/Cellar/freecad@0.20.1/HEAD-caa953a/Mod/Arch/InitGui.py
Please look into the log file for further information
During initialization the error "No module named 'PySide2'" occurred in /usr/local/Cellar/freecad@0.20.1/HEAD-caa953a/Mod/AddonManager/InitGui.py
Please look into the log file for further information
During initialization the error "No module named 'PySide2'" occurred in /usr/local/Cellar/freecad@0.20.1/HEAD-caa953a/Mod/Tux/InitGui.py
Please look into the log file for further information but FreeCAD does start. Trying to compile I see:
brew info for these shows me:
and
Let's add the exports in and try that build again.. See if that removes the shiboken2 errors. -- Shiboken2Config: Using default python: .cpython-310-darwin
-- Found PythonInterp: /usr/local/Frameworks/Python.framework/Versions/3.10/bin/python3.10 (found suitable version "3.10.8", minimum required is "3")
-- Found PythonLibs: /usr/local/opt/python@3.10/Frameworks/Python.framework/Versions/3.10/lib/libpython3.10.dylib (Required is at least version "3")
-- SHIBOKEN_PYTHON_INCLUDE_DIRS computed to value: '/usr/local/opt/python@3.10/Frameworks/Python.framework/Versions/3.10/include/python3.10
'
-- SHIBOKEN_PYTHON_LIBRARIES computed to value: '-undefined dynamic_lookup'
-- libshiboken built for Release
-- PYTHON_CONFIG_SUFFIX: .cpython-310-darwin
-- libshiboken built for Release In my attempts to build I added the following:
And into the cmake command:
Going to keep plugging at this - but not got it figured out yet. |
i see as you've found out that doing the and as you've seen, freecad has runtime deps of shiboken and pyside as i annotated in the freecad caveats section of the freecad formula file. and unfortunately the way brew is setup to handle versioned formula doesn't lend itself well for working with versioned deps 🤬. the quickest way to get cmake to find the shiboken2 and pyside2 deps is to run the below commands
then use something along the lines of the below cmake invocation to setup your freecad source.
obviously that cmake invocation will have to be adapted for your dev environment, and the local env vars defined in that invocation are specific for my build env. i tend to lean on manually specifying the prefix paths for the required deps, but if the dep is linked with a take a look at the freecad formula file itself, i've left quite bit of little notes in there. and certain deps such as vtk and opencascade are versioned. ie. you can use opencascade at verison 7.5.3 or 7.6.x or vtk 8.2 or the newer vtk 9.x that said, if you have multiple versions of a library installed make sure cmake finds the version you've specified or you can run into some issues. |
You should drop the BUILD_QT5 flag: it doesn't exist anymore. You can either omit it completely, or use FREECAD_QT_VERSION=5 instead (though that is the default, so it is not needed). |
Good news - I got the configure step completed.
And used:
From a git cone of master (of branch thereof), will I need to apply the patches from this repo? Is there a recommended/suggested way you do this mid build (I don't want to create diffs that I might accidentally check in)? |
hey you should be able to just run i'll close this issue in a day or two if i don't here back or if i hear that things worked out. cheers |
please leave a comment if you are still having an issue, and will reopen. thanks. |
I am trying to use https://wiki.freecadweb.org/Compile_on_MacOS and this to build.
It looks like that nglib and vtk must be installed with Brew, and the PREFIX_PATH isn't quite right.
Do you have any docs on getting this to build for FreeCAD development?
The text was updated successfully, but these errors were encountered: