2008-08-18 20:08:25     opencv for blackfin

Document created by Aaronwu Employee on Aug 7, 2013
Version 1Show Document
  • View in full screen mode

2008-08-18 20:08:25     opencv for blackfin

andy (UNITED STATES)

Message: 60605    I have gone through the previous threads regarding opencv. I followed the instructions. I get the following error. Am using uclinuxR2_RC2 and opencv version 1. The host is Mandriva distribution of linux.

 

cvhaartraining.cpp:(.text+0x4142): undefined reference to `_logf'

libcvhaartraining.a(cvboost.o): In function `icvFindStumpThreshold_entropy_32f(unsigned char*, unsigned long, unsigned char*, unsigned long, unsigned char*, unsigned long, unsigned char*, unsigned long, int, float*, float*, float*, float*, float*, float*, float*, float*)':

cvboost.cpp:(.text+0x4e18): undefined reference to `_logf'

cvboost.cpp:(.text+0x4e4a): undefined reference to `_logf'

cvboost.cpp:(.text+0x4e6c): undefined reference to `_logf'

cvboost.cpp:(.text+0x4e9e): undefined reference to `_logf'

libcvhaartraining.a(cvboost.o):cvboost.cpp:(.text+0x51a2): more undefined references to `_logf' follow

libcvhaartraining.a(cvboost.o): In function `icvBoostNextWeakClassifierGAB(CvMat*, CvMat*, CvMat*, CvMat*, CvBoostTrainer*)':

cvboost.cpp:(.text+0x5684): undefined reference to `_expf'

libcvhaartraining.a(cvboost.o): In function `icvResponsesAndWeightsLB(int, unsigned char*, int, unsigned char*, int, unsigned char*, int, unsigned char*, int, int*)':

cvboost.cpp:(.text+0x57f4): undefined reference to `_expf'

libcvhaartraining.a(cvboost.o): In function `icvZeroApproxLog(float*, CvBtTrainer*)':

cvboost.cpp:(.text+0x6886): undefined reference to `_logf'

libcvhaartraining.a(cvboost.o): In function `icvBoostNextWeakClassifierRAB(CvMat*, CvMat*, CvMat*, CvMat*, CvBoostTrainer*)':

cvboost.cpp:(.text+0x6910): undefined reference to `_logf'

cvboost.cpp:(.text+0x6926): undefined reference to `_expf'

libcvhaartraining.a(cvboost.o): In function `icvBoostNextWeakClassifierDAB(CvMat*, CvMat*, CvMat*, CvMat*, CvBoostTrainer*)':

cvboost.cpp:(.text+0x6baa): undefined reference to `_logf'

cvboost.cpp:(.text+0x6bd0): undefined reference to `_expf'

libcvhaartraining.a(cvboost.o): In function `icvBoostNextWeakClassifierLB(CvMat*, CvMat*, CvMat*, CvMat*, CvBoostTrainer*)':

cvboost.cpp:(.text+0x6e6e): undefined reference to `_expf'

libcvhaartraining.a(cvboost.o): In function `icvBoostStartTrainingLB(CvMat*, CvMat*, CvMat*, CvMat*, CvBoostType)':

cvboost.cpp:(.text+0x7132): undefined reference to `_expf'

libcvhaartraining.a(cvboost.o): In function `icvBtNext_XXBCLASS(CvCARTClassifier**, CvBtTrainer*)':

cvboost.cpp:(.text+0x7af0): undefined reference to `_logf'

collect2: ld returned 1 exit status

make[4]: *** [opencv-haartraining] Error 1

make[4]: Leaving directory `/home/arvind/Desktop/opencv-1.0.0/apps/haartraining/src'

make[3]: *** [all-recursive] Error 1

make[3]: Leaving directory `/home/arvind/Desktop/opencv-1.0.0/apps/haartraining'

make[2]: *** [all-recursive] Error 1

make[2]: Leaving directory `/home/arvind/Desktop/opencv-1.0.0/apps'

make[1]: *** [all-recursive] Error 1

