Glade3 folder in share

  • grandixximo
  • grandixximo's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
22 Jun 2011 07:44 #10751 by grandixximo
Glade3 folder in share was created by grandixximo
Hello everyone,
I have install EMC2 CD with ubuntu 10.10, then i went on studying it, i install the dev folder and compile everything with instruction from the wiki, i want to make my own interface for EMC2 so i want to use gladevcp to do it, but i am encountering some problems.

from the instruction readme that i find in gladevcp folder

install it system-wide you must link files from ./share/glade3/ to /usr/share/glade3 system folder.

Problem is i do not have this glade3 folder anywhere but in usr/share/

other problem is how do i link it one time i have this folder?

i think that the fact that i cannot install it system wide is creating me some issue with it.

I note that gladevcp looks like it's working, also glade opens up but with a lot of warnings, but i cannot open the helloworld example with gladevcp, tis will give me such error

llibglade-WARNING **: Expected <glade-interface>. Got <interface>.

(gladevcp:1919): libglade-WARNING **: did not finish in PARSER_FINISH state
**** GLADE VCP INFO: Not a libglade project, trying to load as a GTK builder project
RTAPI: ERROR: could not open shared memory (errno=2)
Segmentation fault

I'm not a total noob with ubuntu and programming, but i need some help with this, thanks

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

More
22 Jun 2011 09:00 #10752 by psha
Replied by psha on topic Re:Glade3 folder in share
You have RIP (run in place) EMC or installed it system-wide?
Links in /usr/share/glade3 are needed only when you want to run glade outside of RIP environment (or want icons).
If you are using ubuntu 10.10 then you probably have non-realtime kernel?
In that case you need emc2 built in simulator mode.

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

  • grandixximo
  • grandixximo's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
22 Jun 2011 09:15 - 22 Jun 2011 10:14 #10753 by grandixximo
Replied by grandixximo on topic Re:Glade3 folder in share
Ok i'll try to build in simulator mode and i'll let you know.
I hope this time the glade3 folder will show up

EDIT:

Solved, i removed EMC2, install it normally then clean make and install it with simulator.
Then restarted the enviroment, and glade worked :)

Only thing i am still missing the glade3 folder and it's giving me some warnings about missing icons, but it works :woohoo:

Anyone have this glade3 folder to link in the usr/glade3 folder or is just a mith? :huh:
Last edit: 22 Jun 2011 10:14 by grandixximo.

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

More
22 Jun 2011 10:49 #10756 by cncbasher
Replied by cncbasher on topic Re:Glade3 folder in share
no need to link folder , works fine
i dont get any warnings over icons , but did you run the enviroment script in the scripts directory
also works fine in run in place mode too

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

More
22 Jun 2011 11:54 #10763 by psha
Replied by psha on topic Re:Glade3 folder in share
It's not a mith, but let me give you some background first.
For glade you need 3 things - catalog files, library files (python or C) and icons.
Catalog files are searched in /usr/share/glade3 _and_ in path given in environment by $GLADE_CATALOG_PATH
Library files are search in system paths and in corresponding (LD_LIBRARY_PATH or PYTHONPATH) locations.
But icons are searched only in /usr/share

So in RIP mode you'll always get icons for widgets derived from parent classes instead of custom ones.
This does not apply to widgets with "stock" icons like EMC Actions.

So link in /usr/share is needed _only_ when you are running RIP and want icons :)
However theese conditions are rarely met

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

  • grandixximo
  • grandixximo's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
23 Jun 2011 03:43 - 23 Jun 2011 03:44 #10801 by grandixximo
Replied by grandixximo on topic Re:Glade3 folder in share
I think i get you, but still since i have to run RIP and think i need icons to work with gladevcp, there is not a glade3 folder in the ECM2 folder, so either i do not know how to make the folder, or there is a spell error in the readme...

I mean can someone explain why there is no a glade3 folder?
Last edit: 23 Jun 2011 03:44 by grandixximo.

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

More
23 Jun 2011 04:08 - 23 Jun 2011 04:09 #10802 by psha
Replied by psha on topic Re:Glade3 folder in share
Difference between widget list with and without icons are really subtle - it only affects appearance of some widgets in left panel of Glade editor.
Functionality is not affected. Here are screenshots of glade with and without icons (on the right - missing icons)


share/glade3 directory is created during build but you may link .png files from lib/python/gladevcp/ directly

upd
Standard icons may look different for you - it depends on current Gtk theme
Attachments:
Last edit: 23 Jun 2011 04:09 by psha.

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

  • grandixximo
  • grandixximo's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
23 Jun 2011 04:36 #10804 by grandixximo
Replied by grandixximo on topic Re:Glade3 folder in share
I built EMC2 a lot of times, with or without simulation, from pkg, from tar, from git repository, from master.

Never ever i found such share/glade3

Is there a special command, is there other source that i need to compile?

I totally understand that the functionality it's fine, as i said it works.

What i don't understand is why in the readme it say that there should be a share/glade3 folder, and there is not such folder.

I think the forum is needed to leave important information on problems and to know of bugs or other problems with EMC2, i'm just informing that the glade3 folder is not been created, please address this problem...

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

More
23 Jun 2011 05:51 #10806 by psha
Replied by psha on topic Re:Glade3 folder in share
git.linuxcnc.org/gitweb?p=emc2.git;a=blo...ads/v2.5_branch#l480
git.linuxcnc.org/gitweb?p=emc2.git;a=blo...ads/v2.5_branch#l531

Seem that it's created only during installation and README is a bit outdated - it's derived from original one which was written long ago.

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

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