Sponsored Content
Top Forums Programming Dependencies problem GNU automake Post 302280875 by hembergb on Tuesday 27th of January 2009 05:45:29 PM
Old 01-27-2009
Dependencies problem GNU automake

I am using the GNU automake.

I have created the Configure.in and Makefile.am files but don't know how to link in my dependencies.

I have basically added another project (OpenCV) to my eclipse workspace and want to reference this in the build. I have set Eclipse up to include the Cpp files from the new project and this works fine but when I "make" my project it tells me that the files I have referenced from OpenCV are undefined.

The following is the error:

....../TestMain.cpp:14: undefined reference to `cvLoadImage'
....../TestMain.cpp:15: undefined reference to `cvNamedWindow'
....../TestMain.cpp:16: undefined reference to `cvShowImage'
....../TestMain.cpp:17: undefined reference to `cvWaitKey'
....../TestMain.cpp:18: undefined reference to `cvReleaseImage'
....../TestMain.cpp:19: undefined reference to `cvDestroyWindow'

The following is from the Configure.in file:

AC_INIT(TestMain.cpp)
AM_INIT_AUTOMAKE(TestMain, 1.0)
AM_CONFIG_HEADER(config.h:config.in)
AC_PROG_CC
AC_PROG_CXX
AC_OUTPUT(Makefile)

The following is from the Makefile.am file:

bin_PROGRAMS = TestMain
INCLUDES = $(DEPS_CFLAGS)
LDADD = $(DEPS_LIBS)
TestMain_SOURCES = TestMain.cpp

How do I reference the other projects files?

Any help would be appreciated

Thanks
Bret
 

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

automake

hi on machine automake 1.9 are install but i am not able create make file so please tell me what proper command to create make file using automake (1 Reply)
Discussion started by: munnu
1 Replies

2. Programming

automake/autoconf problem

hi, i'm fairly new with automake and i ran into a problem that i have found no solution for. so i have a setup where i don't want all the output files generated by the compiler and alike in my src directory, instead i created a build/unix folder and i have build/unix/config set for... (0 Replies)
Discussion started by: Akimaki
0 Replies

3. Programming

GNU GDB compile problem

