gladevcp catalog, and other questions

More
3 years 9 months ago #262109 by phillc54
Chris is the developer of QtVCP:
linuxcnc.org/docs/devel/html/gui/qtvcp.html
This is a LinuxCNC GUI building infrastructure based on PyQt5.
 
The following user(s) said Thank You: JetForMe

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

More
3 years 9 months ago #262115 by JetForMe
SOME SUCCESS!

After re-reading some of this thread I discovered the need to run rip-environment whenever I plan to do linuxcnc stuff. Now glade3 seems to find what it needs to find. Hopefully I can make some Glade 3 VCPs now.

Perhaps the build instructions could make this need more explicit?

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

More
3 years 9 months ago #262119 by rodw
yes, you can have multiple RIP builds in different folders and activate them with the rip-environment script
You can also still have a deb install and call it from the menus
If you are building from scratch, maybe have a quick look at qtvcp and qtpyvcp before you start. I think Glade is probably easier. I have not used it for years but have not done any gui stuff since then either!

But I looked at a number of guis over the weekend as axis scales poorly on my display. I ended up choosing a non-mainstream qtpyvcp config but I knew the develper who kindly spent a few hours with me to get me going yesterday! I just need to fold in a 12 speed belt drive and a VFD somewhere.




 
The following user(s) said Thank You: JetForMe

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

More
3 years 9 months ago - 3 years 9 months ago #262120 by JetForMe
Thanks for that confirmation. It gives me the courage to build it on my real machine. Fortunately I'm making progress on my simulator setup in the VM, so long as I can figure out some of the issues that I made new posts for. But it’s 0440 now, so I’m gonna head home and try to sleep.
Last edit: 3 years 9 months ago by JetForMe.

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

More
3 years 9 months ago #262174 by HansU
There are basically three flavours to create VCP's:
- pyVCP (very basic ones without graphical editor)
- GladeVCP
- QtVCP

and also QtPyVCP but cannot say much about that.

Perhaps the build instructions could make this need more explicit?

In what point exactly? How a RIP behaves, or... ?

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

More
3 years 9 months ago #262918 by blazini36
I'm having a a problem with this myself with this, I used the glade-gtk2 version quite a bit but I can't get this running.

I use Manjaro on the desktop and built 2.9 RIP, and exported the paths. I get mesa errors trying to run any UI other than latency-test but I figure that should be good enough to get the widgets to pop up in Glade. I just get errors about each widget but it's obviously trying to load them since the errors are naming them. I know somebody's gonna say "ya gotta use Debian", so..

I installed Debian Bookworm in Virtualbox. The widgets themselves seem to be in /usr/lib/python3/dist-packages/gladevcp, and the hal_python.xml is in /usr/share/glade3/catalogs. With LinuxCNC running, I get the exact same thing trying to tun Glade, no HAL widgets just:


@debian:~$ export GLADE_CATALOG_SEARCH_PATH='/usr/lib/python3/dist-packages/gladevcp'
@debian:~$ glade
GladeUI-Message: 00:22:11.122: 1 missing displayable value for GtkWidget::AtkObject::accessible-role
GladeUI-Message: 00:22:11.381: 5 missing displayable value for GtkCellRendererText::variant
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python3/dist-packages/gladevcp/__init__.py", line 1, in <module>
    from .hal_pythonplugin import *
  File "/usr/lib/python3/dist-packages/gladevcp/hal_pythonplugin.py", line 1, in <module>
    from .hal_widgets import HAL_HideTable
  File "/usr/lib/python3/dist-packages/gladevcp/hal_widgets.py", line 21, in <module>
    import hal
  File "/usr/lib/python3/dist-packages/hal.py", line 30, in <module>
    import _hal
ModuleNotFoundError: No module named '_hal'

(glade:2641): GladeUI-WARNING **: 00:22:11.516: We could not find the symbol "h_al__hide_table_get_type"

(glade:2641): GladeUI-WARNING **: 00:22:11.516: Could not get the type from "HAL_HideTable"

(glade:2641): GladeUI-WARNING **: 00:22:11.516: Failed to load the GType for 'HAL_HideTable'

(glade:2641): GladeUI-WARNING **: 00:22:11.516: We could not find the symbol "h_al__hbox_get_type"

That goes on......what am I missing?

 

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

Moderators: HansU
Time to create page: 0.279 seconds
Powered by Kunena Forum