FreeCAD for MacOS now more than 100 commits behind
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Re: FreeCAD for MacOS now more than 100 commits behind
Sorry I've let this slide again, ian.rees accurately describes the reason for my absence as well. Anyway, the problem is the same as it was last time. Our bottles that depend on qt (pyside and qtwebkit) are outdated again and need to be recompiled. I only have the process of creating the bottles somewhat automated, so it still requires quite a bit of time, especially since I've been building them for all three macOS versions. I may have time to do it this weekend, but no promises.
This will continue being a problem every time homebrew has a breaking update, but the effort would be greatly reduced if we were able to get rid of the need for our own pyside and qtwebkit bottles. Homebrew will probably accept pyside into core as soon as there is a stable release, which hopefully will happen this year, and qtwebkit is unsupported as far as I know and what ever is using it should be changed to use the qt5 equivalent. The remaining libraries that won't be accepted into homebrew core are small enough that they could be automatically built with travis when needed.
This will continue being a problem every time homebrew has a breaking update, but the effort would be greatly reduced if we were able to get rid of the need for our own pyside and qtwebkit bottles. Homebrew will probably accept pyside into core as soon as there is a stable release, which hopefully will happen this year, and qtwebkit is unsupported as far as I know and what ever is using it should be changed to use the qt5 equivalent. The remaining libraries that won't be accepted into homebrew core are small enough that they could be automatically built with travis when needed.
Re: FreeCAD for MacOS now more than 100 commits behind
Good to see you online Peter!
PySide2 is now available via pip/pip3, and Qt is planning on also making Shiboken2 available similarly (it's currently in the PySide2 egg, but kinda broken and isn't intended to be left there, if I understand correctly). So, I'll be curious to see whether PySide2 gets brought in to Homebrew (I'm guessing this one), or if Homebrew takes the line that it's in pip so doesn't need to be. Either way, we should be able to avoid building it ourselves in the not-too-distant future.
PySide2 is now available via pip/pip3, and Qt is planning on also making Shiboken2 available similarly (it's currently in the PySide2 egg, but kinda broken and isn't intended to be left there, if I understand correctly). So, I'll be curious to see whether PySide2 gets brought in to Homebrew (I'm guessing this one), or if Homebrew takes the line that it's in pip so doesn't need to be. Either way, we should be able to avoid building it ourselves in the not-too-distant future.
Re: FreeCAD for MacOS now more than 100 commits behind
Great to see you working on this; thanks!
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Re: FreeCAD for MacOS now more than 100 commits behind
Agreed, thanks for the attention, guys.
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Re: FreeCAD for MacOS now more than 100 commits behind
FYI webkit has been ported to qt5, fortunately... In debian it is there up and running already.
Re: FreeCAD for MacOS now more than 100 commits behind
Yes, there is no issue with using qtwebkit with qt5. I'm talking about replacing it with QtWebEngine (or something more light weight) so that we don't have to continue providing our own qtwebkit package on macOS. https://freecadweb.org/tracker/view.php?id=2868
Re: FreeCAD for MacOS now more than 100 commits behind
Some time ago I ported FreeCAD to QWebEngine: https://github.com/wwmayer/FreeCAD/commits/webengine
But things behave weirdly because when trying to open a web page twice (IIRC) then FreeCAD simply aborts (at least on Windows) and there is no obvious information about why. With the debug version it might be possible to get some more information about the failure but it seems impossible to get built the debug version of Qt5WebEngineCore. Whenever trying it the linking process keeps stopping and never succeeds even after waiting for hours.
Since we need the browser stuff only for the Web/StartPage module I wonder if we should switch to a much simpler solution like using QML or a widget-based approach. A full-featured web engine is not needed anyway.
But things behave weirdly because when trying to open a web page twice (IIRC) then FreeCAD simply aborts (at least on Windows) and there is no obvious information about why. With the debug version it might be possible to get some more information about the failure but it seems impossible to get built the debug version of Qt5WebEngineCore. Whenever trying it the linking process keeps stopping and never succeeds even after waiting for hours.
Since we need the browser stuff only for the Web/StartPage module I wonder if we should switch to a much simpler solution like using QML or a widget-based approach. A full-featured web engine is not needed anyway.
Re: FreeCAD for MacOS now more than 100 commits behind
FYI, macOS builds are working again.
Re: FreeCAD for MacOS now more than 100 commits behind
Thanks for your help!!
Re: FreeCAD for MacOS now more than 100 commits behind
Hi, I tried to compiel FreeCAD on macOS 10.13.6 today with
I installed most of deps with brew:
I got it working up to a point, I think I'm close, the error I get now is:
Any tips?
thank you
Code: Select all
cmake \
-DCMAKE_BUILD_TYPE="Release" \
-DBUILD_QT5=1 \
-DCMAKE_PREFIX_PATH="/usr/local/Cellar/qt/5.11.0/lib/cmake" \
-DFREECAD_USE_EXTERNAL_KDL=1 \
-DBUILD_FEM_NETGEN=1 \
-DFREECAD_CREATE_MAC_APP=1 \
-DCMAKE_INSTALL_PREFIX="./.." \
../FreeCAD/
Code: Select all
cmake ccache libpng qt qtwebkit llvm numpy FreeCAD/freecad/shiboken2 FreeCAD/freecad/pyside2 FreeCAD/freecad/pyside2-tools freeimage gl2ps tbb opencascade orocos-kdl freecad/freecad/matplotlib isl gcc szip hdf5 freecad/freecad/med-file libtiff netcdf vtk FreeCAD/freecad/nglib FreeCAD/freecad/coin FreeCAD/freecad/pivy swig icu4c oniguruma jq
Code: Select all
$ cat /Users/david/Install/FreeCAD/build/CMakeFiles/CMakeError.log
Determining if the include file GL/gl.h exists failed with the following output:
Change Dir: /Users/david/Install/FreeCAD/build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_240af/fast"
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTC_240af.dir/build.make CMakeFiles/cmTC_240af.dir/build
Building C object CMakeFiles/cmTC_240af.dir/CheckIncludeFile.c.o
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk -o CMakeFiles/cmTC_240af.dir/CheckIncludeFile.c.o -c /Users/david/Install/FreeCAD/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c
/Users/david/Install/FreeCAD/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:10: fatal error: 'GL/gl.h' file not found
#include <GL/gl.h>
^~~~~~~~~
1 error generated.
make[1]: *** [CMakeFiles/cmTC_240af.dir/CheckIncludeFile.c.o] Error 1
make: *** [cmTC_240af/fast] Error 2
thank you