Hi,
Sorry to bother.
I tried to use automake to generate Makefile. But it kept reports as
following:
[EMAIL PROTECTED] gtkmm]$ aclocal;autoconf
[EMAIL PROTECTED] gtkmm]$ automake -a -c
Deep recursion on subroutine "Automake::read_am_file" at
/usr/bin/automake line 7254, <GEN101> line 1.
Can't locate Carp/Heavy.pm in @INC (@INC contains:
/usr/share/automake-1.6 /usr/lib/perl5/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/5.8.0
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl
/usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 .) at
/usr/lib/perl5/5.8.0/Carp.pm line 178, <GEN1023> line 1.
But I can read the /usr/lib/perl5/5.8.0/Carp/Heavy.pm normally.
---
autoconf --version: 2.57 automake --verison: 1.6.3
***********configre.in***********************
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
#AC_PREREQ(2.57)
AC_INIT(main.cc)
AM_INIT_AUTOMAKE(main,1.0)
#AC_CONFIG_SRCDIR([main.cc])
AM_CONFIG_HEADER(config.h)
# Checks for programs.
AC_PROG_CXX
AC_PROG_CC
AC_PROG_INSTALL
# Checks for libraries.
dnl Replace `main' with a function in -le:
AC_CHECK_LIB(e, main)
dnl Replace `main' with a function in -links:
AC_CHECK_LIB(inks, main)
# Checks for header files.
# Checks for typedefs, structures, and compiler characteristics.
# Checks for library functions.
gtkmminclude="`pkg-config --cflags gtkmm-2.0`"
gtkmmlibs="`pkg-config --libs gtkmm-2.0`"
AC_SUBST(gtkmmlibs)
AC_SUBST(gtkmminclude)
#AC_CONFIG_FILES([Makefile])
AC_OUTPUT(Makefile)
*************Makefile.am*****************
include $(top_srcdir)/Makefile.am
AUTOMAKE_OPTIONS = foreign
#Build the executable, but don't install it.
noinst_PROGRAMS = example
example_SOURCES = examplewindow.h examplewindow.cc main.cc
Anyone could give a hint? Thanks.
Cheers,
Erming