I have to compile gnu-gdb 6.7 on HP-UX 11.11 with /usr/local/pa64/bin/gcc 64-bit compiler, but I'm having some problems during "make": ser-tcp.c: In function `net_open': ser-tcp.c:207: warning: passing arg 5 of `getsockopt' from incompatible pointer type make: *** Error 1 make: Leaving... (8 Replies)
Discussion started by: untamed
8 Replies

4. Linux

Help needed in dependencies problem in Fedora 8 VM

hi, I have installed a VM for Fedora 8 running on Windows Xp. And I have the following error:- Error: Missing Dependency: libgsl.so.0 is needed by package test Error: Missing Dependency: /usr/bin/gcc is needed by package test Error: Missing Dependency: libgslcblas.so.0 is needed by... (3 Replies)
Discussion started by: ahjiefreak
3 Replies

5. Red Hat

problem with Dependencies package !

Dear Friends , I am using RHEL 5 server . In Linux when I am going to install 'mod_ssl' rpm then I got the following error : # rpm -ivh mod_ssl-2.2.3-6.el5.i386.rpm --aid --force warning: mod_ssl-2.2.3-6.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186 error: Failed... (5 Replies)
Discussion started by: shipon_97
5 Replies

6. UNIX for Advanced & Expert Users

KDE Needs Automake >= 1.6.1 -- I have 1.11

Hi, I'm on Fedora-11-x86_64 with KDevelop 3.5.4. I have automake 1.11 installed, but when I attempt to run automake and friends on a new project I get: *** YOU'RE USING automake (GNU automake) 1.11 *** KDE requires automake 1.6.1 or newer I reported(KDevelop) the error Bug: 210084 ... (11 Replies)
Discussion started by: lucelio
11 Replies

7. Shell Programming and Scripting

automake does not create Makefile.in

hi all, I have written a simple C program hello.c and a Makefile.ac but when i try to run automake it does not create Makefile.in hence I am not able to run ./configure command in my directory. Following are the containts of my prog. hello.c -------- Code: #include<stdio.h> main() {... (0 Replies)
Discussion started by: useless79
0 Replies

8. Shell Programming and Scripting

using automake and autoconf with C++

hi, I have written the Makefile.am and autoconf.ac files and am looking to build my project by providing the following commands: $autoreconf -f -i -m $./configure both of the above work fine, but when I give the make command, I get the following error: make all-am make: Entering directory... (0 Replies)
Discussion started by: bacpp
0 Replies

9. OS X (Apple)

GNU Sed Problem

Hi, I'm and Android developer using Mac OSX 10.7. I use Dsixda's Android Kitchen to develop my roms. I had it working fine on 10.6.8 and it still worked flawlessly when updating to 10.7. I installed Macports, and installed some packages, and then tried to run the Android Kitchen. I CD'd to the... (3 Replies)
Discussion started by: dmeadows013
3 Replies
AUTOMAKE(1)							   User Commands						       AUTOMAKE(1)

NAME
automake - manual page for automake 1.15.1 SYNOPSIS
automake-1.15 [OPTION]... [Makefile]... DESCRIPTION
Generate Makefile.in for configure from Makefile.am. Operation modes: --help print this help, then exit --version print version number, then exit -v, --verbose verbosely list files processed --no-force only update Makefile.in's that are out of date -W, --warnings=CATEGORY report the warnings falling in CATEGORY Dependency tracking: -i, --ignore-deps disable dependency tracking code --include-deps enable dependency tracking code Flavors: --foreign set strictness to foreign --gnits set strictness to gnits --gnu set strictness to gnu Library files: -a, --add-missing add missing standard files to package --libdir=DIR set directory storing library files --print-libdir print directory storing library files -c, --copy with -a, copy missing files (default is symlink) -f, --force-missing force update of standard files Warning categories include: gnu GNU coding standards (default in gnu and gnits modes) obsolete obsolete features or constructions override user redefinitions of Automake rules or variables portability portability issues (default in gnu and gnits modes) extra-portability extra portability issues related to obscure tools syntax dubious syntactic constructs (default) unsupported unsupported or incomplete features (default) all all the warnings no-CATEGORY turn off warnings in CATEGORY none turn off all the warnings error treat warnings as errors Files automatically distributed if found (always): ABOUT-GNU INSTALL config.rpath ltconfig ABOUT-NLS NEWS config.sub ltmain.sh AUTHORS README depcomp mdate-sh BACKLOG THANKS install-sh missing COPYING TODO libversion.in mkinstalldirs COPYING.DOC ar-lib ltcf-c.sh py-compile COPYING.LESSER compile ltcf-cxx.sh texinfo.tex COPYING.LIB config.guess ltcf-gcj.sh ylwrap ChangeLog Files automatically distributed if found (under certain conditions): acconfig.h config.h.bot configure configure.in aclocal.m4 config.h.top configure.ac stamp-vti AUTHOR
Written by Tom Tromey <tromey@redhat.com> and Alexandre Duret-Lutz <adl@gnu.org>. REPORTING BUGS
Report bugs to <bug-automake@gnu.org>. GNU Automake home page: <http://www.gnu.org/software/automake/>. General help using GNU software: <http://www.gnu.org/gethelp/>. COPYRIGHT
Copyright (C) 2017 Free Software Foundation, Inc. License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl-2.0.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. SEE ALSO
The full documentation for automake is maintained as a Texinfo manual. If the info and automake programs are properly installed at your site, the command info automake should give you access to the complete manual. automake 1.15.1 March 2018 AUTOMAKE(1)
All times are GMT -4. The time now is 02:35 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy