Hi again,
On 04/09/2017 11:47 AM,
aitor_czr wrote:
Hi Marty,
Hi all,
I'm trying to update from gtkmm-2.24 to gtkmm-3.18. As a dinosaur of a
previous age, I'm trying to move from manual menus to Gtk::Builder and
Gio::Resources. I've been through section 12 of the tutorial several
times, and have looked at the 3.18 source /demo/Makefile as a
reference. I'm using the example_builder.cc to learn how to load
resources int an app.?
So far, the program compiles, but I'm getting a runtime error:
marty@builder$./x
main 0:
Error loading example_builder.ui: The resource at
'/builder/example_builder.ui' does not exist
I'm obvioysly mis-understanding something about resources, and would
appreciate any help you can provide. I've been stewing over this for
weeks.
Thanks,
Marty
Please, can you attach the link to the example? I
can't find it in the gnome development tutorial:
https://developer.gnome.org/gtkmm-tutorial/stable/index-info.html.en
Maybe, i can help you using CMake... Have a look at this
example:
https://git.devuan.org/aitor_czr/simple-netaid-gtk/tree/master
I use a singleton class defining all the global variables,
including the paths to the executables, output files, pixmaps,
etc...
Cheers,
Aitor.
Ok, these are the files:
http://gnuinos.org/Example-Builder/
I'll try to build it this afternoon (12:15 here, in the north of
Spain). More concretely, Basque country :)
Usually (and only for convenience)
i include all the headers in an unique header called
<headers.h>, and, after finishing the project i do a right
separation of the headers, when packaging, distinguishing between
static/shared, runtime/libdevel, etc...
Cheers,
Aitor.
|