conda py3 / qt4 build

This subforum is specifically to discuss packaging issues on different platforms (windows, mac, linux), and using different packaging systems (conda, etc...)
Post Reply
User avatar
looo
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

conda py3 / qt4 build

Post by looo »

Recently I tried to compile FreeCAD with qt4. The main problem I encountered was an older freetype used by the conda qt4-build (freetype2.7.*) Therefor occt needed to be compiled with this version of freetype. Also python3.7 would need additional work, therefor I selected python3.6 as target version. Pivy is build without soqt and therefor is not dependent on qt. packages are uploaded to freecad/label/qt4.

But there are still difficulties:
- FEM: as occt is build against older freetype also netgen and smesh need to be recompiled. So FEM is disabled for now
- Techdraw also has some difficulties:

Code: Select all

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
QT_QTXMLPATTERNS_INCLUDE_DIR (ADVANCED)
not sure how to fix this one.

- a compatible qtwebkit is hopefully available but I didn't do any tests yet.

Also it seems like win and osx are missing some packages. But I guess osx with qt4 doesn't make much sense, and for windows we have py2 / qt4 builds. So linux is for sure most important.
User avatar
looo
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

Re: conda py3 / qt4 build

Post by looo »

next issue:

Code: Select all

[1659/2511] Building CXX object src/Gui/CMakeFiles/FreeCADGui.dir/DownloadManager.cpp.o
FAILED: src/Gui/CMakeFiles/FreeCADGui.dir/DownloadManager.cpp.o 
$BUILD_PREFIX/bin/x86_64-conda_cos6-linux-gnu-c++  -DBUILD_ADDONMGR -DCMAKE_BUILD_TYPE=\"Release\" -DFreeCADGui_EXPORTS -DHAVE_CONFIG_H -DHAVE_FREEIMAGE -DHAVE_PYSIDE -DHAVE_SHIBOKEN -DHAVE_TBB -DOCC_CONVERT_SIGNALS -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_SVG_LIB -DQT_UITOOLS_LIB -DQT_XML_LIB -D_OCC64 -I. -Isrc -I../src -I../src/Gui -I../src/Gui/Quarter -Isrc/Gui -I../src/Gui/.. -Isrc/Gui/.. -Isrc/Gui/Language -Isrc/Gui/propertyeditor -Isrc/Gui/TaskView -Isrc/Gui/Quarter -Isrc/Gui/DAGView -I$PREFIX/include/eigen3 -I$PREFIX/include/python3.6m -I$PREFIX/include/shiboken -I$PREFIX/include/PySide -I$PREFIX/include/PySide/QtCore -I$PREFIX/include/PySide/QtGui -isystem $PREFIX/include/qt -isystem $PREFIX/include/qt/QtOpenGL -isystem $PREFIX/include/qt/QtSvg -isystem $PREFIX/include/qt/QtUiTools -isystem $PREFIX/include/qt/QtGui -isystem $PREFIX/include/qt/QtXml -isystem $PREFIX/include/qt/QtNetwork -isystem $PREFIX/include/qt/QtCore -Wall -Wextra -Wno-write-strings -fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -I$PREFIX/include -fdebug-prefix-map=$SRC_DIR=/usr/local/src/conda/freecad-0.19.pre -fdebug-prefix-map=$PREFIX=/usr/local/src/conda-prefix -O3 -DNDEBUG -fPIC   -std=gnu++11 -MD -MT src/Gui/CMakeFiles/FreeCADGui.dir/DownloadManager.cpp.o -MF src/Gui/CMakeFiles/FreeCADGui.dir/DownloadManager.cpp.o.d -o src/Gui/CMakeFiles/FreeCADGui.dir/DownloadManager.cpp.o -c ../src/Gui/DownloadManager.cpp
../src/Gui/DownloadManager.cpp:37:10: fatal error: QWebSettings: No such file or directory
 #include <QWebSettings>
I guess the Downloadmanager depends on qtweb so we should disable it if no qtwebkit/qtwebengine is available.
Post Reply