2013-03-23 10 views
5

Ich installierte opencv mit statischem Linking auf Pandaboard mit der Option BUILD_SHARED_LIBS = 0. Ich benutze Ubuntu 11.10. Ich baute auch 3rd-Party-Bibliotheken png, jpeg, jasper und zlib. (cmake-Optionen BUILD_PNG = EIN BUILD_JASPER = EIN BUILD_JPEG = EIN BUILD_ZLIB = EIN WITH_JPEG = ON WITH_PNG = ON WITH_JASPER = ON). Meine opencv Installation war erfolgreich. Wenn ich jedoch ein Testprogramm kompiliere, bekomme ich eine Anzahl von undefinierten Verweisen auf Fehler. All diese Fehler scheinen mit jpeg-, png- und jasper-Bibliotheken zusammenzuhängen, aber ich kann nicht verstehen, warum libhighgui nicht auf Bibliotheken von Drittanbietern verweisen kann, wenn ich sie explizit verlinke. Hier ist, wie ich mein Programm zusammenstellen:Probleme mit OpenCV-Kompilierung mit statischem Link auf Pandaboard

g++ -static face_recognition.cpp -o fcarm -I/home/nandhini/opencv/2.4.2static/include/opencv -I/home/nandhini/opencv/2.4.2static/include -L/home/nandhini/opencv/2.4.2static/lib/ -L/home/nandhini/opencv/2.4.2static/share/OpenCV/3rdparty/lib -llibjpeg -llibjasper -llibpng -lzlib -lopencv_core -lopencv_contrib -lopencv_imgproc -lopencv_highgui -lopencv_ml -lopencv_video -lopencv_features2d -lopencv_calib3d -lopencv_objdetect -lopencv_flann -lopencv_photo -lopencv_legacy -pthread -lm -lrt -lstdc++ -ldl

Ich habe jetzt mit diesem Problem für eine lange Zeit stecken geblieben, und ich würde es wirklich schätzen, wenn jemand kann mir helfen, das Problem zu lösen. Bitte helfen Sie, danke! Hier

ist eine Liste meiner Fehler:

