Thank you for the Information that libsoqt4-dev is outdated. Did not find a alternative for it.
Because the Change from qt4 to qt5
I made the following changes in the packed selection.
pyside-tools -->pyside2-tools
libshiboken-dev --> libshiboken2-dev
libpyside-dev --> libpyside2-dev
python-pyside --> python-pyside2uic (User Interface Compiler for PySide2 (Python 2))
libsoqt4-dev --> ??????? Outdated
libqt4-dev --> pyqt5-dev
libqt4-opengl-dev --> libqt5opengl5-dev
qt4-dev-tools --> qt5base-dev-tools
python-qt4 --> python-pyqt5 and python3-pyqt5
I installed some packages extra:
shiboken
python-qt-binding
python3-qt-binding
Yes I installed recomanded cmake-qt-gui.
But because I never use it before I tried the old way:
Code: Select all
git clone https://github.com/FreeCAD/FreeCAD.git free-cad-code
and then
Code: Select all
cmake -DBUILD_QT5=ON
CMake Deprecation Warning at CMakeLists.txt:22 (cmake_policy):
The OLD behavior for policy CMP0050 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
-- Compiler: GNU, version: 8.2.0
-- prefix: /usr/local
-- datadir: data
-- docdir: doc
-- includedir: include
-- libdir: /usr/local/lib
-- Boost version: 1.62.0
-- Found the following Boost libraries:
-- filesystem
-- program_options
-- regex
-- signals
-- system
-- thread
-- chrono
-- date_time
-- atomic
-- Found Xerces-C: /usr/lib/x86_64-linux-gnu/libxerces-c.so
-- PyCXX found:
-- Headers: /home/hn/free-cad-code/src
-- Sources: /home/hn/free-cad-code/src/CXX
-- Version: 6.2.8
-- -- OpenCASCADE Community Edition has been found.
-- -- Found OCE/OpenCASCADE version: 6.9.1
-- -- OCE/OpenCASCADE include directory: /usr/lib/x86_64-linux-gnu/oce-0.17/../../../include/oce
-- -- OCE/OpenCASCADE shared libraries directory:
-- The imported target "vtkRenderingPythonTkWidgets" references the file
"/usr/lib/x86_64-linux-gnu/libvtkRenderingPythonTkWidgets.so"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
"/usr/lib/cmake/vtk-6.3/VTKTargets.cmake"
but not all the files it references.
-- The imported target "vtk" references the file
"/usr/bin/vtk"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
"/usr/lib/cmake/vtk-6.3/VTKTargets.cmake"
but not all the files it references.
-- VTK components: vtkCommonCore;vtkCommonDataModel;vtkFiltersVerdict;vtkIOXML;vtkFiltersCore;vtkFiltersGeneral;vtkIOLegacy;vtkFiltersExtraction;vtkFiltersSources;vtkFiltersGeometry;vtkIOMPIParallel;vtkParallelMPI;vtkhdf5;vtkRenderingCore;vtkInteractionStyle;vtkRenderingFreeType
-- Check for medfile (libmed and libmedc) ...
CMake Warning at CMakeLists.txt:874 (find_package):
By not providing "FindQt5Svg.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "Qt5Svg", but
CMake did not find one.
Could not find a package configuration file provided by "Qt5Svg" with any
of the following names:
Qt5SvgConfig.cmake
qt5svg-config.cmake
Add the installation prefix of "Qt5Svg" to CMAKE_PREFIX_PATH or set
"Qt5Svg_DIR" to a directory containing one of the above files. If "Qt5Svg"
provides a separate development package or SDK, be sure it has been
installed.
CMake Warning at CMakeLists.txt:875 (find_package):
By not providing "FindQt5UiTools.cmake" in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
"Qt5UiTools", but CMake did not find one.
Could not find a package configuration file provided by "Qt5UiTools" with
any of the following names:
Qt5UiToolsConfig.cmake
qt5uitools-config.cmake
Add the installation prefix of "Qt5UiTools" to CMAKE_PREFIX_PATH or set
"Qt5UiTools_DIR" to a directory containing one of the above files. If
"Qt5UiTools" provides a separate development package or SDK, be sure it has
been installed.
CMake Warning at CMakeLists.txt:879 (find_package):
By not providing "FindQt5WebKitWidgets.cmake" in CMAKE_MODULE_PATH this
project has asked CMake to find a package configuration file provided by
"Qt5WebKitWidgets", but CMake did not find one.
Could not find a package configuration file provided by "Qt5WebKitWidgets"
with any of the following names:
Qt5WebKitWidgetsConfig.cmake
qt5webkitwidgets-config.cmake
Add the installation prefix of "Qt5WebKitWidgets" to CMAKE_PREFIX_PATH or
set "Qt5WebKitWidgets_DIR" to a directory containing one of the above
files. If "Qt5WebKitWidgets" provides a separate development package or
SDK, be sure it has been installed.
CMake Warning (dev) at /usr/share/cmake-3.12/Modules/FindOpenGL.cmake:270 (message):
Policy CMP0072 is not set: FindOpenGL prefers GLVND by default when
available. Run "cmake --help-policy CMP0072" for policy details. Use the
cmake_policy command to set the policy and suppress this warning.
FindOpenGL found both a legacy GL library:
OPENGL_gl_LIBRARY: /usr/lib/x86_64-linux-gnu/libGL.so
and GLVND libraries for OpenGL and GLX:
OPENGL_opengl_LIBRARY: /usr/lib/x86_64-linux-gnu/libOpenGL.so
OPENGL_glx_LIBRARY: /usr/lib/x86_64-linux-gnu/libGLX.so
OpenGL_GL_PREFERENCE has not been set to "GLVND" or "LEGACY", so for
compatibility with CMake 3.10 and below the legacy GL library will be used.
Call Stack (most recent call first):
CMakeLists.txt:928 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Checking for module 'Coin'
-- No package 'Coin' found
CMake Error at /usr/lib/x86_64-linux-gnu/cmake/Shiboken2-5.11.0/Shiboken2Config.cmake:5 (include):
include could not find load file:
/usr/lib/x86_64-linux-gnu/cmake/Shiboken2-5.11.0/Shiboken2Config-python2.7.cmake
Call Stack (most recent call first):
CMakeLists.txt:976 (find_package)
====================
shiboken2 not found.
====================
CMake Error at /usr/lib/x86_64-linux-gnu/cmake/PySide2-5.11.0/PySide2Config.cmake:5 (include):
include could not find load file:
/usr/lib/x86_64-linux-gnu/cmake/PySide2-5.11.0/PySide2Config-python2.7.cmake
Call Stack (most recent call first):
CMakeLists.txt:983 (find_package)
==================
PySide2 not found.
==================
-- -- matplotlib-2.2.2 has been found.
-- Platform is 64-bit, set -D_OCC64
-- Build type:
-- setting gcc options: -Wall -Werror -Wno-deprecated -pedantic-errors
-- Boost version: 1.62.0
-- Found the following Boost libraries:
-- python27
-- found Boost: 1_62
-- boost-incude dirs are: /usr/include
-- boost-python lib is:
-- boost_LIBRARY_DIRS is: /usr/lib/x86_64-linux-gnu
-- Boost_LIBRARIES is: /usr/lib/x86_64-linux-gnu/libboost_python-py27.so
-- area module (for Path Workbench) will be installed to: /usr/local/lib
-- Note: Doxygen docs will look better with graphviz's dot installed.
-- Coin3D doc is installed
-- Found /usr/share/doc/libcoin80-doc/html/coin.tag.gz
-- You should uncompress this file if you want to use it for source doc generation
=======================================
Now run 'make' to build FreeCAD
=======================================
-- Configuring incomplete, errors occurred!
See also "/home/hn/free-cad-code/CMakeFiles/CMakeOutput.log".
See also "/home/hn/free-cad-code/CMakeFiles/CMakeError.log".
So I looked in
Code: Select all
cat free-cad-code/CMakeFiles/CMakeError.log
Determining if the pthread_create exist failed with the following output:
Change Dir: /home/hn/free-cad-code/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_80cfa/fast"
/usr/bin/make -f CMakeFiles/cmTC_80cfa.dir/build.make CMakeFiles/cmTC_80cfa.dir/build
make[1]: Entering directory '/home/hn/free-cad-code/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_80cfa.dir/CheckSymbolExists.c.o
/usr/bin/cc -o CMakeFiles/cmTC_80cfa.dir/CheckSymbolExists.c.o -c /home/hn/free-cad-code/CMakeFiles/CMakeTmp/CheckSymbolExists.c
Linking C executable cmTC_80cfa
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_80cfa.dir/link.txt --verbose=1
/usr/bin/cc -rdynamic CMakeFiles/cmTC_80cfa.dir/CheckSymbolExists.c.o -o cmTC_80cfa
/usr/bin/ld: CMakeFiles/cmTC_80cfa.dir/CheckSymbolExists.c.o: in function `main':
CheckSymbolExists.c:(.text+0x1b): undefined reference to `pthread_create'
collect2: error: ld returned 1 exit status
make[1]: *** [CMakeFiles/cmTC_80cfa.dir/build.make:87: cmTC_80cfa] Error 1
make[1]: Leaving directory '/home/hn/free-cad-code/CMakeFiles/CMakeTmp'
make: *** [Makefile:121: cmTC_80cfa/fast] Error 2
File /home/hn/free-cad-code/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <pthread.h>
int main(int argc, char** argv)
{
(void)argv;
#ifndef pthread_create
return ((int*)(&pthread_create))[argc];
#else
(void)argc;
return 0;
#endif
}
Determining if the function pthread_create exists in the pthreads failed with the following output:
Change Dir: /home/hn/free-cad-code/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_4e857/fast"
/usr/bin/make -f CMakeFiles/cmTC_4e857.dir/build.make CMakeFiles/cmTC_4e857.dir/build
make[1]: Entering directory '/home/hn/free-cad-code/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_4e857.dir/CheckFunctionExists.c.o
/usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTC_4e857.dir/CheckFunctionExists.c.o -c /usr/share/cmake-3.12/Modules/CheckFunctionExists.c
Linking C executable cmTC_4e857
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_4e857.dir/link.txt --verbose=1
/usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create -rdynamic CMakeFiles/cmTC_4e857.dir/CheckFunctionExists.c.o -o cmTC_4e857 -lpthreads
/usr/bin/ld: cannot find -lpthreads
collect2: error: ld returned 1 exit status
make[1]: *** [CMakeFiles/cmTC_4e857.dir/build.make:87: cmTC_4e857] Error 1
make[1]: Leaving directory '/home/hn/free-cad-code/CMakeFiles/CMakeTmp'
make: *** [Makefile:121: cmTC_4e857/fast] Error 2
Seems like pthread.h is missing?
Knows some one what is wrong?