Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » "undefined symbol" when building jni shared library
"undefined symbol" when building jni shared library [message #216410] Thu, 22 May 2008 21:35
Eclipse UserFriend
I am trying to wrap a few calls to the openCV library with a C shared
library (libfacedetect.so), but when I try and run, I get a message.
/usr/local/lib/libfacedetect.so: undefined symbol:
cvReleaseHaarClassifierCascade

using nm libfacedetect.so I see the symbols are undefined
nm libfacedetect.a

com_imprezzeo_cbir_feature_extractor_FIExtractor.o:
00000032 T
Java_com_imprezzeo_cbir_feature_extractor_FIExtractor_detect Faces
000002fe T
Java_com_imprezzeo_cbir_feature_extractor_FIExtractor_initFa ceDetect
00000000 T
Java_com_imprezzeo_cbir_feature_extractor_FIExtractor_unload FaceDetect
00000000 W _Z6cvSizeii
00000000 W _ZN7JNIEnv_11NewIntArrayEi
00000000 W _ZN7JNIEnv_14GetObjectClassEP8_jobject
00000000 W _ZN7JNIEnv_14NewObjectArrayEiP7_jclassP8_jobject
00000000 W _ZN7JNIEnv_17GetStringUTFCharsEP8_jstringPh
00000000 W _ZN7JNIEnv_17SetIntArrayRegionEP10_jintArrayiiPKi
00000000 W _ZN7JNIEnv_19GetIntArrayElementsEP10_jintArrayPh
00000000 W _ZN7JNIEnv_21SetObjectArrayElementEP13_jobjectArrayiP8_jobje ct
U __gxx_personality_v0
00000004 B cascade
00000008 B cascade_name
U cvClearMemStorage
U cvCreateImage
U cvCreateMemStorage
U cvGetSeqElem
U cvHaarDetectObjects
U cvLoad
U cvReleaseHaarClassifierCascade
U cvReleaseImage
U cvReleaseMemStorage
00000018 B face_min_neighbors
00000020 B face_min_size_height
0000001c B face_min_size_width
00000010 B face_scale_factor
U memcpy
U printf
00000000 B storage


I have both the libfacedetect.so and the libcv.so in /usr/local/lib.

How do I get my project to link to the correct library.
Previous Topic:Re: Calling c++ dll within my eclipse plugin
Next Topic:Using build variables
Goto Forum:
  


Current Time: Thu May 08 23:53:12 EDT 2025

Powered by FUDForum. Page generated in 0.06610 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top