FreeCAD 0.19: macOS Big Sur

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Anno Me Nuehm
Posts: 17
Joined: Tue Oct 20, 2020 8:50 am

Re: FreeCAD 0.19: macOS Big Sur

Post by Anno Me Nuehm »

dxp.dev wrote: Thu Mar 18, 2021 8:29 pm Sorry I have no more idea
No worries there, thanks never-the-less!

What I figured in the meantime, fc-m1 is simply lacking the start workbench; I compared the directories of fc-x86 with fc-m1.

Present in fc-x86:

Code: Select all

./include/boost/metaparse/v1/start.hpp
./include/boost/metaparse/start.hpp
./include/boost/log/keywords/start_thread.hpp
./include/boost/preprocessor/iteration/detail/start.hpp
./include/boost/process/start_dir.hpp
./include/boost/process/detail/posix/start_dir.hpp
./include/boost/process/detail/windows/start_dir.hpp
./include/server/postmaster/startup.h
./lib/Start.so
./lib/StartGui.so
./Mod/Start
./Mod/Start/StartPage
./Mod/Start/StartPage/__pycache__/StartPage.cpython-38.pyc
./Mod/Start/StartPage/StartPage.py
./share/Mod/Start
./share/Mod/Start/Resources/icons/StartWorkbench.svg
./share/Mod/Start/StartPage
./share/Mod/Start/StartPage/StartPage.css
./share/Mod/Start/StartPage/StartPage.js
./share/Mod/Start/StartPage/StartPage.html
All of these cannot be found anywhere inside fc-m1.

When copying the

Code: Select all

./Mod/Start
and

Code: Select all

./share/Mod/Start
to fc-m1 at least "Start" is showing up in the workbench menu, but when selecting "Start" an error message is popping up reading

Code: Select all

13:05:26  No module named 'StartGui'
13:05:26  Traceback (most recent call last):
  File "<string>", line 43, in Initialize
  File "/Applications/Programmes/multimedia/FreeCAD (M1).app/Contents/lib/python3.9/site-packages/shiboken2/files.dir/shibokensupport/__feature__.py", line 142, in _import
    return original_import(name, *args, **kwargs)
Copying the ./lib/Start*.so to fc-m1 results yet in another error, namely of an incorrect architecture (x64 vs mach-o).
chrisb
Veteran
Posts: 53919
Joined: Tue Mar 17, 2015 9:14 am

Re: FreeCAD 0.19: macOS Big Sur

Post by chrisb »

I run an intel based BigSur. Start workbench is there, but doesn't work (empty white screen).
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
JRMN
Posts: 8
Joined: Sat Oct 03, 2020 9:39 pm

Re: FreeCAD 0.19: macOS Big Sur

Post by JRMN »

sliptonic wrote: Tue Mar 16, 2021 4:20 am I think there's still something screwed up in your configuration. There were several changes made in how directories were preserved in parameters. It's possible your configuration got messed up during the change. Take a look at this post and try deleting the relevant keys. Then restart FreeCAD.

https://forum.freecadweb.org/viewtopic.php?f=15&t=56362

Thanks . I ended up deleting the FreeCAD user.cfg and system.cfg files, which reset FreeCAD to its default settings. I switched to the Path workspace and clicked on Toggle the Tool bit Dock. It allowed me to select a new Toolbit Working Directory. This is where I went wrong the first time. I don't recall seeing those the first time. I clicked Yes for the next few popup dialog boxes.

Everything seems to be working correctly now!
User avatar
looo
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

Re: FreeCAD 0.19: macOS Big Sur

Post by looo »

chrisb wrote: Fri Mar 19, 2021 2:05 pm I run an intel based BigSur. Start workbench is there, but doesn't work (empty white screen).
The empty startworkbench is related to setting
export QT_MAC_WANTS_LAYER=1


Without this line freecad was reported to crash on big sur.
chrisb
Veteran
Posts: 53919
Joined: Tue Mar 17, 2015 9:14 am

Re: FreeCAD 0.19: macOS Big Sur

Post by chrisb »