make[1]: Leaving directory `/home/arvind/Desktop/opencv-1.0.0'

make: *** [all] Error 2

 

Also upon ./configure --build=i686-pc-linux-gnu --host=bfin-uclinux i get the following message:

 

General configuration ================================================ Compiler: bfin-uclinux-g++ CXXFLAGS: -Wall -fno-rtti -pipe -O3 -fomit-frame-pointer Install path: /usr/local HighGUI configuration ================================================ Windowing system -------------- Use Carbon / Mac OS X: no Use gtk+ 2.x: no Use gthread: no Image I/O --------------------- Use libjpeg: no Use zlib: no Use libpng: no Use libtiff: no Use libjasper: no Use libIlmImf: no Video I/O --------------------- Use QuickTime / Mac OS X: no Use xine: no Use ffmpeg: no Use dc1394 & raw1394: no Use v4l: yes Use v4l2: yes Wrappers for other languages ========================================= SWIG Python no Additional build settings ============================================ Build demo apps yes Now run make ...

The INSTALL file from opencv says that I should have the following stuff: libpng, zlib, libjpeg, libtiff, libjasper with development files. + Python 2.3, 2.4 or 2.5 with headers installed (developer package) + libavcodec, etc. from ffmpeg 0.4.9-pre1 or later + headers. Earlier versions do not work with OpenCV because of different API. libavcodec is LGPL software, so to use it with non-GPL software (such as OpenCV) you need to build and use a _shared_ library libavcodec.so.*: get ffmpeg from ffmpeg.sourceforge.net I guess the error message might be cos I dont have all the libraries. Would I have to get these libraries for the host machine or for uclinux and have it compiled for uclinux before I compile uclinux?

QuoteReplyEditDelete

 

 

2008-08-18 20:45:46     Re: opencv for blackfin

Mike Frysinger (UNITED STATES)

Message: 60607   

 

you should be using the latest release (2008R1.5), not an old one (2006R2)

QuoteReplyEditDelete

 

 

2008-08-18 20:49:57     Re: opencv for blackfin

andy (UNITED STATES)

Message: 60608   

 

The problem is that am using a particular hardware for which the last stable release was 2006R2. Hence I need opencv to be compiled for this kernel. Is there any other solution?

QuoteReplyEditDelete

 

 

2008-08-18 20:57:51     Re: opencv for blackfin

Mike Frysinger (UNITED STATES)

Message: 60609   

 

feel free to hack the sources.  things have already been fixed in 2008R1.5.

 

andy (UNITED STATES)

2008-08-18 20:08:25     opencv for blackfin

andy (UNITED STATES)

Message: 60605    I have gone through the previous threads regarding opencv. I followed the instructions. I get the following error. Am using uclinuxR2_RC2 and opencv version 1. The host is Mandriva distribution of linux.

 

cvhaartraining.cpp:(.text+0x4142): undefined reference to `_logf'

libcvhaartraining.a(cvboost.o): In function `icvFindStumpThreshold_entropy_32f(unsigned char*, unsigned long, unsigned char*, unsigned long, unsigned char*, unsigned long, unsigned char*, unsigned long, int, float*, float*, float*, float*, float*, float*, float*, float*)':

cvboost.cpp:(.text+0x4e18): undefined reference to `_logf'

cvboost.cpp:(.text+0x4e4a): undefined reference to `_logf'

cvboost.cpp:(.text+0x4e6c): undefined reference to `_logf'

cvboost.cpp:(.text+0x4e9e): undefined reference to `_logf'

libcvhaartraining.a(cvboost.o):cvboost.cpp:(.text+0x51a2): more undefined references to `_logf' follow

libcvhaartraining.a(cvboost.o): In function `icvBoostNextWeakClassifierGAB(CvMat*, CvMat*, CvMat*, CvMat*, CvBoostTrainer*)':

cvboost.cpp:(.text+0x5684): undefined reference to `_expf'

libcvhaartraining.a(cvboost.o): In function `icvResponsesAndWeightsLB(int, unsigned char*, int, unsigned char*, int, unsigned char*, int, unsigned char*, int, int*)':

cvboost.cpp:(.text+0x57f4): undefined reference to `_expf'

libcvhaartraining.a(cvboost.o): In function `icvZeroApproxLog(float*, CvBtTrainer*)':

cvboost.cpp:(.text+0x6886): undefined reference to `_logf'

libcvhaartraining.a(cvboost.o): In function `icvBoostNextWeakClassifierRAB(CvMat*, CvMat*, CvMat*, CvMat*, CvBoostTrainer*)':

cvboost.cpp:(.text+0x6910): undefined reference to `_logf'

