Can you try adding -DPYTHON_CONFIG_SUFFIX="-python2.7.x86_64-linux-gnu" to your cmake flags?
compile with py3 and Qt5 on Debian Stretch
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
- kkremitzki
- Veteran
- Posts: 2515
- Joined: Thu Mar 03, 2016 9:52 pm
- Location: Illinois
Re: compile with py3 and Qt5 on Debian Stretch
Re: compile with py3 and Qt5 on Debian Stretch
Hello!
Try I do not know anymore who tells me that trick. But the VTK is mad on Debian testing. The new CMake do not like that.
Greetings
user
edit, as always to late ....
Try
Code: Select all
-DPYTHON_CONFIG_SUFFIX="-python2.7.x86_64-linux-gnu"
Greetings
user
edit, as always to late ....
Re: compile with py3 and Qt5 on Debian Stretch
the shiboken and pyside errors are gone ...
still the qt5x11extras are somehow missing ...
but
still the qt5x11extras are somehow missing ...
Code: Select all
CMake Error at src/Gui/CMakeLists.txt:110 (find_package):
By not providing "FindQt5X11Extras.cmake" in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
"Qt5X11Extras", but CMake did not find one.
Could not find a package configuration file provided by "Qt5X11Extras" with
any of the following names:
Qt5X11ExtrasConfig.cmake
qt5x11extras-config.cmake
Add the installation prefix of "Qt5X11Extras" to CMAKE_PREFIX_PATH or set
"Qt5X11Extras_DIR" to a directory containing one of the above files. If
"Qt5X11Extras" provides a separate development package or SDK, be sure it
has been installed.
-- Configuring incomplete, errors occurred!
but
Code: Select all
$ dpkg -l | grep qt5x11extras
ii libqt5x11extras5:amd64 5.11.2-2 amd64 Qt 5 X11 extras
$
- kkremitzki
- Veteran
- Posts: 2515
- Joined: Thu Mar 03, 2016 9:52 pm
- Location: Illinois
Re: compile with py3 and Qt5 on Debian Stretch
Try grabbing the libqt5x11extras5-dev package.
Edit: The apt-file tool is good for this:
Edit: The apt-file tool is good for this:
Code: Select all
$ apt-file search Qt5X11ExtrasConfig.cmake
libqt5x11extras5-dev: /usr/lib/x86_64-linux-gnu/cmake/Qt5X11Extras/Qt5X11ExtrasConfig.cmake
Re: compile with py3 and Qt5 on Debian Stretch
first step is done. It compiles on Debian Buster with Qt5 ...
https://github.com/berndhahnebach/FreeC ... Qt5_Py2.sh
next step will be Py3 afterwards I decide it I give Stretch a try in compiling FreeCAD Qt5Py3 or if I give Buster a try on my Computer ...
https://github.com/berndhahnebach/FreeC ... Qt5_Py2.sh
next step will be Py3 afterwards I decide it I give Stretch a try in compiling FreeCAD Qt5Py3 or if I give Buster a try on my Computer ...
- kkremitzki
- Veteran
- Posts: 2515
- Joined: Thu Mar 03, 2016 9:52 pm
- Location: Illinois
Re: compile with py3 and Qt5 on Debian Stretch
The release of Buster is coming up so switching to it in advance is not such a bad idea.
Re: compile with py3 and Qt5 on Debian Stretch
FreeCAD Qt5 runs on Buster. Next step is Python 3.
How do I tell cmake that it trys to compile against Python3 and it finds my brand new pivy?
Bernd
The pivy from your repo are just Python files. What do I need to do with them?kkremitzki wrote: ↑Mon Nov 19, 2018 8:02 pm Right now all you need to build Qt5 + Py3 on Debian Buster is a python3-pivy package. You can refer to my package for that here: https://salsa.debian.org/kkremitzki-guest/pivy
How do I tell cmake that it trys to compile against Python3 and it finds my brand new pivy?
Bernd
- kkremitzki
- Veteran
- Posts: 2515
- Joined: Thu Mar 03, 2016 9:52 pm
- Location: Illinois
Re: compile with py3 and Qt5 on Debian Stretch
It's the debian folder that contains the magic, if you're in the top-level folder you should be able to run:bernd wrote: ↑Thu Nov 22, 2018 9:36 am FreeCAD Qt5 runs on Buster. Next step is Python 3.
The pivy from your repo are just Python files. What do I need to do with them?kkremitzki wrote: ↑Mon Nov 19, 2018 8:02 pm Right now all you need to build Qt5 + Py3 on Debian Buster is a python3-pivy package. You can refer to my package for that here: https://salsa.debian.org/kkremitzki-guest/pivy
How do I tell cmake that it trys to compile against Python3 and it finds my brand new pivy?
Bernd
Code: Select all
git archive upstream | gzip > ../pivy_0.6.4.orig.tar.gz
dpkg-buildpackage -us -uc
Re: compile with py3 and Qt5 on Debian Stretch
EDIT: I really replied to something old. You might delete this post.