need help on setup of qtvcp
- Reinhard
 - Offline
 - Platinum Member
 - 
				
			 
		Less
		More
		
			
	
		- Posts: 508
 - Thank you received: 94
 
			
	
						25 May 2019 11:29				#134886
		by Reinhard
	
	
		
			
	
			
			 		
													
	
				need help on setup of qtvcp was created 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)
					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 or Create an account to join the conversation.
- pl7i92
 - 
				
											 - Offline
 - Platinum Member
 - 
				
			 
		Less
		More
		
			
	
		- Posts: 1872
 - Thank you received: 358
 
			
	
						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
					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.
- Reinhard
 - Offline
 - Platinum Member
 - 
				
			 
		Less
		More
		
			
	
		- Posts: 508
 - Thank you received: 94
 
			
	
						25 May 2019 14:37				#134899
		by Reinhard
	
	
		
			
	
			
			 		
													
	
				Replied by Reinhard on topic need help on setup of qtvcp			
			
				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
					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.
- cmorley
 - Offline
 - Moderator
 - 
				
			 
		Less
		More
		
			
	
		- Posts: 7230
 - Thank you received: 2106
 
			
	
						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
					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.
- cmorley
 - Offline
 - Moderator
 - 
				
			 
		Less
		More
		
			
	
		- Posts: 7230
 - Thank you received: 2106
 
			
	
						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
					/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.
- tommylight
 - 
				
											 - Away
 - Moderator
 - 
				
			 
		Less
		More
		
			
	
		- Posts: 20860
 - Thank you received: 7115
 
			
	
						25 May 2019 21:17				#134929
		by tommylight
	
	
		
			
				
 
 
			
					
	
			
			 		
													
	
				Replied by tommylight on topic need help on setup of qtvcp			
			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.
- Reinhard
 - Offline
 - Platinum Member
 - 
				
			 
		Less
		More
		
			
	
		- Posts: 508
 - Thank you received: 94
 
			
	
						26 May 2019 03:13				#134949
		by Reinhard
	
	
		
			
				
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?
					
	
			
			 		
													
	
				Replied by Reinhard on topic need help on setup of qtvcp			
			This kind of advice is better than in the tutorial.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 or Create an account to join the conversation.
- Reinhard
 - Offline
 - Platinum Member
 - 
				
			 
		Less
		More
		
			
	
		- Posts: 508
 - Thank you received: 94
 
			
	
						26 May 2019 04:07				#134950
		by Reinhard
	
	
		
			
	
	
			
			 		
													
	
				Replied by Reinhard on topic need help on setup of qtvcp			
			
				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:
and indeed - python-pyqt5.qtsvg is not installed.
So I installed that module ...
...and now designer crashes at start with messages from logSecond.txt
					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 moduleand 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
Please Log in or Create an account to join the conversation.
- cmorley
 - Offline
 - Moderator
 - 
				
			 
		Less
		More
		
			
	
		- Posts: 7230
 - Thank you received: 2106
 
			
	
						26 May 2019 04:27				#134953
		by cmorley
	
	
		
			
				
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
					
	
			
			 		
													
	
				Replied by cmorley on topic need help on setup of qtvcp			
			
This kind of advice is better than in the tutorial.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 or Create an account to join the conversation.
- cmorley
 - Offline
 - Moderator
 - 
				
			 
		Less
		More
		
			
	
		- Posts: 7230
 - Thank you received: 2106
 
			
	
						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.097 seconds