Re: [SOLVED] Re: builder gio::resource problem
- From: Kjell Ahlstedt <kjellahlstedt gmail com>
- To: Marty Moore <pl8swash gmail com>
- Cc: gtkmm-list gnome org
- Subject: Re: [SOLVED] Re: builder gio::resource problem
- Date: Sat, 15 Apr 2017 11:01:28 +0200
Like you've noticed, most of the examples in the gtkmm tutorial don't
contain makefiles. There's only one Makefile.am for building all of the
examples, and that's an input file to automake, which generates a huge
makefile.
The examples in the fairly new chapter 31 "Building applications",
https://developer.gnome.org/gtkmm-tutorial/stable/chapter-building-applications.html.en,
contain makefiles, called Makefile.example. These files are not listed
in the tutorial, it's just briefly mentioned that they exist. You have
to go to the source code, e.g.
https://git.gnome.org//browse/gtkmm-documentation/tree/examples/book/buildapp/step2?h=gtkmm-3-22
to see them.
Kjell
Den 2017-04-14 kl. 22:06, skrev Marty Moore:
Hi Aitor,
It finally works! Thank you all for your help!
It all boiled down to the makefile. It turns out that resouces need to
be compiled twice, once by Glib::compile_resources, and again by g++.
This was not clear in chapter 12.4 of "Programming with gtkmm", at
least for dinosaurs like me.
I suggest that chapter 12.4 be rewitten with more detail and examples
of each stage of creating and loading gio::resources. I would also
suggest that a complete, simple, and working example including a
makefile be added to chapter 12.4. While not everyone uses makefile,
it would be a simple reference for all users. The example of 12.5
don't work, because their focus in on menus, and some required pieces
(.glade files, makefiles) are missing.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]