I just followed the guideline of Money, a step by step example, to create my own example in package cppunit-1.10.2 in Linux RH 9 (2.4.18) but failed to compile
**No rule to make target 'src/cppunit/libcppunit.la', needed by ...
here are the guidelines
We'll use autoconf and automake to make it simple to create our build environment. Create a directory somewhere to hold the code we're going to build. Create configure.in and Makefile.am in that directory to get started.
configure.in
dnl Process this file with autoconf to produce a configure script.
AC_INIT(Makefile.am)
AM_INIT_AUTOMAKE(money,0.1)
AM_PATH_CPPUNIT(1.9.6)
AC_PROG_CXX
AC_PROG_CC
AC_PROG_INSTALL
AC_OUTPUT(Makefile)
Makefile.am
# Rules for the test code (use `make check` to execute)
TESTS = MoneyApp
check_PROGRAMS = $(TESTS)
MoneyApp_SOURCES = Money.h MoneyTest.h MoneyTest.cpp MoneyApp.cpp
MoneyApp_CXXFLAGS = $(CPPUNIT_CFLAGS)
MoneyApp_LDFLAGS = $(CPPUNIT_LIBS)
MoneyApp_LDFLAGS = -ldl
touch Money.h MoneyTest.h MoneyTest.cpp
aclocal -I /usr/local/share/aclocal
autoconf
automake -a
touch NEWS README AUTHORS ChangeLog # To make automake happy
./configure
make check
thanks a million for any help
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I just followed the guideline of Money, a step by step example, to create my own example in package cppunit-1.10.2 in Linux RH 9 (2.4.18) but failed to compile
**No rule to make target 'src/cppunit/libcppunit.la', needed by ...
here are the guidelines
We'll use autoconf and automake to make it simple to create our build environment. Create a directory somewhere to hold the code we're going to build. Create configure.in and Makefile.am in that directory to get started.
configure.in
dnl Process this file with autoconf to produce a configure script.
AC_INIT(Makefile.am)
AM_INIT_AUTOMAKE(money,0.1)
AM_PATH_CPPUNIT(1.9.6)
AC_PROG_CXX
AC_PROG_CC
AC_PROG_INSTALL
AC_OUTPUT(Makefile)
Makefile.am
# Rules for the test code (use `make check` to execute)
TESTS = MoneyApp
check_PROGRAMS = $(TESTS)
MoneyApp_SOURCES = Money.h MoneyTest.h MoneyTest.cpp MoneyApp.cpp
MoneyApp_CXXFLAGS = $(CPPUNIT_CFLAGS)
MoneyApp_LDFLAGS = $(CPPUNIT_LIBS)
MoneyApp_LDFLAGS = -ldl
touch Money.h MoneyTest.h MoneyTest.cpp
aclocal -I /usr/local/share/aclocal
autoconf
automake -a
touch NEWS README AUTHORS ChangeLog # To make automake happy
./configure
make check
thanks a million for any help
Don't know much about the unix side of thing, but did you build and install cppunit ? It sound like 'make' does not find the library.
Baptiste. --CppUnit maintainer.