Re: [gtkmm] compilation problem with glade-2.



Silviu D Minut schrieb:
I noticed that glade-2 behaves differently if you create a new project
from scratch (i.e. no .glade file), than if you create a project using an
already existing .glade file. Is that normal? Is there a reason for that?
In more detail...

more exactly it depends on configure.in/Makefile.am etc. present or not.


If I run glade-2 with no .glade file, I say "create new gtk+ project",
then under options, I select C++. Add widgets, save and build. When I run
autogen.sh, it ends with

configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating config.h
config.status: error: cannot find input file: config.h.in

Strangely, if I run autogen.sh again, I get no mo errors, and it compiles
the code too. Autogen.sh does not create any links in the project
directory.

Here my autotools knowledge ends. It's annoying, but I can't do anything about it. (different autotools version further add to the confusion)

which clearly shows it's trying to use gtkmm-1.2, not gtkmm-2. Am I doing
something wrong? How do I fix it?

autogen.sh, Makefile.am and configure.in of a glademm project are gtkmm version dependant. And since it is reasonable to edit them, glade-- does not touch them if they are present. So to convert between gtkmm major versions please merge the file wit the corresponding _new variant to fit your needs.

Or move them out of way and merge the other way around.

   Christof




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]