need help on setup of qtvcp

More
25 May 2019 11:29 #134886 by Reinhard
Hi,

I tried to follow linuxcnc.org/docs/devel/html/gui/qtvcp.html
but I already fail on section 2.2 ...

(designer starts and qtvcp -h shows help screen)

The last sentence does not match my system (debian stretch)

open a terminal, set the environment for linuxcnc . scripts/rip-environment
then load designer with : designer -qt=5

I don't have a directory named .scripts and I could not find a file called rip-enviroment all over the system.

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

More
25 May 2019 14:30 #134896 by pl7i92
Replied by pl7i92 on topic need help on setup of qtvcp
the side you foloow is only for the Master at github to be selfcompilt

so you do not need the rip-envirewrment
as ypu installd latest stretch ypou shoudt alredy< have the QTvcp invirerment

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

More
25 May 2019 14:37 #134899 by Reinhard
Hm, that's only partially true.
I can start the programs, but the qt-designer does not know anything about linuxcnc.
So I need a bridge to close the gap

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

More
25 May 2019 19:20 #134918 by cmorley
Replied by cmorley on topic need help on setup of qtvcp
yes sorry the directions are incomplete...
in usr/lib/x86_64-linux-gnu/qt5/plugins/designer/python
add a link to qtvcp_plugin.py:

On a RIP linuxcnc it would be something like:
(home name and linuxcnc project name may be different for you)

/home/chris/emc-dev/lib/python/qtvcp/plugins/qtvcp_plugin.py

I'll have to look up wher it would be on an installed version...

Chris M

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

More
25 May 2019 20:34 #134924 by cmorley
Replied by cmorley on topic need help on setup of qtvcp
on an installed version look in :
/usr/lib/python2.7/qtvcp/plugins/qtvcp_plugin.py

It's an educated guess - I have no installed versions of linuxcnc available to look in.

Chris M

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

More
25 May 2019 21:17 #134929 by tommylight

It's an educated guess - I have no installed versions of linuxcnc available to look in.

Chris M

:ohmy: :ohmy: :ohmy:

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

More
26 May 2019 03:13 #134949 by Reinhard

in usr/lib/x86_64-linux-gnu/qt5/plugins/designer/python
add a link to qtvcp_plugin.py

This kind of advice is better than in the tutorial.
When I know, how things should be, I can search on my own.

On my system, /usr/lib/x86_64-linux-gnu/qt5/plugins/designer contains only compiled shared libs - no directory python.

I tried both: linking qtvcp_plugin.py directly and creating a subdirectory python and put the link there ...
No change - the designer keeps on ignoring linuxcnc.

by the way - i found qtvcp_plugin.py in /usr/lib/python2.7/dist-packages/qtvcp/plugins/qtvcp_plugin.py

May be searchpath of designer is different for shared libs and python modules?

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

More
26 May 2019 04:07 #134950 by Reinhard
Here some more info:

When I create the python directory at usr/lib/x86_64-linux-gnu/qt5/plugins/designer and put a link to usr/lib/python2.7/dist-packages/qtvcp/plugins/qtvcp_plugin.py inside that directory, designer comes up with the messages from file logFirst.txt

... so I checked installation:
ii  python-pyside.qtsvg                                              1.2.2-2+b1                                 amd64        Qt 4 SVG module - Python bindings
ii  python3-pyqt5.qtsvg                                              5.7+dfsg-5                                 amd64        Python 3 bindings for Qt5's SVG module

and indeed - python-pyqt5.qtsvg is not installed.
So I installed that module ...
ii  python-pyqt5.qtsvg                                               5.7+dfsg-5                                 amd64        Python 2 bindings for Qt5's SVG module
ii  python-pyside.qtsvg                                              1.2.2-2+b1                                 amd64        Qt 4 SVG module - Python bindings
ii  python3-pyqt5.qtsvg                                              5.7+dfsg-5                                 amd64        Python 3 bindings for Qt5's SVG module

...and now designer crashes at start with messages from logSecond.txt
Attachments:

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

More
26 May 2019 04:27 #134953 by cmorley
Replied by cmorley on topic need help on setup of qtvcp

in usr/lib/x86_64-linux-gnu/qt5/plugins/designer/python
add a link to qtvcp_plugin.py

This kind of advice is better than in the tutorial.
When I know, how things should be, I can search on my own.

On my system, /usr/lib/x86_64-linux-gnu/qt5/plugins/designer contains only compiled shared libs - no directory python.

I tried both: linking qtvcp_plugin.py directly and creating a subdirectory python and put the link there ...
No change - the designer keeps on ignoring linuxcnc.

by the way - i found qtvcp_plugin.py in /usr/lib/python2.7/dist-packages/qtvcp/plugins/qtvcp_plugin.py

May be searchpath of designer is different for shared libs and python modules?


Yes I pushed an update to the docs - I'm sure I'll have to update them again when we figure this out.
yes /usr/lib/x86_64-linux-gnu/qt5/plugins/designer/python is the right directory - you may have to add the python folder.

yes the link should be to /usr/lib/python2.7/dist-packages/qtvcp/plugins/qtvcp_plugin.py

next you have copied the libpyqt5_py2.so file into /usr/lib/x86_64-linux-gnu/qt5/plugins/designer ?
and is it the right version - looks like 5.7?

running from the terminal may give some error messages (if you are not already)
python.pyqt5 versions of libraries is what you need.
What distribution are you using?

SVG library _should_ not actually be necessary - just one widget is not available (but I haven't confirmed recently if it would cause a designer error - but it would give an error message in the terminal)

Chris M

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

More
26 May 2019 04:28 - 26 May 2019 04:29 #134954 by cmorley
Replied by cmorley on topic need help on setup of qtvcp
Duplicate
Last edit: 26 May 2019 04:29 by cmorley. Reason: duplicate

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

Time to create page: 0.107 seconds
Powered by Kunena Forum