automake
[Top][All Lists]
Advanced

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

Problem with automake


From: Erming Pei
Subject: Problem with automake
Date: Wed, 12 Apr 2006 15:07:45 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.1) Gecko/20060130 SeaMonkey/1.0

Hi,
Sorry to bother. I tried to use automake to generate Makefile. But it kept reports as following:
address@hidden gtkmm]$ aclocal;autoconf
address@hidden 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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]