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
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
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
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
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
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
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
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
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)
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