line 150
Code: Select all
"${_PYTHON_ROOT}/libs/Python${PYTHON_LIBRARY_SUFFIX}.lib")
line 150
Code: Select all
"${_PYTHON_ROOT}/libs/Python${PYTHON_LIBRARY_SUFFIX}.lib")
and that it tries to load QtWebEngineProcessD.exe. When I add the line of code and put the executable to the bin directory the messages disappear but FreeCAD still crashes.Qt WebEngine seems to be initialized from a plugin. Please set Qt::AA_ShareOpenGLContexts using QCoreApplication::setAttribute before constructing QGuiApplication.
Code: Select all
.....
Found PythonInterp: C:/Work/FreeCadLibs/FreeCADLibs_12.1.2_x64_VC15/bin/python.exe (found version "3.7.2")
Found PythonLibs: optimized;C:/Work/FreeCadLibs/FreeCADLibs_12.1.2_x64_VC15/bin/libs/python37.lib;debug;C:/Work/FreeCadLibs/FreeCADLibs_12.1.2_x64_VC15/bin/libs/python37_d.lib (found suitable exact version "3.7.2")
Boost version: 1.67.0
.....
Shiboken2Config: Using default python: .cp37-win_amd64
Found PythonInterp: C:/Work/FreeCadLibs/FreeCADLibs_12.1.2_x64_VC15/bin/python.exe (found suitable version "3.7.2", minimum required is "3")
Found PythonLibs: optimized;C:/Work/FreeCadLibs/FreeCADLibs_12.1.2_x64_VC15/bin/libs/Python37.lib;debug;C:/Work/FreeCadLibs/FreeCADLibs_12.1.2_x64_VC15/bin/libs/python37_d.lib (found suitable version "3.7.2", minimum required is "3")
SHIBOKEN_PYTHON_INCLUDE_DIRS computed to value: 'C:/Work/FreeCadLibs/FreeCADLibs_12.1.2_x64_VC15/bin/include'
SHIBOKEN_PYTHON_LIBRARIES computed to value: 'C:/Work/FreeCadLibs/FreeCADLibs_12.1.2_x64_VC15/bin/libs/Python37.lib'
libshiboken built for Release
SHIBOKEN_INCLUDE_DIR: C:/Work/FreeCadLibs/FreeCADLibs_12.1.2_x64_VC15/lib/cmake/Shiboken2-5.12.2/../../../include/shiboken2
SHIBOKEN_LIBRARY: optimized;C:/Work/FreeCadLibs/FreeCADLibs_12.1.2_x64_VC15/lib/cmake/Shiboken2-5.12.2/../../shiboken2.cp37-win_amd64.lib;debug;C:/Work/FreeCadLibs/FreeCADLibs_12.1.2_x64_VC15/lib/cmake/Shiboken2-5.12.2/../../shiboken2_d_d.cp37-win_amd64.lib
PYSIDE_LIBRARY: optimized;C:/Work/FreeCadLibs/FreeCADLibs_12.1.2_x64_VC15/lib/cmake/PySide2-5.12.2/../../pyside2.cp37-win_amd64.lib;debug;C:/Work/FreeCadLibs/FreeCADLibs_12.1.2_x64_VC15/lib/cmake/PySide2-5.12.2/../../pyside2_d.cp37-win_amd64_d.lib
PYSIDE_PYTHONPATH: C:/Work/FreeCadLibs/FreeCADLibs_12.1.2_x64_VC15/Lib/site-packages/PySide2
-- matplotlib-3.0.3 has been found.
Platform is 64-bit, set -D_OCC64
git
C:/Work/FreeCAD_GitHub_Apeltauer/bin_release/src/Build/Version.h.out written
area module (for Path Workbench) will be installed to: lib
Configuring done
Generating done
You must look at which functions are missing and then modify the netgen sources by adding the DLL_HEADER export macro.But by compiling FreeCAD netgen stuff i get a linking error.
In order to debug through the Webengine code I have installed the Qt5.12.1 version and added its bin directory to the PATH before the libpack's bin path. And to my surprise loading the Start workbench suddenly worked. So apparently there must be a difference between the Qt version of the libpack and the installed one.Qt WebEngine seems to be initialized from a plugin. Please set Qt::AA_ShareOpenGLContexts using QCoreApplication::setAttribute before constructing QGuiApplication.
From your Qt installation you should also copy the doc directory to the libpack. The doc directory includes a sub-directory global which includes many qdocconf files. These files are required for the build of QtWebkit.apeltauer wrote: ↑Tue Mar 26, 2019 7:30 am I try to get the libpack version 12.1.2 to run and upload it again.
Also FEM passes the cmake check. I have added all hdf5 stuff with the med files. But by compiling FreeCAD netgen stuff i get a linking error.
Also i had to adopt some header files. Had to add std:: to all endl commands....
Code: Select all
[Paths]
Prefix=..
I have added the files...wmayer wrote: ↑Tue Mar 26, 2019 12:34 pmFrom your Qt installation you should also copy the doc directory to the libpack. The doc directory includes a sub-directory global which includes many qdocconf files. These files are required for the build of QtWebkit.apeltauer wrote: ↑Tue Mar 26, 2019 7:30 am I try to get the libpack version 12.1.2 to run and upload it again.
Also FEM passes the cmake check. I have added all hdf5 stuff with the med files. But by compiling FreeCAD netgen stuff i get a linking error.
Also i had to adopt some header files. Had to add std:: to all endl commands....
And you must also copy the resources directory of the Qt installation to the libpack as this provides some files the Webengine requires. Without them it simply crashes. With this configuration I got the Start workbench working now based on the QtWebengine module.
- Copy the resource directory to the FreeCAD directory
- Copy the file qt.conf to FreeCAD's bin directory. The content of the file is:
Code: Select all
[Paths] Prefix=..
Code: Select all
pyarea.obj : error LNK2019: unresolved external symbol __imp_PyModule_Create2 referenced in function "public: __cdecl pybind11::module::module(char const *,char const *)" (??0module@pybind11@@QEAA@PEBD0@Z)
1>C:\Work\FreeCAD_GitHub_Apeltauer\bin_debug\lib\area_d.pyd : fatal error LNK1120: 1 unresolved externals
1>D
Code: Select all
/// Include Python header, disable linking to pythonX_d.lib on Windows in debug mode
#if defined(_MSC_VER)
# if (PY_MAJOR_VERSION == 3 && PY_MINOR_VERSION < 4)
# define HAVE_ROUND 1
# endif
# pragma warning(push)
# pragma warning(disable: 4510 4610 4512 4005)
# if defined(_DEBUG)
# define PYBIND11_DEBUG_MARKER
# //undef _DEBUG
# endif
#endif