/home/nandhini/opencv/2.4.2static/lib//libopencv_core.a(persistence.cpp.o): In function icvGets (CvFileStorage *, char *, int) ': persistence.cpp :(text._ZL7icvGetsP13CvFileStoragePci + 0x7e.): Undefined reference to gzgets' /home/nandhini/opencv/2.4.2static/lib//libopencv_core.a(persistence.cpp.o): In function _ZL16icvYMLSkipSpacesP13CvFileStoragePcii.constprop .61 ': persistence.cpp :(text._ZL16icvYMLSkipSpacesP13CvFileStoragePcii.constprop.61 0x11e +):. undefinierter Bezug auf gzeof' /home/nandhini/opencv/2.4.2static/lib//libopencv_core.a(persistence.cpp.o): In function icvPuts (CvFileStorage *, char * const)':. persistence.cpp :(text._ZL7icvPutsP13CvFileStoragePKc + 0x138) : undefinierter Verweis auf gzputs' /home/nandhini/opencv/2.4.2static/lib//libopencv_core.a(persistence.cpp.o): In function icvXMLSkipSpaces (CvFileStorage *, Zeichen *, Int) ': persistence.cpp :(. text._ZL16icv XMLSkipSpacesP13CvFileStoragePci + 0x1a2): undefined Verweis auf gzeof' /home/nandhini/opencv/2.4.2static/lib//libopencv_core.a(persistence.cpp.o): In function icvClose (CvFileStorage *, std :: basic_string, std :: Allocator> *) ':. persistence.cpp :(text._ZL8icvCloseP13CvFileStoragePSs + 0x132): undefined Verweis auf gzclose' /home/nandhini/opencv/2.4.2static/lib//libopencv_core.a(persistence.cpp.o): In function cvOpenFileStorage': persistence.cpp :(text.cvOpenFileStorage 0x1b0 +):. undefinierten Bezug auf gzrewind' persistence.cpp:(.text.cvOpenFileStorage+0x6b6): undefined reference to gzclose ' persistence.cpp :(text.cvOpenFileStorage + 0x734). undefinierten Bezug auf gzopen' persistence.cpp:(.text.cvOpenFileStorage+0xcd4): undefined reference to gzclose' /home/nandhini/opencv/2.4.2static /lib//libopencv_highgui.a(grfmt_jpeg2000.cpp.o): In Funktion cv::JasperInitializer::~JasperInitializer()': grfmt_jpeg2000.cpp:(.text._ZN2cv17JasperInitializerD2Ev[_ZN2cv17JasperInitializerD5Ev]+0x4): undefined reference to jas_cleanup‘ /home/nandhini/opencv/2.4.2static/lib//libopencv_highgui.a(grfmt_jpeg2000.cpp.o): In Funktion cv::Jpeg2KDecoder::close()': grfmt_jpeg2000.cpp:(.text._ZN2cv13Jpeg2KDecoder5closeEv+0x8): undefined reference to jas_stream_close ' grfmt_jp eg2000.cpp :(text._ZN2cv13Jpeg2KDecoder5closeEv + 0x14). undefiniert Bezug auf jas_image_destroy' /home/nandhini/opencv/2.4.2static/lib//libopencv_highgui.a(grfmt_jpeg2000.cpp.o): In function cv :: :: Jpeg2KDecoder readHeader() ': grfmt_jpeg2000.cpp :(text._ZN2cv13Jpeg2KDecoder10readHeaderEv 0xE +):. undefinierten Bezug auf jas_stream_fopen' grfmt_jpeg2000.cpp:(.text._ZN2cv13Jpeg2KDecoder10readHeaderEv+0x1e): undefined reference to jas_image_decode' /home/Nandhini/opencv/2.4.2static/lib // libopencv_highgui.a (grfmt_jpeg2000.cpp.o): In Funktion cv::Jpeg2KDecoder::readData(cv::Mat&)': grfmt_jpeg2000.cpp:(.text._ZN2cv13Jpeg2KDecoder8readDataERNS_3MatE+0x5c): undefined reference to jas_image_getcmptbytype ' grfmt_jpeg2000.cpp :(text._ZN2cv13Jpeg2KDecoder8readDataERNS_3MatE + 0x68):. undefined reference to jas_image_getcmptbytype' grfmt_jpeg2000.cpp:(.text._ZN2cv13Jpeg2KDecoder8readDataERNS_3MatE+0x74): undefined reference to jas_image_getcmptbytype' grfmt_jpeg2000.cpp :(text._ZN2cv13Jpeg2KDecoder8readDataERNS_3MatE 0xB8 +):. undefiniert Bezugnahme auf jas_image_getcmptbytype' grfmt_jpeg2000.cpp:(.text._ZN2cv13Jpeg2KDecoder8readDataERNS_3MatE+0x126): undefined reference to jas_matrix_create‘ grfmt_jpeg2000.cpp :(text._ZN2cv13Jpeg2KDecoder8readDataERNS_3MatE 0x13e +):. undefinierten Bezug auf.210 jas_matrix_destroy ' grfmt_jpeg2000.cpp :(text._ZN2cv13Jpeg2KDecoder8readDataERNS_3MatE + 0x184). Undefinierter Bezug auf jas_cmprof_createfromclrspc' grfmt_jpeg2000.cpp:(.text._ZN2cv13Jpeg2KDecoder8readDataERNS_3MatE+0x194): undefined reference to jas_image_chclrspc' grfmt_jpeg2000.cpp :(text._ZN2cv13Jpeg2KDecoder8readDataERNS_3MatE 0x1a2 +):. Undefinierten Bezug auf jas_image_destroy' grfmt_jpeg2000.cpp:(.text._ZN2cv13Jpeg2KDecoder8readDataERNS_3MatE+0x1ac): undefined reference to jas_cmprof_destroy‘ grfmt_jpeg2000.cpp :(. text._ZN2cv13Jpeg2KDecoder8readDataERNS_3Mate + 0x220): undefinierter Verweis auf jas_cmprof_destroy' /home/nandhini/opencv/2.4.2static/lib//libopencv_highgui.a(grfmt_jpeg2000.cpp.o): In function cv :: Jpeg2KEncoder :: writeComponent8u (void *, cv :: Mat const &) ': grfmt_jpeg2000.cpp :(Text._ZN2cv13Jpeg2KEncoder16writeComponent8uEPvRKNS_3MatE + 0x1c): undefined reference to jas_matrix_create' grfmt_jpeg2000.cpp:(.text._ZN2cv13Jpeg2KEncoder16writeComponent8uEPvRKNS_3MatE+0x86): undefined reference to jas_image_writecmpt ' grfmt_jpeg2000.cpp :(text._ZN2cv13Jpeg2KEncoder16writeComponent8uEPvRKNS_3MatE + 0xa0.): Undefined reference to jas_matrix_destroy' /home/nandhini/opencv/2.4.2static/lib//libopencv_highgui.a(grfmt_jpeg2000.cpp.o): In function cv :: Jpeg2KEncoder :: writeComponent16u (void *, cv :: Mat const &)': . grfmt_jpeg2000.cpp :(text._ZN2cv13Jpeg2KEncoder17writeComponent16uEPvRKNS_3MatE + 0x1c): undefined reference to jas_matrix_create' grfmt_jpeg2000.cpp:(.text._ZN2cv13Jpeg2KEncoder17writeComponent16uEPvRKNS_3MatE+0x86): undefined reference to jas_image_writecmpt‘ grfmt_jpeg2000.cpp :(text._ZN2cv13Jpeg2KEncoder17writeComponent16uEPvRKNS_3MatE + 0xa0.): undefined reference to jas_matrix_destroy' /home/nandhini/opencv/2.4.2static/lib//libopencv_highgui.a(grfmt_jpeg2000.cpp.o): In function cv :: Jpeg2KEncoder :: write (cv :: Mat const &, std :: vektor> const &) ': grfmt_jpeg2000.cpp :(. Text._ZN2cv13Jpeg2KEncoder5writeERKNS_3MatERKSt6vectorIiS aIiEE 0x5a +): undefined Bezug auf jas_image_create' grfmt_jpeg2000.cpp:(.text._ZN2cv13Jpeg2KEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE+0x8c): undefined reference to jas_image_destroy ' grfmt_jpeg2000.cpp :(text._ZN2cv13Jpeg2KEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE 0xBE +):. undefinierten Bezug auf jas_stream_fopen' grfmt_jpeg2000.cpp:(.text._ZN2cv13Jpeg2KEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE+0xcc): undefined reference to jas_image_strtofmt' grfmt_jpeg2000.cpp :(text._ZN2cv13Jpeg2KEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE 0xda +):. undefinierten Bezug auf jas_image_encode' grfmt_jpeg2000.cpp:(.text._ZN2cv13Jpeg2KEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE+0xe8): undefined reference to jas_stream_close ' /home/nandhini/opencv/2.4.2static/lib//libopencv_highgui.a(grfmt_jpeg2000.cpp.o): In der Funktion _GLOBAL__sub_I_grfmt_jpeg2000.cpp': grfmt_jpeg2000.cpp:(.text.startup._GLOBAL__sub_I_grfmt_jpeg2000.cpp+0x2): undefined reference to jas_init' /home/nandhini/opencv/2.4.2static/lib//libopencv_imgproc.a (templmatch.cpp.o): In Funktion cv::crossCorr(cv::Mat const&, cv::Mat const&, cv::Mat&, cv::Size_<int>, int, cv::Point_<int>, double, int)': templmatch.cpp:(.text._ZN2cv9crossCorrERKNS_3MatES2_RS0_NS_5Size_IiEEiNS_6Point_IiEEdi+0x318): undefined reference to cv :: getOptimalDFTSize (int)‘ templmatch.cpp :(text._ZN2cv9crossCorrERKNS_3MatES2_RS0_NS_5Size_IiEEiNS_6Point_IiEEdi 0x33c +):. undefinierten Bezug auf cv::getOptimalDFTSize(int)' templmatch.cpp:(.text._ZN2cv9crossCorrERKNS_3MatES2_RS0_NS_5Size_IiEEiNS_6Point_IiEEdi+0x7c4): undefined reference to cv: : Dft (cv :: _ InputArray const &, cv :: _ Output const &, int, int)‘ templmatch.cpp :(text._ZN2cv9crossCorrERKNS_3MatES2_RS0_NS_5Size_IiEEiNS_6Point_IiEEdi 0xefc +):. Undefinierten Bezug auf cv::dft(cv::_InputArray const&, cv::_OutputArray const&, int, int)' templmatch.cpp:(.text._ZN2cv9crossCorrERKNS_3MatES2_RS0_NS_5Size_IiEEiNS_6Point_IiEEdi+0xf66): undefined reference to cv :: mulSpectrums (cv :: _ InputArray const &, cv :: _ InputArray const &, cv :: _ Output const &, int, bool)‘ templmatch.cpp :(text._ZN2cv9crossCorrERKNS_3MatES2_RS0_NS_5Size_IiEEiNS_6Point_IiEEdi + 0xf8e.): undefined reference to cv::dft(cv::_InputArray const&, cv::_OutputArray const&, int, int)' /home/nandhini/opencv/2.4.2static/lib//libopencv_highgui.a(grfmt_png.cpp.o): In function cv :: PngDecoder :: readDataFromBuf (void *, unsigned Zeichen *, unsigned int) ': grfmt_png.cpp: (. text._ZN2cv10PngDecoder15readDataFromBufEPvPhj + 0xc): undefinierter Verweis auf png_get_io_ptr' grfmt_png.cpp:(.text._ZN2cv10PngDecoder15readDataFromBufEPvPhj+0x10a): undefined reference to png_error' /home/nandhini/opencv/2.4.2static/lib// libopencv_highgui.a (grfmt_png.cpp.o): In Funktion cv::PngDecoder::close()': grfmt_png.cpp:(.text._ZN2cv10PngDecoder5closeEv+0x26): undefined reference to png_destroy_read_struct ' /home/nandhini/opencv/2.4.2static/lib//libopencv_highgui.a(grfmt_png.cpp.o): In Funktion cv::PngDecoder::readHeader()': grfmt_png.cpp:(.text._ZN2cv10PngDecoder10readHeaderEv+0x18): undefined reference to png_create_read_struct' grfmt_png. CPP :(text._ZN2cv10PngDecoder10readHeaderEv + 0x22). undefinierter Bezug auf png_create_info_struct' grfmt_png.cpp:(.text._ZN2cv10PngDecoder10readHeaderEv+0x2a): undefined reference to png_create_info_struct ' grfmt_png.cpp :(text._ZN2cv10PngDecoder10readHeaderEv + 0x6A.): undefiniert Bezug auf png_set_longjmp_fn' grfmt_png.cpp:(.text._ZN2cv10PngDecoder10readHeaderEv+0xae): undefined reference to png_init_io' grfmt_png.cpp :(text._ZN2cv10PngDecoder10readHeaderEv 0xd8 +). : undefined Verweis auf png_read_info' grfmt_png.cpp:(.text._ZN2cv10PngDecoder10readHeaderEv+0xf0): undefined reference to grfmt_png.cpp ‚png_get_IHDR :(text._ZN2cv10PngDecoder10readHeaderEv + 0x166). undefined reference to png_set_read_fn' /home/nandhini/opencv/2.4.2static/lib//libopencv_highgui.a(grfmt_png.cpp.o): In function cv :: PNGEncoder :: write (cv :: Mat const &, std :: vector > Const &) ':. grfmt_png.cpp :(text._ZN2cv10PngEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE + 0x18): undefiniert Bezug auf png_create_write_struct' grfmt_png.cpp:(.text._ZN2cv10PngEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE+0x7a): undefined reference to png_create_info_struct'. grfmt_png.cpp :(text._ZN2cv10PngEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE 0x9E +): undefined Bezug auf png_set_longjmp_fn' grfmt_png.cpp:(.text._ZN2cv10PngEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE+0xce): undefined reference to png_set_write_fn‘ grfmt_png.cpp :(text._ZN2cv10PngEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE 0x14a +):. undefinierter Bezug auf png_set_compression_mem_level' grfmt_png.cpp:(.text._ZN2cv10PngEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE+0x158): undefined reference to png_set_compression_strategy ' grfmt_png.cpp :(text._ZN2cv10PngEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE 0x19a +): undefined Bezug auf png_set_IHDR' grfmt_png.cpp:(.text._ZN2cv10PngEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE+0x1ae): undefined reference to png_write_info' grfmt_png.cpp :(Text.._ZN2cv10PngEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE 0x1ba +): undefined Bezug auf png_set_bgr' grfmt_png.cpp:(.text._ZN2cv10PngEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE+0x1ce): undefined reference to png_set_swap ' grfmt_png.cpp :(text._ZN2cv10PngEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE + 0x208). Undefinierten Bezug auf png_write_image' grfmt_png.cpp:(.text._ZN2cv10PngEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE+0x21c): undefined reference to png_write_end' grfmt_png.cpp :(text._ZN2cv10PngEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE 0x22e +):. Undefinierten Bezug auf png_destroy_write_struct' grfmt_png.cpp:(.text._ZN2cv10PngEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE+0x284): undefined reference to png_init_io ' grfmt_png.cpp :(text._ZN2cv10PngEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE 0x2c6 +):. undefinierter Bezug auf png_set_filter' grfmt_png.cpp:(.text._ZN2cv10PngEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE+0x2d4): undefined reference to png_set_compression_level' /home/nandhini/opencv/2.4.2static/lib//libopencv_highgui.a(grfmt_png.cpp.o): In Funktion cv::PngDecoder::readData(cv::Mat&)': grfmt_png.cpp:(.text._ZN2cv10PngDecoder8readDataERNS_3MatE+0x8c): undefined reference to png_set_longjmp_fn ' grfmt_png.cpp :(. text._ZN2cv10PngDecoder8readDataERNS_3Mate + 0xfa): undefinierter Verweis auf png_set_gray_to_rgb' grfmt_png.cpp:(.text._ZN2cv10PngDecoder8readDataERNS_3MatE+0x102): undefined reference to png_read_update_info ' grfmt_png.cpp :(text._ZN2cv10PngDecoder8readDataERNS_3MatE + 0x126). Undefinierten Bezug auf png_read_image' grfmt_png.cpp:(.text._ZN2cv10PngDecoder8readDataERNS_3MatE+0x12e): undefined reference to png_read_end' grfmt_png.cpp :(text._ZN2cv10PngDecoder8readDataERNS_3MatE 0x14e +):. Undefinierten Bezug auf png_set_palette_to_rgb' grfmt_png.cpp:(.text._ZN2cv10PngDecoder8readDataERNS_3MatE+0x16a): undefined reference to png_set_rgb_to_gray‘ grfmt_png.cpp :(. text._ZN2cv10PngDecoder8readDataERNS_3MatE + 0x170): undefiniert Bezug auf png_set_bgr' grfmt_png.cpp:(.text._ZN2cv10PngDecoder8readDataERNS_3MatE+0x178): undefined reference to png_set_strip_alpha‘ grfmt_png.cpp :(text._ZN2cv10PngDecoder8readDataERNS_3MatE + 0x180). undefinierten Bezug auf png_set_swap' grfmt_png.cpp:(.text._ZN2cv10PngDecoder8readDataERNS_3MatE+0x18c): undefined reference to png_set_expand_gray_1_2_4_to_8' grfmt_png.cpp :(text._ZN2cv10PngDecoder8readDataERNS_3MatE + 0x194). undefinierten Bezug auf cv :: PngEncoder :: writeDataToBuf (void *, unsigniertes Zeichen *, unsigned int) ': grfmt_png.c pp :(text._ZN2cv10PngEncoder14writeDataToBufEPvPhj + 0x16):. undefined reference to png_get_io_ptr' /home/nandhini/opencv/2.4.2static/lib//libopencv_highgui.a(grfmt_jpeg.cpp.o): In function _ZN2cvL16my_jpeg_load_dhtEP22jpeg_decompress_structPhPP9JHUFF_TBLS5_.constprop.30' : grfmt_jpeg.cpp :(text.unlikely._ZN2cvL16my_jpeg_load_dhtEP22jpeg_decompress_structPhPP9JHUFF_TBLS5_.constprop.30 + 0xa4.): undefined reference to jpeg_alloc_huff_table' /home/nandhini/opencv/2.4.2static/lib//libopencv_highgui.a(grfmt_jpeg.cpp.o): In function cv :: JPEGEncoder :: write (cv :: Mat const &, std :: vector> const &) ':. grfmt_jpeg.cpp :(text._ZN2cv11JpegEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE + 0x6E): undefined reference to jpeg_CreateCompress' grfmt_jpeg.cpp:(.text._ZN2cv11JpegEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE+0x78): undefined reference to jpeg_std_error' grfmt_jpeg.cpp :(Text.. _ZN2cv11JpegEncoder5writeERKNS_3MatERKSt6vectorIiSaiIEe + 0xdc): undefinierter Verweis auf jpeg_destroy_compress' grfmt_jpeg.cpp:(.text._ZN2cv11JpegEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE+0x194): undefined reference to jpeg_set_defaults ' grfmt_jpeg.cpp :(. Text._ZN2cv11JpegEncoder5writeERKNS_3MatERKSt6vec torIiSaIiEE 0x1a2 +): undefiniert Bezugnahme auf jpeg_set_quality' grfmt_jpeg.cpp:(.text._ZN2cv11JpegEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE+0x1ae): undefined reference to jpeg_start_compress' grfmt_jpeg.cpp :(text._ZN2cv11JpegEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE 0x1f6 +):. undefinierten Bezug auf jpeg_write_scanlines' grfmt_jpeg.cpp:(.text._ZN2cv11JpegEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE+0x208): undefined reference to jpeg_finish_compress' grfmt_jpeg.cpp :(text._ZN2cv11JpegEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE 0x25e +):. undefinierten Bezug auf jpeg_stdio_dest' grfmt_jpeg.cpp:(.text._ZN2cv11JpegEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE+0x2a6): undefined reference to jpeg_write_scanlines ' grfmt_jpeg.cpp :(text._ZN2cv11JpegEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE 0x2fa +):. undefinierter Bezug auf jpeg_write_scanlines' /home/nandhini/opencv/2.4.2static/lib//libopencv_highgui.a(grfmt_jpeg.cpp.o): In function cv JpegDecoder :: :: close()': grfmt_jpeg.cpp :(text._ZN2cv11JpegDecoder5closeEv 0xa +):. undefinierter Bezug auf jpeg_destroy_decompress' /home/nandhini/opencv/2.4.2static/lib//libopencv_highgui.a(grfmt_jpeg.cpp.o): In function cv: : JpegDecoder :: readData (cv :: Mat &) ': grfmt_jpeg.cpp: (. Text._ZN2cv11JpegDecoder8readDataERNS_3Mate + 0x90): undefinierter Verweis auf jpeg_start_decompress' grfmt_jpeg.cpp:(.text._ZN2cv11JpegDecoder8readDataERNS_3MatE+0x10a): undefined reference to jpeg_read_scanlines' grfmt_jpeg.cpp :(text._ZN2cv11JpegDecoder8readDataERNS_3MatE 0x15a +):. Undefinierter Bezug auf jpeg_finish_decompress' /home/nandhini/opencv/2.4.2static/lib//libopencv_highgui.a(grfmt_jpeg.cpp.o): In function cv :: :: JpegDecoder readHeader() ':. grfmt_jpeg.cpp :(text._ZN2cv11JpegDecoder10readHeaderEv + 0x20): undefiniert Bezug auf jpeg_std_error' grfmt_jpeg.cpp:(.text._ZN2cv11JpegDecoder10readHeaderEv+0x56): undefined reference to jpeg_CreateDecompress' grfmt_jpeg.cpp :(text._ZN2cv11JpegDecoder10readHeaderEv + 0x92). undefinierter Bezug auf jpeg_stdio_src' grfmt_jpeg.cpp:(.text._ZN2cv11JpegDecoder10readHeaderEv+0x9a): undefined reference to jpeg_read_header‘ grfmt_jpeg.cpp :(text._ZN2cv11JpegDecoder10readHeaderEv 0x13c +):. undefinierte Bezugnahme auf jpeg_resync_to_restart' collect2: ld returned 1 exit status

Antwort

4

Die Reihenfolge in denen Bibliotheken sind verknüpft Angelegenheiten!Diese might be die problem.

+1

Danke, das hat funktioniert! Ich schaute auf pkg_config/opencv.pc und schaute auf die Reihenfolge, in der Bibliotheken verknüpft sind. Das hat funktioniert ! Danke vielmals !! – user1193538