I seemed to have borked my GTK/Glade installation

More
2 years 1 month ago #309246 by JetForMe
I was running a 2.9.0 prerelease and decided to upgrade to the current 2.9.3. That seemed to go smoothly, but now when I launch linuxcnc, it exits with the following. Looking at the apt upgrade transcript, it definitely installed some GTK stuff. But this is the main error:

Code:
**** GLADE VCP ERROR:    With xml file: ./lzpanel.ui : 'gi.repository.Gtk' object has no attribute 'glade'


I've struggled a lot in the past with GTK 2 vs 3 issues. I'd be happy to move to GTK 3, if Axis and LinuxCNC can handle that, but I'm not sure how it would break my VCP. I've attached some files in case they help

Please Log in to join the conversation.

More
2 years 1 month ago #309409 by andypugh
In the ui file it says:
interface-requires gladevcp 0.0
requires lib="gtk+" version="2.24"

Whereas the current version of the lathemacros has

<requires lib="gtk+" version="3.4"/>
<requires lib="gladevcp" version="0.0"/>

Do any of the sample gladevcp configs work?

It might help to open your .ui file in the latest glade and then re-save it.

Please Log in to join the conversation.

More
1 year 6 months ago #327326 by JetForMe
I think the last time I tried to update to GTK+3, a bunch of the components no longer existed, like HAL_HideTable. Where do those come from?

Please Log in to join the conversation.

More
1 year 5 months ago #327537 by andypugh
Anything HAL in GTK will have come with the LinuxCNC installation.

It _might_ help to install linuxcnc-uspace-dev (it won't hurt, at least)

Please Log in to join the conversation.

More
1 year 5 months ago #327577 by JetForMe
I finally managed to sort it out and update my .ui file to GTK+3. I wish there was a better guide for the various LinuxCNC-specific components and the migration necessary.

Please Log in to join the conversation.

More
1 year 3 months ago #332569 by richcolvin
What did you do to fix it?

Please Log in to join the conversation.

More
1 year 3 months ago #332581 by JetForMe

What did you do to fix it?
 
I updated to GTK+ v3.x, and asked ChatGPT to help me update my lzpanel.ui file to the latest version. It was amazingly helpful in this regard, although I think there were a couple hiccups along the way.

Please Log in to join the conversation.

Time to create page: 1.091 seconds
Powered by Kunena Forum