2013-03-23 37 views
5

BUILD_SHARED_LIBS = 0オプションを使用して、pandaboardでスタティックリンクを使用してopencvをインストールしました。私はubuntu 11.10を使用しています。私はまた、サードパーティのライブラリpng、jpeg、jasper、zlibを構築しました。 (cmakeオプションBUILD_PNG = ON BUILD_JASPER = ON BUILD_JPEG = ON BUILD_ZLIB = ON WITH_JPEG = ON WITH_PNG = ON WITH_JASPER = ON)。私のopencvのインストールは成功しました。しかし、私がテストプログラムをコンパイルするとき、私はいくつかの未定義のエラーを参照しています。これらのエラーはすべてjpeg、png、jasperライブラリに関連しているようですが、明示的にリンクするとlibhighguiがサードパーティのライブラリを参照できない理由を理解できません。ここで私は私のプログラムをコンパイルする方法である:パンダボードで静的リンクを使用したOpenCVコンパイルの問題

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

私は今、長い間、この問題で立ち往生してきたし、誰かが私が問題を解決するのに役立つことができれば、私はそれを本当に感謝。助けてください、ありがとう!ここで

は私のエラーのリストです:

/home/nandhini/opencv/2.4.2static/lib//libopencv_core.a(persistence.cpp.o): In function icvGets(CvFileStorageの*、char型*、int型) ': persistence.cpp :(text._ZL7icvGetsP13CvFileStoragePci +の0x7eの):。gzgets' /home/nandhini/opencv/2.4.2static/lib//libopencv_core.a(persistence.cpp.o): In function _ZL16icvYMLSkipSpacesP13CvFileStoragePcii.constpropへの未定義参照0.61 ': persistence.cpp :(text._ZL16icvYMLSkipSpacesP13CvFileStoragePcii.constprop.61 +の0x11e)。gzeof' /home/nandhini/opencv/2.4.2static/lib//libopencv_core.a(persistence.cpp.o): In function icvPuts(CvFileStorage *、チャーCONST *)への未定義参照' persistence.cpp :(text._ZL7icvPutsP13CvFileStoragePKc + 0x138)。 :gzputs' /home/nandhini/opencv/2.4.2static/lib//libopencv_core.a(persistence.cpp.o): In functionへの未定義参照icvXMLSkipSpaces(CvFileStorage *、char *、int) ': persistence.cpp :(。text._ZL16icv XMLSkipSpacesP13CvFileStoragePci + 0x1a2):gzeof' /home/nandhini/opencv/2.4.2static/lib//libopencv_core.a(persistence.cpp.o): In function icvClose(CvFileStorage *、STD ::のbasic_string、スタンダード::アロケータ> *)への未定義参照 ' persistence.cpp :(text._ZL8icvCloseP13CvFileStoragePSs + 0x132)。gzclose' /home/nandhini/opencv/2.4.2static/lib//libopencv_core.a(persistence.cpp.o): In function cvOpenFileStorageに未定義の参照' persistence.cpp :(text.cvOpenFileStorage + 0x1b0):。 /home/nandhini/opencv/2.4.2static:gzrewind' persistence.cpp:(.text.cvOpenFileStorage+0x6b6): undefined reference to gzclose 'gzopen' persistence.cpp:(.text.cvOpenFileStorage+0xcd4): undefined reference to gzcloseへの未定義参照 persistence.cpp :(text.cvOpenFileStorage + 0x734)' への未定義参照/lib//libopencv_highgui.a(grfmt_jpeg2000.cpp.o):機能に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):機能にcv::Jpeg2KDecoder::close()': grfmt_jpeg2000.cpp:(.text._ZN2cv13Jpeg2KDecoder5closeEv+0x8): undefined reference to jas_stream_close ' grfmt_jp eg2000.cpp :(text._ZN2cv13Jpeg2KDecoder5closeEv + 0x14に)。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)。jas_stream_fopen' grfmt_jpeg2000.cpp:(.text._ZN2cv13Jpeg2KDecoder10readHeaderEv+0x1e): undefined reference to jas_image_decodeに未定義の参照' /ホーム/ナンディニ/ OpenCVの/ 2.4.2static/libに// libopencv_highgui.a(grfmt_jpeg2000.cpp.o):機能に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):jas_image_getcmptbytype' grfmt_jpeg2000.cpp:(.text._ZN2cv13Jpeg2KDecoder8readDataERNS_3MatE+0x74): undefined reference to jas_image_getcmptbytypeへの未定義参照' grfmt_jpeg2000.cpp :(text._ZN2cv13Jpeg2KDecoder8readDataERNS_3MatE + 0xb8):。。への未定義参照:jas_image_getcmptbytype' grfmt_jpeg2000.cpp:(.text._ZN2cv13Jpeg2KDecoder8readDataERNS_3MatE+0x126): undefined reference to jas_matrix_create」 grfmt_jpeg2000.cpp :(text._ZN2cv13Jpeg2KDecoder8readDataERNS_3MatE + 0x13e)への未定義参照jas_matrix_destroy ' grfmt_jpeg2000.cpp :(text._ZN2cv13Jpeg2KDecoder8readDataERNS_3MatE + 0x184)。jas_cmprof_createfromclrspc' grfmt_jpeg2000.cpp:(.text._ZN2cv13Jpeg2KDecoder8readDataERNS_3MatE+0x194): undefined reference to jas_image_chclrspcに未定義の参照':jas_image_destroy' grfmt_jpeg2000.cpp:(.text._ZN2cv13Jpeg2KDecoder8readDataERNS_3MatE+0x1ac): undefined reference to jas_cmprof_destroy」 grfmt_jpeg2000.cpp :(に未定義参照 grfmt_jpeg2000.cpp :(text._ZN2cv13Jpeg2KDecoder8readDataERNS_3MatE + 0x1a2)。テキスト:_ZN2cv13Jpeg2KDecoder8readDataERNS_3MatE + 0x220):未定義参照への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 :(。_ZN2cv13Jpeg2KEncoder16writeComponent8uEPvRKNS_3MatE + 0x1cに):jas_matrix_create' grfmt_jpeg2000.cpp:(.text._ZN2cv13Jpeg2KEncoder16writeComponent8uEPvRKNS_3MatE+0x86): undefined reference to jas_image_writecmptへの未定義参照 'text._ZN2cv13Jpeg2KEncoder16writeComponent8uEPvRKNS_3MatE + 0xa0の):( grfmt_jpeg2000.cpp:jas_matrix_destroy' /home/nandhini/opencv/2.4.2static/lib//libopencv_highgui.a(grfmt_jpeg2000.cpp.o): In functionのcv :: Jpeg2KEncoder :: writeComponent16u(ボイド*、CV ::マットのconst &)への未定義参照': 。grfmt_jpeg2000.cpp :(text._ZN2cv13Jpeg2KEncoder17writeComponent16uEPvRKNS_3MatE + 0x1cに):。text._ZN2cv13Jpeg2KEncoder17writeComponent16uEPvRKNS_3MatE + 0xa0の):( grfmt_jpeg2000.cpp「jas_matrix_create' grfmt_jpeg2000.cpp:(.text._ZN2cv13Jpeg2KEncoder17writeComponent16uEPvRKNS_3MatE+0x86): undefined reference to jas_image_writecmptへの未定義参照:jas_matrix_destroy' /home/nandhini/opencv/2.4.2static/lib//libopencv_highgui.a(grfmt_jpeg2000.cpp.o): In functionのcv :: Jpeg2KEncoder ::書き込みに未定義の参照(CV ::マットのconst &、std :: vector> const &) ': grfmt_jpeg2000.cpp :(。text._ZN2cv13Jpeg2KEncoder5writeERKNS_3MatERKSt6vectorIiS aIiEE +の0x5a):jas_image_create' grfmt_jpeg2000.cpp:(.text._ZN2cv13Jpeg2KEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE+0x8c): undefined reference to jas_image_destroyに未定義の参照 ':( grfmt_jpeg2000.cpp text._ZN2cv13Jpeg2KEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE + 0xbe)。jas_stream_fopen' grfmt_jpeg2000.cpp:(.text._ZN2cv13Jpeg2KEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE+0xcc): undefined reference to jas_image_strtofmtに未定義の参照' :( grfmt_jpeg2000.cpp text._ZN2cv13Jpeg2KEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE + 0xda)。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):機能内_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):関数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)。cv::getOptimalDFTSize(int)' templmatch.cpp:(.text._ZN2cv9crossCorrERKNS_3MatES2_RS0_NS_5Size_IiEEiNS_6Point_IiEEdi+0x7c4): undefined reference to CVへの未定義参照。 :DFT(CV :: _ InputArrayのCONST &、CV :: _ OutputArray CONST &、INT、INT)」 templmatch.cpp :(text._ZN2cv9crossCorrERKNS_3MatES2_RS0_NS_5Size_IiEEiNS_6Point_IiEEdi + 0xefc)。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 :: _ OutputArray constの&、int型、ブール値)」 templmatch.cpp :(text._ZN2cv9crossCorrERKNS_3MatES2_RS0_NS_5Size_IiEEiNS_6Point_IiEEdi + 0xf8e):未定義の参照に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(ボイド*、 [unsigned char *、unsigned int) ': grfmt_png.cpp :(。テキスト._ZN2cv10PngDecoder15readDataFromBufEPvPhj + 0xc):未定義参照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):機能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):機能cv::PngDecoder::readHeader()': grfmt_png.cpp:(.text._ZN2cv10PngDecoder10readHeaderEv+0x18): undefined reference to png_create_read_struct' において grfmt_png。 CPP :(text._ZN2cv10PngDecoder10readHeaderEv +ただし0x22):png_create_info_struct' grfmt_png.cpp:(.text._ZN2cv10PngDecoder10readHeaderEv+0x2a): undefined reference to png_create_info_structに未定義の参照 ':( grfmt_png.cpp text._ZN2cv10PngDecoder10readHeaderEv + 0x6a)。png_set_longjmp_fn' grfmt_png.cpp:(.text._ZN2cv10PngDecoder10readHeaderEv+0xae): undefined reference to png_init_ioに未定義の参照' :( grfmt_png.cpp text._ZN2cv10PngDecoder10readHeaderEv + 0xd8)。 :png_read_info' grfmt_png.cpp:(.text._ZN2cv10PngDecoder10readHeaderEv+0xf0): undefined reference to png_get_IHDR」 grfmt_png.cpp :(text._ZN2cv10PngDecoder10readHeaderEv + 0x166)に未定義の参照:png_set_read_fn' /home/nandhini/opencv/2.4.2static/lib//libopencv_highgui.a(grfmt_png.cpp.o): In function CVへの未定義参照:: PngEncoder ::書き込み(CV ::マットCONST &、のstd ::ベクトル> CONST &) ': grfmt_png.cpp :(text._ZN2cv10PngEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE + 0x18の):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): grfmt_png.cpp「png_set_longjmp_fn' grfmt_png.cpp:(.text._ZN2cv10PngEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE+0xce): undefined reference to png_set_write_fnに未定義参照:(text._ZN2cv10PngEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE + 0x14a):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):png_set_IHDR' grfmt_png.cpp:(.text._ZN2cv10PngEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE+0x1ae): undefined reference to png_write_infoに未定義の参照'。 grfmt_png.cpp :(テキスト。_ZN2cv10PngEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE + 0x1ba):png_set_bgr' grfmt_png.cpp:(.text._ZN2cv10PngEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE+0x1ce): undefined reference to png_set_swapに未定義の参照 ':( grfmt_png.cpp text._ZN2cv10PngEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE + 0x208)。png_write_image' grfmt_png.cpp:(.text._ZN2cv10PngEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE+0x21c): undefined reference to png_write_endに未定義の参照' :( grfmt_png.cpp text._ZN2cv10PngEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE + 0x22e)。png_destroy_write_struct' grfmt_png.cpp:(.text._ZN2cv10PngEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE+0x284): undefined reference to png_init_ioに未定義参照' grfmt_png.cpp :(text._ZN2cv10PngEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE + 0x2c6)。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):関数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):未定義参照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)。png_read_image' grfmt_png.cpp:(.text._ZN2cv10PngDecoder8readDataERNS_3MatE+0x12e): undefined reference to png_read_endに未定義の参照':png_set_palette_to_rgb' grfmt_png.cpp:(.text._ZN2cv10PngDecoder8readDataERNS_3MatE+0x16a): undefined reference to png_set_rgb_to_gray」 grfmt_png.cpp :(に未定義参照 grfmt_png.cpp :(text._ZN2cv10PngDecoder8readDataERNS_3MatE + 0x14e)。 text._ZN2cv10PngDecoder8readDataERNS_3MatE + 0x170):png_set_bgr' grfmt_png.cpp:(.text._ZN2cv10PngDecoder8readDataERNS_3MatE+0x178): undefined reference to png_set_strip_alphaに未定義の参照」:( grfmt_png.cpp text._ZN2cv10PngDecoder8readDataERNS_3MatE + 0x180)。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):の未定義参照png_set_strip_16' /home/nandhini/opencv/2.4.2static/lib//libopencv_highgui.a(grfmt_png.cpp.o): In function cv :: PngEncoder :: writeDataToBuf(void *、符号なしchar *、符号なしint) ': grfmt_png.c PP :(text._ZN2cv10PngEncoder14writeDataToBufEPvPhj + 0x16):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の):。jpeg_alloc_huff_table' /home/nandhini/opencv/2.4.2static/lib//libopencv_highgui.a(grfmt_jpeg.cpp.o): In function品種への未定義参照:: JpegEncoder ::ライト(CV ::マットCONST &、のstd ::ベクトル> CONST &) ': grfmt_jpeg.cpp :(text._ZN2cv11JpegEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE + 0x6e):jpeg_CreateCompress' grfmt_jpeg.cpp:(.text._ZN2cv11JpegEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE+0x78): undefined reference to jpeg_std_errorに未定義の参照'。 grfmt_jpeg.cpp :(テキスト。 _ZN2cv11JpegEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE + 0xdc):未定義参照jpeg_destroy_compress' grfmt_jpeg.cpp:(.text._ZN2cv11JpegEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE+0x194): undefined reference to jpeg_set_defaults ' grfmt_jpeg.cpp :(。テキスト._ZN2cv11JpegEncoder5writeERKNS_3MatERKSt6vec torIiSaIiEE + 0x1a2):jpeg_set_quality' grfmt_jpeg.cpp:(.text._ZN2cv11JpegEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE+0x1ae): undefined reference to jpeg_start_compressに未定義参照:( grfmt_jpeg.cpp text._ZN2cv11JpegEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE + 0x1f6):jpeg_write_scanlines' grfmt_jpeg.cpp:(.text._ZN2cv11JpegEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE+0x208): undefined reference to jpeg_finish_compressに未定義の参照:( grfmt_jpeg.cpp text._ZN2cv11JpegEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE + 0x25e)。jpeg_stdio_dest' grfmt_jpeg.cpp:(.text._ZN2cv11JpegEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE+0x2a6): undefined reference to jpeg_write_scanlinesに未定義参照' grfmt_jpeg.cpp :(text._ZN2cv11JpegEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE + 0x2fa)。未定義jpeg_write_scanlines' /home/nandhini/opencv/2.4.2static/lib//libopencv_highgui.a(grfmt_jpeg.cpp.o): In function CV :: JpegDecoderを参照::近い()': grfmt_jpeg.cpp :(text._ZN2cv11JpegDecoder5closeEv +は0xa)。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 :(。テキスト._ZN2cv11JpegDecoder8readDataERNS_3MatE + 0x90):未定義の参照先jpeg_start_decompress' grfmt_jpeg.cpp:(.text._ZN2cv11JpegDecoder8readDataERNS_3MatE+0x10a): undefined reference to jpeg_read_scanlines' grfmt_jpeg.cpp :(text._ZN2cv11JpegDecoder8readDataERNS_3MatE + 0x15a):未定義の参照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):jpeg_std_error' grfmt_jpeg.cpp:(.text._ZN2cv11JpegDecoder10readHeaderEv+0x56): undefined reference toに未定義参照jpeg_CreateDecompress' grfmt_jpeg.cpp :(text._ZN2cv11JpegDecoder10readHeaderEv + 0x92):jpeg_stdio_src' grfmt_jpeg.cpp:(.text._ZN2cv11JpegDecoder10readHeaderEv+0x9a): undefined reference to jpeg_read_headerに未定義の参照」:( grfmt_jpeg.cpp text._ZN2cv11JpegDecoder10readHeaderEv + 0x13c):未定義の参照jpeg_resync_to_restart' collect2: ld returned 1 exit status

答えて

4

順序にライブラリはリンクされています問題!このmight beproblemです。

+1

ありがとうございました!私はpkg_config/opencv.pcを見て、ライブラリがリンクされている順序を調べました。それはうまくいった!どうもありがとう !! – user1193538

関連する問題