-
Notifications
You must be signed in to change notification settings - Fork 34
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
freecad mac app bundle ie. FreeCAD.app
runtime issue, cannot find the runtime dependency pyside2
#278
Comments
error messages after launching the
|
Hi @ipatch, |
i haven't done any work with the freecad tap or specifically this issue in a week or so. the holidays caught up with me so my time has been limited. if you're trying to install freecad using the tap provided formula ie. install all the freecad dependencies first
manually link [email protected] and [email protected]
then build freecad from source using the tap provided formula
|
I am currently looking at it. My build is broken on Mac, and still try to figuring out from where it comes. |
This PR #5316 in FreeCAD shall be helping a lot |
|
I'm able to build app bundle by using this workaround. However, when I tried to run it, it shows the following error.
Is there any solution to this issue? |
do you mind opening a new issue, just copy and paste what you go here? and can you post your brew setup, ie. the output of your are you using |
Thanks for the prompt response! I compiled it on my M1 laptop. After the successful build, here is my steps:
My
|
little update on this issue. i think the simple solution to getting the cmake build process to properly locate the pyside2 installation is to prepend the pyside installation bin to the path while running cmake. i tested a couple of cases where i had the pyside bin directory prepended (top entry) in my
when i add pyside2 to my path with the following,
and...
i see the below in the cmake report output...
not sure if this will resolve all the runtime related issues with pyside but seems like a step in the right direction. |
and i think this will help us with keg only deps in the freecad formula ie. pyside2 being keg only because of it's upstream pyside6 counterpart, so if this works then hopefully |
should help in getting closer to having |
another little update on this. a quick way to see if shiboken and pyside are setup properly for a cmake build is to open a pythone repl
import shiboken2
import PySide2
from PySide2 import QtCore i was running into some edge cases yesterday where i was able to import PySide2 but was not able to load any of the accompanying qt modules. i made certain that my shiboken2 and pyside2 installation are not linked. i got a build going right now (non mac bundle) that seems to have picked up on my shiboken and pyside installations on a m1 mac. however i did have to add a and if i understand everything correctly, running the so not entirely sure i can add the a little q/a about the |
feeling confident this issue should be resolved with the below commit if anybody experiences any issues feel to search the open issues and leave comment if something comes up or if your issue is completely separate, please open a new issue. i believe adding the below lines to the freecad.rb formula resolved this issue at least in all my local testing. homebrew-freecad/Formula/freecad.rb Lines 139 to 141 in addab68
|
did a the quick fix is to manually create one quick test is to run the below cmd.
should open the the python3 REPL that is installed via homebrew and which freecad relies upon, and then attempt to import both shiboken2 and pyside2 with the below commands
got my bottle installation of freecad v0.20.1 going. obviously this far from perfect, and more work will be required to get all this ironed out for future bottled releases. |
presently running
brew install freecad
should either install freecad from one of the provided bottles for catalina or big sur. if running a different OS ie. mojave or monterey then freecad will have to be build from source locally.so depending how the dependencies are setup ie.
[email protected]
freecad will fail to load the pyside2 runtime dep when launching the FreeCAD gui when double clicking the app bundle. ie.FreeCAD.app
.presently, either
pyside@2
or the tap provided[email protected]
need to be manually linked before runningand the runtime issue should be resolved, but haven't fully tested.
the CI, cmake scripts or
freecad.rb
formula file need to be updated to support (finding) the install of pyside in order to copy the necessary dependencies into theFreeCAD.app
bundle.as mentioned in a prior comment ie.
#237 (comment)
it may be possible to tweak the freecad gui launch script to specify the path to the pyside2 installation. once again, i haven't fully tested this locally on my machine or with the CI/CD (github actions yet)
The text was updated successfully, but these errors were encountered: