qtvcp python3 in master

More
07 Sep 2020 08:44 #181108 by cmorley
I have pushed work in master so qtvcp can be used with python 2 or 3 now.
here is some detail how to compile for testing: github.com/LinuxCNC/linuxcnc/issues/820
tested on buster with python3 (you'll need to install python3 versions of libraries for pyqt/qtvcp)

buildbot currently does not build python3 binaries.

Anyone with custom screen handler files may need to do some minor changes.

please report any difficulties - thanks


Chris
The following user(s) said Thank You: phillc54, tommylight, rodw, Aciera, seebaer1976

Please Log in or Create an account to join the conversation.

More
10 Sep 2020 14:20 #181641 by persei8
Replied by persei8 on topic qtvcp python3 in master
I want to try out pi3d in a qtvcp environment but pi3d only works with python3. How do I install python3 libraries for qtvcp?

Please Log in or Create an account to join the conversation.

More
10 Sep 2020 16:21 #181652 by cmorley
Replied by cmorley on topic qtvcp python3 in master
This works for buster:

./configure --with-python=python3 --with-boost-python=boost_python3-py37
make clean
make -j2

make clean is important.
The libboost version is found in /usr/lib/x86_64-linux-gnu/libboost_python-pyXX.so

after you get linuxcnc compiled with python3, all the python3 libraries that qpyqt/qtvcp requires need to be pulled in, which is basically changing to python3-pyqt5:
python3-pyqt5-qtopengl
etc. Qtvcp is pretty good about telling you in the terminal what the missing library is called.
For designer you don't need or want the precompiled library that we supplied in linuxcnc (libpyqt5_py2.so), just use the stock one that should be supplied when you bring in designer. Still need to link to qtvcp plugins though.

Please Log in or Create an account to join the conversation.

More
09 Oct 2020 14:11 #185465 by Reinhard
Replied by Reinhard on topic qtvcp python3 in master

./configure --with-python=python3 --with-boost-python=boost_python3-py37

Just tried it and configure fails with this errors:
checking version of python libraries... python3.7m
checking match between tk and Tkinter versions... Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'tkinter'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'tkinter'
TCL mismatch: 8.6 vs 
configure: error: Python requires use of Tcl  and Tk .
... but tcl and tk are installed.
List of installed packages is this:
ii  bwidget           1.9.13-1               all    Extension widgets for Tcl/Tk
ii  libtcl8.6:amd64   8.6.9+dfsg-2           amd64  Tcl (the Tool Command Language) v8.6 - run-time library files
ii  libtk-img:amd64   1:1.4.8+dfsg-1+deb10u1 amd64  Extended image format support for Tcl/Tk (runtime)
ii  libtk8.6:amd64    8.6.9-2                amd64  Tk toolkit for Tcl and X11 v8.6 - run-time files
ii  tcl               8.6.9+1                amd64  Tool Command Language (default version) - shell
ii  tcl-dev:amd64     8.6.9+1                amd64  Tool Command Language (default version) - development files
ii  tcl8.6            8.6.9+dfsg-2           amd64  Tcl (the Tool Command Language) v8.6 - shell
ii  tcl8.6-dev:amd64  8.6.9+dfsg-2           amd64  Tcl (the Tool Command Language) v8.6 - development files
ii  tclx8.4           8.4.1-3                amd64  Extended Tcl (TclX) - shared library
ii  tk                8.6.9+1                amd64  Toolkit for Tcl and X11 (default version) - windowing shell
ii  tk8.6             8.6.9-2                amd64  Tk toolkit for Tcl and X11 v8.6 - windowing shell
ii  tk8.6-blt2.5      2.5.3+dfsg-4           amd64  graphics extension library for Tcl/Tk - library
ii  tk8.6-dev:amd64   8.6.9-2                amd64  Tk toolkit for Tcl and X11 v8.6 - development files

Please Log in or Create an account to join the conversation.

More
09 Oct 2020 20:16 #185503 by cmorley
Replied by cmorley on topic qtvcp python3 in master
Did you run make clean before make?
Bit of discussion here, but not related to tkinter.
github.com/LinuxCNC/linuxcnc/issues/820

Chris

Please Log in or Create an account to join the conversation.

More
10 Oct 2020 02:36 #185536 by Reinhard
Replied by Reinhard on topic qtvcp python3 in master

Did you run make clean before make?

Sure.

But the error is not from run of make!
The error happens during run of configure

Please Log in or Create an account to join the conversation.

More
07 Jul 2022 15:26 - 09 Jul 2022 22:10 #246812 by zz912
Replied by zz912 on topic qtvcp python3 in master
Did you solve it? I have same problem.

Edit: The problem was between the chair and the keyboard. I forgot to do dpkg-checkbuilddeps.
Last edit: 09 Jul 2022 22:10 by zz912.

Please Log in or Create an account to join the conversation.

Moderators: cmorley
Time to create page: 0.081 seconds
Powered by Kunena Forum