Ruben schrieb:

> Hello


Hello Ruben,

> I'm really a novice at autoconf and automake and trying to learn some
> gtkmm but I'm running into a problem that I just don't have the
> familiarity to solve and I'd like to request some help


> I'm using this autogen.sh script
> ---------------------------------------------


[...]
this autogen.sh is just obsolete. Use autoreconf instead.

> This is my top level configure.ac
> ____________________________________________
> AC_INIT(src/one_window.cc)


AC_INIT(myapp, [0.1.0], [your@e-mail.address])

AC_CONFIG_SRCDIR([src/one_window.cc])
AC_CONFIG_HEADER([src/config.h])

AM_INIT_AUTOMAKE([dist-bzip2])

> dnl AM_INIT_AUTOMAKE(one_window,0.1)
> dnl AM_CONFIG_HEADER(config.h)
>
> AC_PROG_CC
> AC_PROG_CXX
>
> AC_PROG_INSTALL
> dnl AC_PROG_LIBTOOL


AC_CHECK_LIB(gtkmm-2.4, _init,,
AC_MSG_ERROR(Essential library libgtkmm-2.4 not found))

PKG_CHECK_MODULES([GTKMM], [gtkmm-2.4 >= 2.4.0])
AC_SUBST(GTKMM_CFLAGS)
AC_SUBST(GTKMM_LIBS)

> AC_OUTPUT(Makefile src/Makefile)
> ----------------------------------------------
>
>
>
>
> This is my toplevel Makefile.am
> ------------------------------------------------
>
> SUBDIRS = src

# EXTRA_DIST=autogen.sh
> ________________________________________________
>
>
>
>
> This is my src directory Makefile.am
> _______________________________________________
>
> bin_PROGRAMS = onewindow
> onewindow_SOURCES = one_window.cc


AM_CXXFLAGS = $(GTKMM_CFLAGS)
onewindow_LDADD = $(GTKMM_LIBS)

>
> ______________________________________________
>
>
> and the C++ code is very simple
> one_window.cc
> _____________________________________________
> #include
>
> int main(int argc, char *argv[])
> {
> Gtk::Main kit(argc, argv);
>
> Gtk::Window window;
>
> Gtk::Main::run(window);
>
> return 0;
> }
> _____________________________________



Guido


--
http://www.bayernline.de/~gscholz/
http://www.lug-burghausen.org/