qtvcp python3 in master

More
6 years 1 month ago #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

Please Log in to join the conversation.

More
6 years 1 month ago #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 to join the conversation.

More
6 years 1 month ago #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 to join the conversation.

More
6 years 3 weeks ago #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:
Code:
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:
Code:
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 to join the conversation.

More
6 years 3 weeks ago #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 to join the conversation.

More
6 years 3 weeks ago #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 to join the conversation.

More
4 years 3 months ago #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.

Please Log in to join the conversation.

Time to create page: 0.110 seconds
Powered by Kunena Forum