looo wrote: Sun Mar 21, 2021 4:01 pm The empty startworkbench is related to setting
export QT_MAC_WANTS_LAYER=1


Without this line freecad was reported to crash on big sur.
Thanks for the explanation. I prefer to have FreeCAD working without Start workbench over having a Start workbench that would work, if FreeCAD wasn't crashing :D .
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
chrisb
Veteran
Posts: 53919
Joined: Tue Mar 17, 2015 9:14 am

Re: FreeCAD 0.19: macOS Big Sur OCL library missing?

Post by chrisb »

In Path workbench 3D surface is no longer available.
OS: macOS 10.16
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24276 (Git)
Build type: Release
Branch: (HEAD detached at 0.19.1)
Hash: a88db11e0a908f6e38f92bfc5187b13ebe470438
Python version: 3.8.8
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.4.0
Locale: C/Default (C)


I have enabled experimental features. I don't know when exactly it vanished, it was available here:

OS: macOS 10.16
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.23964 (Git)
Build type: Release
Branch: master
Hash: db9525e7d78c956df96dd6db2c52f20a50a2aa5f
Python version: 3.8.6
Qt version: 5.12.5
Coin version: 4.0.0
OCC version: 7.4.0
Locale: C/Default (C)

but no longer here:
OS: macOS 10.16
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24212 (Git)
Build type: Release
Branch: master
Hash: 3d227cf7179c00e57f2733f947b4b1b0368d219a
Python version: 3.8.8
Qt version: 5.12.5
Coin version: 4.0.0
OCC version: 7.4.0
Locale: C/Default (C)

looo wrote: pinged by pinger macro
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
looo
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

Re: FreeCAD 0.19: macOS Big Sur OCL library missing?

Post by looo »

chrisb wrote: Tue Mar 23, 2021 12:31 pm In Path workbench 3D surface is no longer available.
OS: macOS 10.16
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24276 (Git)
Build type: Release
Branch: (HEAD detached at 0.19.1)
Hash: a88db11e0a908f6e38f92bfc5187b13ebe470438
Python version: 3.8.8
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.4.0
Locale: C/Default (C)


I have enabled experimental features. I don't know when exactly it vanished, it was available here:

OS: macOS 10.16
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.23964 (Git)
Build type: Release
Branch: master
Hash: db9525e7d78c956df96dd6db2c52f20a50a2aa5f
Python version: 3.8.6
Qt version: 5.12.5
Coin version: 4.0.0
OCC version: 7.4.0
Locale: C/Default (C)

but no longer here:
OS: macOS 10.16
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24212 (Git)
Build type: Release
Branch: master
Hash: 3d227cf7179c00e57f2733f947b4b1b0368d219a
Python version: 3.8.8
Qt version: 5.12.5
Coin version: 4.0.0
OCC version: 7.4.0
Locale: C/Default (C)
looo wrote: pinged by pinger macro
importing ocl works for me on a M1 mac.

Code: Select all

import ocl
So what is the needed library here?
chrisb
Veteran
Posts: 53919
Joined: Tue Mar 17, 2015 9:14 am

Re: FreeCAD 0.19: macOS Big Sur OCL library missing?

Post by chrisb »

looo wrote: Wed Mar 24, 2021 12:17 am So what is the needed library here?
Works here too, so it is rather a path problem. I move the topic.
sliptonic wrote: pinged by pinger macro
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
sliptonic
Veteran
Posts: 3457
Joined: Tue Oct 25, 2011 10:46 pm
Location: Columbia, Missouri
Contact:

Re: FreeCAD 0.19: macOS Big Sur

Post by sliptonic »

There is a new setting in preferences specifically for ocl based ops. Is that enabled too?
User avatar
looo
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

Re: FreeCAD 0.19: macOS Big Sur

Post by looo »

Btw. If someone knows how to distinguish different osx version with bash we can add some conditions for the QT_MAC_WANTS_LAYER env variable.

I tried with this but it didn't worked for a bigsur m1 macbook.
https://github.com/FreeCAD/FreeCAD-AppI ... caff562e7a
Post Reply