-
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
building freecad with --with-macos-app
#142
Comments
It is supposed to work, even if I never tested it up to now. Did you checked while being detached from head ? I can have a look to it |
no so much looking around, all i did was run above said command but the installation process is failing, i did notice there was a with-packaging-utils a while back that didn't work either. if you can, do you mind trying the flag |
I will for sure as soon my qt build is finished ;) (probably not before tomorrow, as I do have only my dual core macbookpro with me :( ) |
no worries, i'll keep investigating to see if i can figure out what's going on. i know qt can take a while to build from source. i believe it requires building chromium which can take like forever. |
yep it is currently building chromium ... And my bigsur setup is on a USB drive :( (at least USB 3, but still not the fastest stuff). I kept Catalina on the internal nvme was thinking at dropping it. |
you run big sur in a vm FWIW, that's what i ended up doing it runs rather slow, but i can start the vm headless on my box and that's how i was testing things out with big sur other day, far from perfect but it's better than nothing. and yeah it'll take ~ 20+ hours to build chromium & qt |
I worked, I just use it to compile my own copy last night. using --with-macos-app option. |
At least something which works ;) |
--with-macos-app is just adds this line And I confirmed --with-packaging-utils doesn't work. since it's using some npm package not exists. and also the command to install npm package is not correct, it should be npm install -g npm_package. |
I have this issue as well and it seems like some dependencies are trying to reach AppKit.Framework from MacOSX11.0.sdk while only MacOSX11.1.sdk is available on my machine. (I'm new to Mac's universe so I have no idea with this AppKit.framework nor the sdk mean). EDIT: Namely:
|
It will be fixed before new-year ;). I am hoping to have something during the week-end but it requires a lot of recompilation with XCode 12.3 |
a hacky work around would be to create a symlink from your macosx11.1.sdk -> macos11.0.sdk might you get a little further along in the process, not an elegant solution by any means but could work in a pinch. |
@ipatch Thanks. I can still install it without |
yes i believe that is what it is intended to do. it packages up the install from the homebrew cellar into a out of curiosity what happens when you launch i was getting issues related to that yesterday, but then i posted about it here yesterday i believe, and below is a picture of what i would see from selecting a workbench from the GUI |
with-macos-app only generate a Mac app bundle currently . You need to make a symbol link to /Applications folder to use FreeCAD.app |
For what it's worth, I had a similar issue while installing hidapi's python module with Creating a simlink from Note that @ipatch when installing FreeCAD with I'm using the MacBookAir (M1) in case that can help narrow down the issue. |
that's really interesting i compile freecad last night that's interesting that the symlink trick/hack resolves the issue. makes me think somewhere there are some hardcoded paths in cmake related files in freecad or a dependency of freecad, or i could totally be off base. i guess what's even more interesting is i'm using macos mojave 10.14, so not sure if the symlink would resolve my issue. either way i'll give it recompile sometime today and see what i can figure out. i think enabling the |
Just FYI, I just built FreeCad from brew on 2013 Macbook pro Big Sur. |
i'm still on mojave so installing custom deps such as qt take a significant amount of time ~ 20+ hours to build because the tap does not provide a bottle, i'm building pyside2 right now, and will reinstall freecad from a formula file i have with and without the option set. and post my results here. FWIW i've cloned the freecad src repo and can build freecad without relying a a formula and have installed freecad outside of the homebrew prefix to allow for multiple installs, and enabling the macos app flag without using the formula file also resulted in an error on my system, so i was thinking the error was upstream, ie. something wrong with a cmake file, but could be wrong due to the fact that you say it's working. |
@zenz I ran:
That leaves me with:
Then
Finally, after removing freecad and bundle cleanup, |
yeah unfortunately i'm still getting issues when enabling the below switch
this is the fork / branch i'm trying to build from, https://github.com/ipatch/FreeCAD/tree/feature-touchscreen-multi-select the above fork/branch builds and installs without any issues, but enabling the above cmake flag still produces errors. |
I'm still getting errors using brew install. the install runs, but startup
fails.
During initialization the error "UI file does not exist" occurred in
/usr/local/Cellar/freecad/0.19pre/Mod/Draft/InitGui.py
Please look into the log file for further information
During initialization the error "UI file does not exist" occurred in
/usr/local/Cellar/freecad/0.19pre/Mod/Arch/InitGui.py
Please look into the log file for further information
QWidget: Must construct a QApplication before a QWidget
Abort trap: 6
On Sat, Jan 9, 2021 at 3:19 PM Chris ***@***.***> wrote:
yeah unfortunately i'm running into issues when enabling the below switch
-DFREECAD_CREATE_MAC_APP=ON
-- Installing:
/usr/local/FreeCAD.app/Contents/share/Gui/Stylesheets/images_dark-light/up_arrow_lighter.svg
CMake Error at src/MacAppBundle/cmake_install.cmake:55 (file):
file INSTALL cannot find
"/opt/code/github/public/forks/freecad-git/freecad/src/MacAppBundle/import
… site": No such file or directory.
Call Stack (most recent call first):
src/cmake_install.cmake:51 (include)
cmake_install.cmake:68 (include)
make: *** [install] Error 1
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Can you tell me with which command you installed FreeCAD ? Which command do you use to launch freecad ? Might be good also to have your environment variables (env) |
I will have a look during the week ;) |
I just fixed that issue (sorry for the delay, got too many things to do at work). Please test latest PR and let me know before I close it ! |
awesome, give me a few. i'm going to have to build most if not all bottles from source unfortunately because i'm still running macos 10.14 mojave. |
any updates on this? i am running into the same issue on MacOS Monterey when building from source and homebrew. |
what error are you running into? |
@ipatch so, when trying to build from source, I got the same issue as #142 (comment): now, when I try I haven't been able to solve either of the issues. |
hey john 👋, it seems you've more than likely run into a common runtime issue when building and running freecad. if you're attempting to install freecad via the homebrew-freecad tap uses tap specific and versioned formula of both shiboken and pyside. homebrew-core provides a pyside@2 version of pyside, but you're gunna want to make sure you have the tap (homebrew-freecad) version of i'm not sure if you're on intel or apple ARM (M1) but it shouldn't make a big difference other than build times, and path to the there's a couple of ways you can probably resolve your runtime issues,
i hope all this helps you with your freecad installation. unfortunately at this time there isn't an easy way to make |
is the
--with-macos-app
flag / argument suppose to work when building freecad form head ?i've been running into
make install
issues when using the flag.last little bit of the error message, let me know if i need to post anything else.
The text was updated successfully, but these errors were encountered: