FreeCAD 0.19: macOS Big Sur: stuck on launch

Having trouble installing or compiling FreeCAD? Get help here.
qwerty_f
Posts: 165
Joined: Thu Sep 24, 2020 3:22 pm

Re: FreeCAD 0.19: macOS Big Sur: stuck on launch

Postby qwerty_f » Mon Jan 04, 2021 12:32 am

That's the Python version hell. I had that more than once in the past (for other reasons). That's why I was afraid of starting with conda. Somehow (don't ask me how!) I was lucky. My OS is a fresh install on a new machine. I havent' added too much stuff and ould easily remove that (will see what happens when I actually try to install it once again). So I made a real homebrew cleanup and let conda install where it recommended (it's my home directory and it really itches!). So what can you do? Clean up homebrew first. Get rid of any other Python. The follow that drvax-way. That got me a running FC. Of course, if I were to redo that stuff it likely would end up with a Python version mismatch (oh man, that would be such a cool language without that version pain).
User avatar
vejmarie
Posts: 706
Joined: Mon Jan 04, 2016 4:52 pm
Location: Somewhere between France, USA and Taiwan
Contact:

Re: FreeCAD 0.19: macOS Big Sur: stuck on launch

Postby vejmarie » Mon Jan 04, 2021 2:42 am

For your reference, I have made a "massive" update of our homebrew package. It is now including these packages and dependencies. I recompiled python and it is now package with its own version without breaking the O/S installed one or other version you might be requiring for other apps. Same thing regarding opencascade and many of our dependencies.

It is bottled for bigsur and Catalina.

freecad.rb
vtk@8.2.0.rb
tbb@2020_u3.rb
swig@4.0.2.rb
sip@4.19.24.rb
shiboken2.rb
qt5152.rb
python3.9.rb
pyside2.rb
pyside2-tools.rb
pyqt@5.15.2.rb
pivy.rb
opencascade@7.5.0.rb
opencamlib.rb
numpy@1.19.4.rb
nglib.rb
med-file.rb
matplotlib.rb
icu4c@67.1.rb
cython@0.29.21.rb
coin@4.0.0.rb
boost@1.75.0.rb
boost-python3@1.75.0.rb
MRx
Posts: 44
Joined: Wed Jul 08, 2020 5:59 am
Location: Tainan / Taiwan

Re: FreeCAD 0.19: macOS Big Sur: stuck on launch

Postby MRx » Mon Jan 04, 2021 2:53 am

FC 0.19 is also stuck on my system (Catalina) if I compile it myself. I wonder did you figure out what makes it stuck? I guess something Qt related.

frame #38: 0x000000010214e9ca libQt5Widgets.5.dylib`QWidgetPrivate::setVisible(bool) + 646
frame #39: 0x00000001005c3499 libFreeCADGui.dylib`Gui::MainWindow::startSplasher(this=0x00007ffeefbff020)
at MainWindow.cpp:1494:30 [opt]

(that's just where it hangs but for sure it's not the problem ...)

----


-- Build type: Debug
-- Compiler: /Users/markus/opt/miniconda3/envs/freecad_dev/bin/x86_64-apple-darwin13.4.0-clang++ (10.0.1)
-- Flags: -Wall -Wextra -Wpedantic -Wno-write-strings -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -stdlib=libc++ -fvisibility-inlines-hidden -std=c++14 -fmessage-length=0 -isystem /Users/markus/opt/miniconda3/envs/freecad_dev/include -Wno-undefined-var-template
-- Standard: Requires C++11
-- Python: [/Users/markus/opt/miniconda3/envs/freecad_dev/bin/python] [.cpython-38-darwin]
-- PCL: 1.11.1
-- pybind11: 2.6.1
-- Boost: 107200
-- XercesC: [/Users/markus/opt/miniconda3/envs/freecad_dev/lib/libxerces-c.dylib] [/Users/markus/opt/miniconda3/envs/freecad_dev/include]
-- ZLIB: 1.2.11
-- PyCXX: [/Users/markus/devel/freecad/FreeCAD/src]
-- OCC: 7.4.0 [TKFillet;TKMesh;TKernel;TKG2d;TKG3d;TKMath;TKIGES;TKSTL;TKShHealing;TKXSBase;TKBool;TKBO;TKBRep;TKTopAlgo;TKGeomAlgo;TKGeomBase;TKOffset;TKPrim;TKSTEPBase;TKSTEPAttr;TKSTEP209;TKSTEP;TKHLR;TKFeat] [/Users/markus/opt/miniconda3/envs/freecad_dev/lib] [/Users/markus/opt/miniconda3/envs/freecad_dev/include/opencascade]
-- SMESH: 8.3.0.3
-- NETGEN: not enabled
-- SWIG: 4.0.2
-- Eigen3 3.3.9
-- Qt5Core: 5.12.9
-- Qt5Network: 5.12.9
-- Qt5Xml: 5.12.9
-- Qt5XmlPatterns: 5.12.9
-- Qt5Widgets: 5.12.9
-- Qt5PrintSupport: 5.12.9
-- Qt5OpenGL: 5.12.9
-- Qt5Svg: 5.12.9
-- Qt5UiTools: 5.12.9
-- Qt5Concurrent: 5.12.9
-- Qt5WebEngineWidgets: 5.12.9
-- Shiboken2: 5.13.2 [/Users/markus/opt/miniconda3/envs/freecad_dev/lib/cmake/Shiboken2-5.13.2] [/Users/markus/opt/miniconda3/envs/freecad_dev/include/shiboken2;/Users/markus/opt/miniconda3/envs/freecad_dev/include/python3.8]
-- PySide2: 5.13.2 [/Users/markus/opt/miniconda3/envs/freecad_dev/include/PySide2]
-- PySide2Tools: [/Users/markus/opt/miniconda3/envs/freecad_dev/bin/pyside2-uic] [/Users/markus/opt/miniconda3/envs/freecad_dev/bin/pyside2-rcc]
-- Freetype: 2.10.4
-- OpenGLU: /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/OpenGL.framework [/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/OpenGL.framework][/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/OpenGL.framework]
-- Coin3D: [/Users/markus/opt/miniconda3/envs/freecad_dev/lib/libCoin.dylib] [/Users/markus/opt/miniconda3/envs/freecad_dev/include]
-- SPNAV: [/Users/markus/opt/miniconda3/envs/freecad_dev/lib/libspnav.dylib] [/Users/markus/opt/miniconda3/envs/freecad_dev/include]
-- Matplotlib: not found
-- Rift: not enabled (BUILD_VR)
-- Doxygen: 1.8.20
-- Language: English
-- Coin3D_DOC: not found
=================================================
Now run 'cmake --build /Users/markus/devel/freecad/FreeCAD/build' to build FreeCAD
=================================================
qwerty_f
Posts: 165
Joined: Thu Sep 24, 2020 3:22 pm

Re: FreeCAD 0.19: macOS Big Sur: stuck on launch

Postby qwerty_f » Tue Jan 05, 2021 9:00 am

Somehow this thread becomes a bit of messy. Now there are 2 main threads about how to install FC on Big Sur (namely homebrew and conda). And all mixed with issues coming the one or other way. I'd prefer the homebrew installation but then would like to see some more rigid guide on how to do that. There was a suggestion on putting things in a wiki. But I have no idea about the how and where.
MRx
Posts: 44
Joined: Wed Jul 08, 2020 5:59 am
Location: Tainan / Taiwan

Re: FreeCAD 0.19: macOS Big Sur: stuck on launch

Postby MRx » Tue Jan 05, 2021 3:52 pm

I dropped conda, while it compiled the sourcecode it created the FreeCAD version which is just stuck. Solving dependencies via homebrew and compiling FreeCAD manually worked for me.
qwerty_f
Posts: 165
Joined: Thu Sep 24, 2020 3:22 pm

Re: FreeCAD 0.19: macOS Big Sur: stuck on launch

Postby qwerty_f » Thu Jan 07, 2021 12:01 pm

Phew, I took another attempt. Cleaned all my conda stuff and ran brew install freecad --head. It did not complete (no beer today) and there are lots of warnings I have no idea how to deal with. Again without any FC...
Found it. It's just not linked. Entering manually /usr/local/opt/freecad/bin/FreeCAD starts it. Some final word for the brew would have been nicer.

OS: macOS 11.1
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.23648 (Git)
Build type: Release
Branch: master
Hash: 5b058a9f13c89bb374ddf77b93008d560822398c
Python version: 3.9.0
Qt version: 5.15.2
Coin version: 4.0.0
OCC version: 7.5.0
Locale: German/Germany (de_DE)
Attachments
install.log.zip
(252.6 KiB) Downloaded 10 times
User avatar
vejmarie
Posts: 706
Joined: Mon Jan 04, 2016 4:52 pm
Location: Somewhere between France, USA and Taiwan
Contact:

Re: FreeCAD 0.19: macOS Big Sur: stuck on launch

Postby vejmarie » Sat Jan 09, 2021 2:21 pm

qwerty_f wrote:
Thu Jan 07, 2021 12:01 pm
Phew, I took another attempt. Cleaned all my conda stuff and ran brew install freecad --head. It did not complete (no beer today) and there are lots of warnings I have no idea how to deal with. Again without any FC...
Found it. It's just not linked. Entering manually /usr/local/opt/freecad/bin/FreeCAD starts it. Some final word for the brew would have been nicer.

OS: macOS 11.1
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.23648 (Git)
Build type: Release
Branch: master
Hash: 5b058a9f13c89bb374ddf77b93008d560822398c
Python version: 3.9.0
Qt version: 5.15.2
Coin version: 4.0.0
OCC version: 7.5.0
Locale: German/Germany (de_DE)
Can you open up an issue for the missing link stage ? I think it shall be easy to fix and get it into /usr/local/bin. I think we made some good progress during the past few weeks
qwerty_f
Posts: 165
Joined: Thu Sep 24, 2020 3:22 pm

Re: FreeCAD 0.19: macOS Big Sur: stuck on launch

Postby qwerty_f » Sat Jan 09, 2021 8:51 pm

Here it is: https://tracker.freecadweb.org/view.php?id=4531 (hopefully correct since I'm not yet used to the procedure)

Thanks for your efforts anyway!
JohnOCFII
Posts: 32
Joined: Sun Sep 20, 2020 5:46 pm

Re: FreeCAD 0.19: macOS Big Sur: stuck on launch

Postby JohnOCFII » Fri Jan 15, 2021 11:04 pm

For those using the Mini Conda build instructions, I ran into an issue yesterday when I executed a

Code: Select all

conda update --all
and then attempted to run freecad. The update completed, and after launching Freecad, it hung in a way that reminded me of how the 0.19 version on Github hangs.

I ended up deleting everything in the ~/miniconda3 tree and restoring that hierarchy from backups.
User avatar
Gift
Posts: 522
Joined: Tue Aug 18, 2015 10:08 am
Location: Germany, Sauerland

Re: FreeCAD 0.19: macOS Big Sur: stuck on launch

Postby Gift » Sat Jan 16, 2021 3:43 pm

Netgen drive me insane.

Code: Select all

==> cmake -DUSE_PYTHON=OFF -DUSE_NATIVE_ARCH=ON -DUSE_GUI=OFF -DUSE_OCC=ON -DOCC_INCLUDE_DIR="/opt/homebrew/opt/opencascade@7.5.0/include/opencascade" ..
==> make -j8 install


log:

Code: Select all

/tmp/nglib-20210116-35995-j376ij/libsrc/occ/Partition_Loop2d.jxx:11:10: fatal error: 'TopoDS_Face.hxx' file not found
#include <TopoDS_Face.hxx>
         ^~~~~~~~~~~~~~~~~
In file included from /tmp/nglib-20210116-35995-j376ij/libsrc/occ/Partition_Spliter.cxx:33:
/tmp/nglib-20210116-35995-j376ij/libsrc/occ/Partition_Inter2d.hxx:31:13: fatal error: 'Standard_Version.hxx' file not found
   #include <Standard_Version.hxx>

Code: Select all

% ls /opt/homebrew/opt/opencascade@7.5.0/include/opencascade/TopoDS_Face.*
/opt/homebrew/opt/opencascade@7.5.0/include/opencascade/TopoDS_Face.hxx	/opt/homebrew/opt/opencascade@7.5.0/include/opencascade/TopoDS_Face.lxx
:cry: