bug-gsl
[Top][All Lists]
Advanced

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

[Bug-gsl] Dear Teacher, I have a problem with GSL, if you have free time


From: Fu Changhong
Subject: [Bug-gsl] Dear Teacher, I have a problem with GSL, if you have free time, please help me!
Date: Tue, 17 Jan 2012 02:46:44 -0800 (PST)

Dear Teacher:
>         I am sorry to trouble you, but I eager to use the GSL in my research, 
>I had installed the gsl-1.15, and the command window also show that the 
>library has been installed successfully! But 
when I "make" my codes, some errors has been shown, the 
following content is the error, I want to use it with OpenCV together, I always 
use the OpenCV, so I think it 
is not the problem with the OpenCV, have you encounter the same error 
before, I think you could help me, thank you!!
> 
>address@hidden:~/Desktop/track$ make
>make -C ./src all
>make[1]: Entering directory `/home/fu/Desktop/track/src'
>gcc -O3 -I../include `pkg-config --cflags opencv` `pkg-config --cflags gsl` -c 
>observation.c -o observation.o
>gcc -O3 -I../include `pkg-config --cflags opencv` `pkg-config --cflags gsl` -c 
>utils.c -o utils.o
>gcc -O3 -I../include `pkg-config --cflags opencv` `pkg-config --cflags gsl` -c 
>particles.c -o particles.o
>particles.c: In function ‘resample’:
>particles.c:157:3: warning: passing argument 4 of ‘qsort’ from incompatible 
>pointer type [enabled by default]
>/usr/include/stdlib.h:761:13: note: expected ‘__compar_fn_t’ but argument is 
>of type ‘int (*)(void *, void *)’
>make[1]: Leaving directory `/home/fu/Desktop/track/src'
>make -C ./bin all
>make[1]: Entering directory `/home/fu/Desktop/track/bin'
>make -C ../src
 all
>make[2]: Entering directory `/home/fu/Desktop/track/src'
>make[2]: Nothing to be done for `all'.
>make[2]: Leaving directory `/home/fu/Desktop/track/src'
>gcc
 -O3 -I../include `pkg-config --cflags opencv` `pkg-config --cflags gsl`
 `pkg-config --libs opencv` `pkg-config --libs gsl` ../src/observation.o
 ../src/utils.o ../src/observe.c -o observe
>/tmp/cctSW8s8.o: In function `arg_parse':
>observe.c:(.text+0x160): undefined reference to `cvLoadImage'
>observe.c:(.text+0x1d4): undefined reference to `cvLoadImage'
>/tmp/cctSW8s8.o: In function `main':
>observe.c:(.text.startup+0xf9): undefined reference to `cvMinMaxLoc'
>observe.c:(.text.startup+0x101): undefined reference to `cvGetSize'
>observe.c:(.text.startup+0x113): undefined reference to `cvCreateImage'
>observe.c:(.text.startup+0x133): undefined reference to `cvConvertScale'
>observe.c:(.text.startup+0x142): undefined reference to
 `cvNamedWindow'
>observe.c:(.text.startup+0x14f): undefined reference to `cvShowImage'
>observe.c:(.text.startup+0x15e): undefined reference to `cvNamedWindow'
>observe.c:(.text.startup+0x16f): undefined reference to `cvShowImage'
>observe.c:(.text.startup+0x176): undefined reference to `cvWaitKey'
>../src/observation.o: In function `bgr2hsv':
>observation.c:(.text+0xa): undefined reference to `cvGetSize'
>observation.c:(.text+0x1c): undefined reference to `cvCreateImage'
>observation.c:(.text+0x29): undefined reference to `cvGetSize'
>observation.c:(.text+0x3b): undefined reference to `cvCreateImage'
>observation.c:(.text+0x57): undefined reference to `cvConvertScale'
>observation.c:(.text+0x69): undefined reference to `cvCvtColor'
>observation.c:(.text+0x73): undefined reference to `cvReleaseImage'
>../src/observation.o: In function `calc_histogram':
>observation.c:(.text+0x16d): undefined reference to
 `cvGetSize'
>observation.c:(.text+0x17f): undefined reference to `cvCreateImage'
>observation.c:(.text+0x18c): undefined reference to `cvGetSize'
>observation.c:(.text+0x19e): undefined reference to `cvCreateImage'
>observation.c:(.text+0x1ab): undefined reference to `cvGetSize'
>observation.c:(.text+0x1bd): undefined reference to `cvCreateImage'
>observation.c:(.text+0x1da): undefined reference to `cvSplit'
>observation.c:(.text+0x32c): undefined reference to `cvReleaseImage'
>observation.c:(.text+0x336): undefined reference to `cvReleaseImage'
>observation.c:(.text+0x340): undefined reference to `cvReleaseImage'
>../src/observation.o: In function `histo_dist_sq':
>observation.c:(.text+0x500): undefined reference to `sqrt'
>../src/observation.o: In function `likelihood':
>observation.c:(.text+0x578): undefined reference to `cvSetImageROI'
>observation.c:(.text+0x580): undefined reference to
 `cvGetSize'
>observation.c:(.text+0x592): undefined reference to `cvCreateImage'
>observation.c:(.text+0x5a4): undefined reference to `cvCopy'
>observation.c:(.text+0x5ac): undefined reference to `cvResetImageROI'
>observation.c:(.text+0x5dd): undefined reference to `cvGetSize'
>observation.c:(.text+0x5ef): undefined reference to `cvCreateImage'
>observation.c:(.text+0x5fc): undefined reference to `cvGetSize'
>observation.c:(.text+0x60e): undefined reference to `cvCreateImage'
>observation.c:(.text+0x61b): undefined reference to `cvGetSize'
>observation.c:(.text+0x62d): undefined reference to `cvCreateImage'
>observation.c:(.text+0x64a): undefined reference to `cvSplit'
>observation.c:(.text+0x788): undefined reference to `cvReleaseImage'
>observation.c:(.text+0x792): undefined reference to `cvReleaseImage'
>observation.c:(.text+0x79c): undefined reference to `cvReleaseImage'
>observation.c:(.text+0x7a6): undefined reference
 to `cvReleaseImage'
>observation.c:(.text+0x92f): undefined reference to `exp'
>observation.c:(.text+0x956): undefined reference to `sqrt'
>../src/observation.o: In function `likelihood_image':
>observation.c:(.text+0x98c): undefined reference to `cvGetSize'
>observation.c:(.text+0x99e): undefined reference to `cvCreateImage'
>observation.c:(.text+0xa03): undefined reference to `cvSum'
>observation.c:(.text+0xa20): undefined reference to `cvConvertScale'
>../src/utils.o: In function `draw_x':
>utils.c:(.text+0x461): undefined reference to `cvLine'   
>utils.c:(.text+0x4ab): undefined reference to `cvLine'
>utils.c:(.text+0x507): undefined reference to `cvLine'
>utils.c:(.text+0x551): undefined reference to `cvLine'
>collect2: ld returned 1 exit status
>make[1]: *** [observe] Error 1
>make[1]: Leaving directory `/home/fu/Desktop/track/bin'
>make: *** [bin] Error 2
> 
> 
>PS: I am using the Linux (Ubuntu 11.04), and installed the OpenCV-2.3.1 based 
>on the http://ozbots.org/opencv-installation/ and installed the gsl based on 
>instructions in the "install" file which in the gsl fold. 
> 
>Best wishes!! 
>
>Fu Changhong
>
>
>
> 
>Fu Changhong 
>


reply via email to

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