Can't create GTK+ application framework

Anne-Marie Mahfouf annemarie.mahfouf at free.fr
Thu Nov 3 00:42:07 GMT 2005


Hi,

I forgot to say that this is with
libgtkmm2.4_1-devel 
(not 2.0.1)

The next hurdle is in the Makefile.am of the project, in src/
AM_CXXFLAGS = @CXXFLAGS@ @GTKMM_CFLAGS@ 
kgtkapp_LDADD = @LIBS@ @GTKMM_LIBS@ 

those 2 lines are not OK.

And I am also not sure where the headers are now, but it seems that
#include <gtk--/main.h>
in main_window.cc
is obsolete.

Any help would be appreciated in fixing this template or we'll have to remove 
it from 3.4

Anne-Marie

On Wednesday 02 November 2005 14:36, Anne-Marie Mahfouf wrote:
> Hi Bernd,
>
> OK, I had a look into it and got the same error than you. Now, I don't know
> anything about GTK so you will have to help me to fix the template (I
> assume as you build that template you have some gtk knowledge ;-)
>
> 1) to make automake && configure work, in your configure.in project file,
> remove
> AM_PATH_GTKMM(1.2.8,,
> 	AC_MSG_ERROR(Cannot find a matching GTK-- library: Please install version
> 1.2.8 or newer))
>
> and instead put
> PKG_CHECK_MODULES(app_name, gtkmm-2.4 >= 2.4.0)
>
> changing app_name with your project name.
>
> Please run automake and configure and tell me if that works.
>
> 2) there are build errors and if you would be kind enough to try and see
> how to fix them and send me the diff that would be awesome.
>
> I'll then fix the template for kdevelop 3.3 for kde 3.5 and for kdevelop
> 3.4
>
> Thanks in advance,
>
> Anne-Marie
>
> On Wednesday 02 November 2005 08:14, Bernd Muent wrote:
> > Hello together,
> > I worked with kdevelop for developing qt and kde programs and it's a
> > fine IDE.
> > But now I tried to create a new project C++->GTK+->Gtk application
> > framework.
> > Just trying to run without any changes, it stops while running aufconf
> > && automake with:
> >
> > configure.in:3: error: possibly undefined macro: AM_INIT_AUTOMAKE If
> > this token and others are legitimate, please use m4_pattern_allow. See
> > the Autoconf documentation.
> > configure.in:8: error: possibly undefined macro: AM_PROG_CC_STDC
> > configure.in:13: error: possibly undefined macro: AM_PROG_LIBTOOL
> > configure.in:17: error: possibly undefined macro: AM_PATH_GTKMM
> >
> > I had this problem on a Debian system as well as on a LFS system.
> > glib/gtk+/gnome and all this is installed/self compiled on this systems
> > (with .dev packages!).
> > What's going wrong?
> >
> > Thank you for tips, Bernd
> >
> > The complete output from kdevelop is:
> > cd '/root/gtktest' && WANT_AUTOCONF_2_5="1" WANT_AUTOMAKE_1_6="1"
> > ./autogen.sh && mkdir '/root/gtktest/debug' && cd '/root/gtktest/debug'
> > && CXXFLAGS="-O0 -g3" CFLAGS="-O0 -g3" "/root/gtktest/configure"
> > --enable-debug=full && cd '/root/gtktest/debug' && WANT_AUTOCONF_2_5="1"
> > WANT_AUTOMAKE_1_6="1" make -k
> > shell-init: could not get current directory: getcwd: cannot access
> > parent directories: Datei oder Verzeichnis nicht gefunden
> > chdir: could not get current directory: getcwd: cannot access parent
> > directories: Datei oder Verzeichnis nicht gefunden
> > which: no gnumake in
> > (/sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/usr/bin:/usr/X
> >11
> > R6/bin:/bin:/usr/local/apache/bin:/opt/kde3/bin:/usr/lib/java/bin:/var/li
> >b/d
> > osemu:/usr/games/bin:/usr/games:/opt/gnome/bin:/opt/kde3/bin:/opt/kde/bin
> >:/o
> > pt/gnome/bin:/usr/local/mysql/bin:/opt/j2sdk/bin:/usr/lib/qt/bin:/usr/loc
> >al/ JBuilder2005/bin:/usr/local/java/j2re/bin:/usr/local/ant/bin) which:
> > no gmake in
> > (/sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/usr/bin:/usr/X
> >11
> > R6/bin:/bin:/usr/local/apache/bin:/opt/kde3/bin:/usr/lib/java/bin:/var/li
> >b/d
> > osemu:/usr/games/bin:/usr/games:/opt/gnome/bin:/opt/kde3/bin:/opt/kde/bin
> >:/o
> > pt/gnome/bin:/usr/local/mysql/bin:/opt/j2sdk/bin:/usr/lib/qt/bin:/usr/loc
> >al/ JBuilder2005/bin:/usr/local/java/j2re/bin:/usr/local/ant/bin) Found
> > GNU Make at /usr/bin/make ... good.
> > This script runs configure and make...
> > You did remember necessary arguments for configure, right?
> > You should add the contents of `/usr/share/aclocal/libtool.m4' to
> > `aclocal.m4'.
> > autoheader: WARNING: Using auxiliary files such as `acconfig.h',
> > `config.h.bot'
> > autoheader: WARNING: and `config.h.top', to define templates for
> > `config.h.in'
> > autoheader: WARNING: is deprecated and discouraged.
> > autoheader:
> > autoheader: WARNING: Using the third argument of `AC_DEFINE' and
> > autoheader: WARNING: `AC_DEFINE_UNQUOTED' allows to define a template
> > without
> > autoheader: WARNING: `acconfig.h':
> > autoheader:
> > autoheader: WARNING: AC_DEFINE([NEED_FUNC_MAIN], 1,
> > autoheader: [Define if a function `main' is needed.])
> > autoheader:
> > autoheader: WARNING: More sophisticated templates can also be produced,
> > see the
> > autoheader: WARNING: documentation.
> > aclocal: configure.in: 17: macro `AM_PATH_GTKMM' not found in library
> > configure.in: no proper invocation of AM_INIT_AUTOMAKE was found.
> > configure.in: You should verify that configure.in invokes
> > AM_INIT_AUTOMAKE,
> > configure.in: that aclocal.m4 is present in the top-level directory,
> > configure.in: and that aclocal.m4 was recently regenerated (using
> > aclocal).
> > /usr/share/automake-1.7/am/depend2.am: am__fastdepCXX does not appear in
> > AM_CONDITIONAL
> > /usr/share/automake-1.7/am/depend2.am: AMDEP does not appear in
> > AM_CONDITIONAL
> > configure.in:3: error: possibly undefined macro: AM_INIT_AUTOMAKE If
> > this token and others are legitimate, please use m4_pattern_allow. See
> > the Autoconf documentation.
> > configure.in:8: error: possibly undefined macro: AM_PROG_CC_STDC
> > configure.in:13: error: possibly undefined macro: AM_PROG_LIBTOOL
> > configure.in:17: error: possibly undefined macro: AM_PATH_GTKMM
> > *** Beendet mit Status: 1 ***
>
> -
> to unsubscribe from this list send an email to
> kdevelop-request at kdevelop.org with the following body: unsubscribe
> »your-email-address«

-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«



More information about the KDevelop mailing list