- Posts: 505
- Thank you received: 0
need help on setup of qtvcp
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)
I don't have a directory named .scripts and I could not find a file called rip-enviroment all over the system.open a terminal, set the environment for linuxcnc . scripts/rip-environment
then load designer with : designer -qt=5
Please Log in to join the conversation.
so you do not need the rip-envirewrment
as ypu installd latest stretch ypou shoudt alredy< have the QTvcp invirerment
Please Log in to join the conversation.
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 to join the conversation.
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 to join the conversation.
/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 to join the conversation.
- tommylight
-
- Offline
- Administrator
-
- Posts: 22010
- Thank you received: 3
:ohmy: :ohmy: :ohmy:cmorley wrote: It's an educated guess - I have no installed versions of linuxcnc available to look in.
Chris M
Please Log in to join the conversation.
This kind of advice is better than in the tutorial.cmorley wrote: in usr/lib/x86_64-linux-gnu/qt5/plugins/designer/python
add a link to qtvcp_plugin.py
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 to join the conversation.
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:
and indeed - python-pyqt5.qtsvg is not installed.
So I installed that module ...
...and now designer crashes at start with messages from logSecond.txt
Please Log in to join the conversation.
Reinhard wrote:
This kind of advice is better than in the tutorial.cmorley wrote: in usr/lib/x86_64-linux-gnu/qt5/plugins/designer/python
add a link to qtvcp_plugin.py
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 to join the conversation.
