Menu

No rule to make target (newbies) problem

Help
willbe2k5
2005-07-11
2013-04-22
  • willbe2k5

    willbe2k5 - 2005-07-11

    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

     
    • Baptiste Lepilleur

      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.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.