compile with py3 and Qt5 on Debian Stretch

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
kkremitzki
Veteran
Posts: 2511
Joined: Thu Mar 03, 2016 9:52 pm
Location: Illinois

Re: compile with py3 and Qt5 on Debian Stretch

Post by kkremitzki »

bernd wrote: Tue Nov 20, 2018 10:42 pm I havae problems with Qt5 on Debian Buster ...
Can you try adding -DPYTHON_CONFIG_SUFFIX="-python2.7.x86_64-linux-gnu" to your cmake flags?
Like my FreeCAD work? I'd appreciate any level of support via Patreon, Liberapay, or PayPal! Read more about what I do at my blog.
user1234
Veteran
Posts: 3319
Joined: Mon Jul 11, 2016 5:08 pm

Re: compile with py3 and Qt5 on Debian Stretch

Post by user1234 »

Hello!
Try

Code: Select all

-DPYTHON_CONFIG_SUFFIX="-python2.7.x86_64-linux-gnu" 
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 ....
User avatar
bernd
Veteran
Posts: 12849
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: compile with py3 and Qt5 on Debian Stretch

Post by bernd »

the shiboken and pyside errors are gone ... :)

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
$ 
User avatar
kkremitzki
Veteran
Posts: 2511
Joined: Thu Mar 03, 2016 9:52 pm
Location: Illinois

Re: compile with py3 and Qt5 on Debian Stretch

Post by kkremitzki »

Try grabbing the libqt5x11extras5-dev package.

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
Like my FreeCAD work? I'd appreciate any level of support via Patreon, Liberapay, or PayPal! Read more about what I do at my blog.
User avatar
bernd
Veteran
Posts: 12849
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: compile with py3 and Qt5 on Debian Stretch

Post by bernd »

:D 8-)
User avatar
bernd
Veteran
Posts: 12849
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: compile with py3 and Qt5 on Debian Stretch

Post by bernd »

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 ... :geek:
User avatar
kkremitzki
Veteran
Posts: 2511
Joined: Thu Mar 03, 2016 9:52 pm
Location: Illinois

Re: compile with py3 and Qt5 on Debian Stretch

Post by kkremitzki »

bernd wrote: Wed Nov 21, 2018 9:48 pm 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 ... :geek:
The release of Buster is coming up so switching to it in advance is not such a bad idea.
Like my FreeCAD work? I'd appreciate any level of support via Patreon, Liberapay, or PayPal! Read more about what I do at my blog.
User avatar
bernd
Veteran
Posts: 12849
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: compile with py3 and Qt5 on Debian Stretch

Post by bernd »

FreeCAD Qt5 runs on Buster. Next step is Python 3.

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
The pivy from your repo are just Python files. What do I need to do with them?

How do I tell cmake that it trys to compile against Python3 and it finds my brand new pivy?

Bernd
User avatar
kkremitzki
Veteran
Posts: 2511
Joined: Thu Mar 03, 2016 9:52 pm
Location: Illinois

Re: compile with py3 and Qt5 on Debian Stretch

Post by kkremitzki »

bernd wrote: Thu Nov 22, 2018 9:36 am FreeCAD Qt5 runs on Buster. Next step is Python 3.

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
The pivy from your repo are just Python files. What do I need to do with them?

How do I tell cmake that it trys to compile against Python3 and it finds my brand new pivy?

Bernd
It's the debian folder that contains the magic, if you're in the top-level folder you should be able to run:

Code: Select all

git archive upstream | gzip > ../pivy_0.6.4.orig.tar.gz
dpkg-buildpackage -us -uc
to produce all the .deb files associated with that package.
Like my FreeCAD work? I'd appreciate any level of support via Patreon, Liberapay, or PayPal! Read more about what I do at my blog.
abdullah
Veteran
Posts: 4935
Joined: Sun May 04, 2014 3:16 pm
Contact:

Re: compile with py3 and Qt5 on Debian Stretch

Post by abdullah »

EDIT: I really replied to something old. You might delete this post.
Post Reply