cvboost.cpp:(.text+0x6926): undefined reference to `_expf'

libcvhaartraining.a(cvboost.o): In function `icvBoostNextWeakClassifierDAB(CvMat*, CvMat*, CvMat*, CvMat*, CvBoostTrainer*)':

cvboost.cpp:(.text+0x6baa): undefined reference to `_logf'

cvboost.cpp:(.text+0x6bd0): undefined reference to `_expf'

libcvhaartraining.a(cvboost.o): In function `icvBoostNextWeakClassifierLB(CvMat*, CvMat*, CvMat*, CvMat*, CvBoostTrainer*)':

cvboost.cpp:(.text+0x6e6e): undefined reference to `_expf'

libcvhaartraining.a(cvboost.o): In function `icvBoostStartTrainingLB(CvMat*, CvMat*, CvMat*, CvMat*, CvBoostType)':

cvboost.cpp:(.text+0x7132): undefined reference to `_expf'

libcvhaartraining.a(cvboost.o): In function `icvBtNext_XXBCLASS(CvCARTClassifier**, CvBtTrainer*)':

cvboost.cpp:(.text+0x7af0): undefined reference to `_logf'

collect2: ld returned 1 exit status

make[4]: *** [opencv-haartraining] Error 1

make[4]: Leaving directory `/home/arvind/Desktop/opencv-1.0.0/apps/haartraining/src'

make[3]: *** [all-recursive] Error 1

make[3]: Leaving directory `/home/arvind/Desktop/opencv-1.0.0/apps/haartraining'

make[2]: *** [all-recursive] Error 1

make[2]: Leaving directory `/home/arvind/Desktop/opencv-1.0.0/apps'

make[1]: *** [all-recursive] Error 1

make[1]: Leaving directory `/home/arvind/Desktop/opencv-1.0.0'

make: *** [all] Error 2

 

Also upon ./configure --build=i686-pc-linux-gnu --host=bfin-uclinux i get the following message:

 

General configuration ================================================ Compiler: bfin-uclinux-g++ CXXFLAGS: -Wall -fno-rtti -pipe -O3 -fomit-frame-pointer Install path: /usr/local HighGUI configuration ================================================ Windowing system -------------- Use Carbon / Mac OS X: no Use gtk+ 2.x: no Use gthread: no Image I/O --------------------- Use libjpeg: no Use zlib: no Use libpng: no Use libtiff: no Use libjasper: no Use libIlmImf: no Video I/O --------------------- Use QuickTime / Mac OS X: no Use xine: no Use ffmpeg: no Use dc1394 & raw1394: no Use v4l: yes Use v4l2: yes Wrappers for other languages ========================================= SWIG Python no Additional build settings ============================================ Build demo apps yes Now run make ...

The INSTALL file from opencv says that I should have the following stuff: libpng, zlib, libjpeg, libtiff, libjasper with development files. + Python 2.3, 2.4 or 2.5 with headers installed (developer package) + libavcodec, etc. from ffmpeg 0.4.9-pre1 or later + headers. Earlier versions do not work with OpenCV because of different API. libavcodec is LGPL software, so to use it with non-GPL software (such as OpenCV) you need to build and use a _shared_ library libavcodec.so.*: get ffmpeg from ffmpeg.sourceforge.net I guess the error message might be cos I dont have all the libraries. Would I have to get these libraries for the host machine or for uclinux and have it compiled for uclinux before I compile uclinux?

QuoteReplyEditDelete

 

 

2008-08-18 20:45:46     Re: opencv for blackfin

Mike Frysinger (UNITED STATES)

Message: 60607   

 

you should be using the latest release (2008R1.5), not an old one (2006R2)

QuoteReplyEditDelete

 

 

2008-08-18 20:49:57     Re: opencv for blackfin

andy (UNITED STATES)

Message: 60608   

 

The problem is that am using a particular hardware for which the last stable release was 2006R2. Hence I need opencv to be compiled for this kernel. Is there any other solution?

QuoteReplyEditDelete

 

 

2008-08-18 20:57:51     Re: opencv for blackfin

Mike Frysinger (UNITED STATES)

Message: 60609   

 

feel free to hack the sources.  things have already been fixed in 2008R1.5.

Attachments

    Outcomes