Skip to content
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

[email protected] mac app bundle, ie. FreeCAD.app runtime issue with part design creating a body #585

Open
ipatch opened this issue Oct 22, 2024 · 2 comments
Assignees
Labels
bug FreeCAD.app mac app bundling

Comments

@ipatch
Copy link
Collaborator

ipatch commented Oct 22, 2024

update i no longer get his issue using brew install freecad but do get this issue when creating a mac app bundle, ie. a FreeCAD.app, will require further investigation.

using cmake to build freecad from the git tag of 1.0rc2 from a cli using homebrew deps, i'm getting the below runtime error when attempting to create body using the part design workbench

╰─λ ~/apps/freecads/r2.2/MacOS/FreeCAD                                                                                  0 (2.906s)
FreeCAD 1.0.0, Libs: 1.0.0RC2R38806 (Git)
(C) 2001-2024 FreeCAD contributors
FreeCAD is free and open-source software licensed under the terms of LGPL2+ license.

(qt.qpa.fonts) Populating font family aliases took 81 ms. Replace uses of missing font family "Courier" with one that exists to avoid this cost.
2024-10-22 14:53:26.523 FreeCAD[5008:355500] +[IMKClient subclass]: chose IMKClient_Legacy
2024-10-22 14:56:29.406 FreeCAD[5008:355500] AdjustToIronwoodHotKeyChange - CG (hotmod:1) HotKey : hotKey enabled = 1, keyChar=0xfffbffff, virtKey=0x40000, flags=0x0
Traceback (most recent call last):
  File "<string>", line 1, in <module>
<class 'RuntimeError'>: {'sclassname': 'N4Base12RuntimeErrorE', 'sErrMsg': 'GeoFeatureGroupExtension can only be applied to GeoFeatures', 'sfile': '', 'iline': 0, 'sfunction': '', 'swhat': 'GeoFeatureGroupExtension can only be applied to GeoFeatures', 'btranslatable': False, 'breported': False}

oddly i do not get this error when building freecad using brew install 🧐


image

@ipatch ipatch self-assigned this Oct 22, 2024
@ipatch ipatch added the bug label Oct 22, 2024
@ipatch
Copy link
Collaborator Author

ipatch commented Oct 22, 2024

similar issue but without a proper fix.

https://forum.freecad.org/viewtopic.php?t=68037

@ipatch
Copy link
Collaborator Author

ipatch commented Dec 24, 2024

little update on this issue. a step to recreate this issue is,

edit the [email protected]_py312.rb formula and add the below cmake arg with the macos specific args to have brew install process build a app bundle of freecad. ie. a FreeCAD.app

-DFREECAD_CREATE_MAC_APP=1
brew install freecad/freecad/freecad --formula -v -s

the app bundle is created, and basic functionality works when not relocating the app bundle outside of the install path. for reasons i don't quite understand yet, i don't think all the libraries are being copied into the bundle.

so move the bundle to a new location on disk, and the above error will occur.

@ipatch ipatch changed the title [email protected]: runtime issue with part design creating a body [email protected] mac app bundle, ie. FreeCAD.app runtime issue with part design creating a body Dec 30, 2024
@ipatch ipatch added the FreeCAD.app mac app bundling label Dec 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug FreeCAD.app mac app bundling
Projects
None yet
Development

No branches or pull requests

1 participant