我使用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无法引用第三方库.以下是我编译程序的方法:
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 /家庭/ nandhini / OpenCV的/ 2.4.2static /股/ 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):在functionicvGets(CvFileStorage *,char *,int)’中:
persistence.cpp :(.text._ZL7icvGetsP13CvFileStoragePci 0x7e):对gzgets的未定义引用’
/home/nandhini/opencv/2.4.2static/lib//libopencv_core.a(persistence.cpp.o):在function_ZL16icvYMLSkipSpacesP13CvFileStoragePcii.constprop.61’中:
persistence.cpp :(.text._ZL16icvYMLSkipSpacesP13CvFileStoragePcii.constprop.61 0x11e):对gzeof的未定义引用’
/home/nandhini/opencv/2.4.2static/lib//libopencv_core.a(persistence.cpp.o):在functionicvPuts(CvFileStorage *,char const *)’中:
persistence.cpp :(.text._ZL7icvPutsP13CvFileStoragePKc 0x138):对gzputs的未定义引用’
/home/nandhini/opencv/2.4.2static/lib//libopencv_core.a(persistence.cpp.o):在functionicvXMLSkipSpaces(CvFileStorage *,char *,int)’中:
persistence.cpp :(.text._ZL16icvXMLSkipSpacesP13CvFileStoragePci 0x1a2):对gzeof的未定义引用’
/home/nandhini/opencv/2.4.2static/lib//libopencv_core.a(persistence.cpp.o):在functionicvClose(CvFileStorage *,std :: basic_string,std :: allocator> *)’中:
persistence.cpp :(.text._ZL8icvCloseP13CvFileStoragePSs 0x132):对gzclose的未定义引用’
/home/nandhini/opencv/2.4.2static/lib//libopencv_core.a(persistence.cpp.o):在functioncvOpenFileStorage’中:
persistence.cpp :(.text.cvOpenFileStorage 0x1b0):对gzrewind的未定义引用’
persistence.cpp :(.text.cvOpenFileStorage 0x6b6):undefined reference togzclose’
persistence.cpp :(.text.cvOpenFileStorage 0x734):对gzopen的未定义引用’
persistence.cpp :(.text.cvOpenFileStorage 0xcd4):undefined reference togzclose’
/home/nandhini/opencv/2.4.2static/lib//libopencv_highgui.a(grfmt_jpeg2000.cpp.o):在函数cv :: JasperInitializer :: ~JasperInitializer()’中:
grfmt_jpeg2000.cpp :(.text._ZN2cv17JasperInitializerD2Ev [_ZN2cv17JasperInitializerD5Ev] 0x4):undefined reference tojas_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 tojas_stream_close’
grfmt_jpeg2000.cpp :(.text._ZN2cv13Jpeg2KDecoder5closeEv 0x14):对jas_image_destroy的未定义引用’
/home/nandhini/opencv/2.4.2static/lib//libopencv_highgui.a(grfmt_jpeg2000.cpp.o):在functioncv :: Jpeg2KDecoder :: readHeader()’中:
grfmt_jpeg2000.cpp :(.text._ZN2cv13Jpeg2KDecoder10readHeaderEv 0xe):对jas_stream_fopen的未定义引用’
grfmt_jpeg2000.cpp :(.text._ZN2cv13Jpeg2KDecoder10readHeaderEv 0x1e):undefined reference tojas_image_decode’
/home/nandhini/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 tojas_image_getcmptbytype’
grfmt_jpeg2000.cpp :(.text._ZN2cv13Jpeg2KDecoder8readDataERNS_3MatE 0x68):对jas_image_getcmptbytype的未定义引用’
grfmt_jpeg2000.cpp :(.text._ZN2cv13Jpeg2KDecoder8readDataERNS_3MatE 0x74):undefined reference tojas_image_getcmptbytype’
grfmt_jpeg2000.cpp :(.text._ZN2cv13Jpeg2KDecoder8readDataERNS_3MatE 0xb8):对jas_image_getcmptbytype的未定义引用’
grfmt_jpeg2000.cpp :(.text._ZN2cv13Jpeg2KDecoder8readDataERNS_3MatE 0x126):undefined reference tojas_matrix_create’
grfmt_jpeg2000.cpp :(.text._ZN2cv13Jpeg2KDecoder8readDataERNS_3MatE 0x13e):对jas_image_readcmpt的未定义引用’
grfmt_jpeg2000.cpp :(.text._ZN2cv13Jpeg2KDecoder8readDataERNS_3MatE 0x16e):undefined reference tojas_matrix_destroy’
grfmt_jpeg2000.cpp :(.text._ZN2cv13Jpeg2KDecoder8readDataERNS_3MatE 0x184):对jas_cmprof_createfromclrspc’的未定义引用
grfmt_jpeg2000.cpp :(.text._ZN2cv13Jpeg2KDecoder8readDataERNS_3MatE 0x194):undefined reference tojas_image_chclrspc’
grfmt_jpeg2000.cpp :(.text._ZN2cv13Jpeg2KDecoder8readDataERNS_3MatE 0x1a2):对jas_image_destroy的未定义引用’
grfmt_jpeg2000.cpp :(.text._ZN2cv13Jpeg2KDecoder8readDataERNS_3MatE 0x1ac):undefined reference tojas_cmprof_destroy’
grfmt_jpeg2000.cpp :(.text._ZN2cv13Jpeg2KDecoder8readDataERNS_3MatE 0x220):对jas_cmprof_destroy’的未定义引用
/home/nandhini/opencv/2.4.2static/lib//libopencv_highgui.a(grfmt_jpeg2000.cpp.o):在functioncv :: Jpeg2KEncoder :: writeComponent8u(void *,cv :: Mat const&)’:
grfmt_jpeg2000.cpp :(.text._ZN2cv13Jpeg2KEncoder16writeComponent8uEPvRKNS_3MatE 0x1c):对jas_matrix_create的未定义引用
grfmt_jpeg2000.cpp :(.text._ZN2cv13Jpeg2KEncoder16writeComponent8uEPvRKNS_3MatE 0x86):undefined reference tojas_image_writecmpt’
grfmt_jpeg2000.cpp :(.text._ZN2cv13Jpeg2KEncoder16writeComponent8uEPvRKNS_3MatE 0xa0):对jas_matrix_destroy的未定义引用’
/home/nandhini/opencv/2.4.2static/lib//libopencv_highgui.a(grfmt_jpeg2000.cpp.o):在functioncv :: Jpeg2KEncoder :: writeComponent16u(void *,cv :: Mat const&)’:
grfmt_jpeg2000.cpp :(.text._ZN2cv13Jpeg2KEncoder17writeComponent16uEPvRKNS_3MatE 0x1c):对jas_matrix_create的未定义引用’
grfmt_jpeg2000.cpp :(.text._ZN2cv13Jpeg2KEncoder17writeComponent16uEPvRKNS_3MatE 0x86):undefined reference tojas_image_writecmpt’
grfmt_jpeg2000.cpp :(.text._ZN2cv13Jpeg2KEncoder17writeComponent16uEPvRKNS_3MatE 0xa0):对jas_matrix_destroy的未定义引用’
/home/nandhini/opencv/2.4.2static/lib//libopencv_highgui.a(grfmt_jpeg2000.cpp.o):在functioncv :: Jpeg2KEncoder :: write(cv :: Mat const&,std :: vector> const&) “:
grfmt_jpeg2000.cpp :(.text._ZN2cv13Jpeg2KEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE 0x5a):对jas_image_create的未定义引用’
grfmt_jpeg2000.cpp :(.text._ZN2cv13Jpeg2KEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE 0x8c):undefined reference tojas_image_destroy’
grfmt_jpeg2000.cpp :(.text._ZN2cv13Jpeg2KEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE 0xbe):对jas_stream_fopen的未定义引用’
grfmt_jpeg2000.cpp :(.text._ZN2cv13Jpeg2KEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE 0xcc):undefined reference tojas_image_strtofmt’
grfmt_jpeg2000.cpp :(.text._ZN2cv13Jpeg2KEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE 0xda):对jas_image_encode的未定义引用’
grfmt_jpeg2000.cpp :(.text._ZN2cv13Jpeg2KEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE 0xe8):undefined reference tojas_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 tojas_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 tocv :: 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 tocv :: 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 tocv :: mulSpectrums(cv :: _ InputArray const&,cv :: _ InputArray const&,cv :: _ OutputArray const&,int,bool)’
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):在functioncv :: PngDecoder :: readDataFromBuf(void *,unsigned char *,unsigned int)’:
grfmt_png.cpp :(.text._ZN2cv10PngDecoder15readDataFromBufEPvPhj 0xc):对png_get_io_ptr’的未定义引用
grfmt_png.cpp :(.text._ZN2cv10PngDecoder15readDataFromBufEPvPhj 0x10a):undefined reference topng_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 topng_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 topng_create_read_struct’
grfmt_png.cpp :(.text._ZN2cv10PngDecoder10readHeaderEv 0x22):对png_create_info_struct的未定义引用’
grfmt_png.cpp :(.text._ZN2cv10PngDecoder10readHeaderEv 0x2a):undefined reference topng_create_info_struct’
grfmt_png.cpp :(.text._ZN2cv10PngDecoder10readHeaderEv 0x6a):对png_set_longjmp_fn的未定义引用’
grfmt_png.cpp :(.text._ZN2cv10PngDecoder10readHeaderEv 0xae):undefined reference topng_init_io’
grfmt_png.cpp :(.text._ZN2cv10PngDecoder10readHeaderEv 0xd8):对png_read_info的未定义引用’
grfmt_png.cpp :(.text._ZN2cv10PngDecoder10readHeaderEv 0xf0):undefined reference topng_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):在functioncv :: PngEncoder :: write(cv :: Mat const&,std :: vector> const&) “:
grfmt_png.cpp :(.text._ZN2cv10PngEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE 0x18):对png_create_write_struct的未定义引用’
grfmt_png.cpp :(.text._ZN2cv10PngEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE 0x7a):undefined reference topng_create_info_struct’
grfmt_png.cpp :(.text._ZN2cv10PngEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE 0x9e):对png_set_longjmp_fn的未定义引用’
grfmt_png.cpp :(.text._ZN2cv10PngEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE 0xce):undefined reference topng_set_write_fn’
grfmt_png.cpp :(.text._ZN2cv10PngEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE 0x14a):对png_set_compression_mem_level’的未定义引用
grfmt_png.cpp :(.text._ZN2cv10PngEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE 0x158):undefined reference topng_set_compression_strategy’
grfmt_png.cpp :(.text._ZN2cv10PngEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE 0x19a):对png_set_IHDR的未定义引用’
grfmt_png.cpp :(.text._ZN2cv10PngEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE 0x1ae):undefined reference topng_write_info’
grfmt_png.cpp :(.text._ZN2cv10PngEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE 0x1ba):对png_set_bgr的未定义引用’
grfmt_png.cpp :(.text._ZN2cv10PngEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE 0x1ce):undefined reference topng_set_swap’
grfmt_png.cpp :(.text._ZN2cv10PngEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE 0x208):对png_write_image的未定义引用’
grfmt_png.cpp :(.text._ZN2cv10PngEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE 0x21c):undefined reference topng_write_end’
grfmt_png.cpp :(.text._ZN2cv10PngEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE 0x22e):对png_destroy_write_struct’的未定义引用
grfmt_png.cpp :(.text._ZN2cv10PngEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE 0x284):undefined reference topng_init_io’
grfmt_png.cpp :(.text._ZN2cv10PngEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE 0x2c6):对png_set_filter的未定义引用’
grfmt_png.cpp :(.text._ZN2cv10PngEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE 0x2d4):undefined reference topng_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 topng_set_longjmp_fn’
grfmt_png.cpp :(.text._ZN2cv10PngDecoder8readDataERNS_3MatE 0xfa):对png_set_gray_to_rgb’的未定义引用
grfmt_png.cpp :(.text._ZN2cv10PngDecoder8readDataERNS_3MatE 0x102):undefined reference topng_read_update_info’
grfmt_png.cpp :(.text._ZN2cv10PngDecoder8readDataERNS_3MatE 0x126):对png_read_image的未定义引用’
grfmt_png.cpp :(.text._ZN2cv10PngDecoder8readDataERNS_3MatE 0x12e):undefined reference topng_read_end’
grfmt_png.cpp :(.text._ZN2cv10PngDecoder8readDataERNS_3MatE 0x14e):对png_set_palette_to_rgb’的未定义引用
grfmt_png.cpp :(.text._ZN2cv10PngDecoder8readDataERNS_3MatE 0x16a):undefined reference topng_set_rgb_to_gray’
grfmt_png.cpp :(.text._ZN2cv10PngDecoder8readDataERNS_3MatE 0x170):对png_set_bgr的未定义引用’
grfmt_png.cpp :(.text._ZN2cv10PngDecoder8readDataERNS_3MatE 0x178):undefined reference topng_set_strip_alpha’
grfmt_png.cpp :(.text._ZN2cv10PngDecoder8readDataERNS_3MatE 0x180):对png_set_swap的未定义引用’
grfmt_png.cpp :(.text._ZN2cv10PngDecoder8readDataERNS_3MatE 0x18c):未定义的引用topng_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):在functioncv :: PngEncoder :: writeDataToBuf(void *,unsigned char *,unsigned int)’:
grfmt_png.cpp :(.text._ZN2cv10PngEncoder14writeDataToBufEPvPhj 0x16):对png_get_io_ptr’的未定义引用
/home/nandhini/opencv/2.4.2static/lib//libopencv_highgui.a(grfmt_jpeg.cpp.o):在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):在functioncv :: JpegEncoder :: write(cv :: Mat const&,std :: vector> const&) “:
grfmt_jpeg.cpp :(.text._ZN2cv11JpegEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE 0x6e):对jpeg_CreateCompress的未定义引用’
grfmt_jpeg.cpp :(.text._ZN2cv11JpegEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE 0x78):undefined reference tojpeg_std_error’
grfmt_jpeg.cpp :(.text._ZN2cv11JpegEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE 0xdc):对jpeg_destroy_compress的未定义引用
grfmt_jpeg.cpp :(.text._ZN2cv11JpegEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE 0x194):undefined reference tojpeg_set_defaults’
grfmt_jpeg.cpp :(.text._ZN2cv11JpegEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE 0x1a2):对jpeg_set_quality的未定义引用’
grfmt_jpeg.cpp :(.text._ZN2cv11JpegEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE 0x1ae):undefined reference tojpeg_start_compress’
grfmt_jpeg.cpp :(.text._ZN2cv11JpegEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE 0x1f6):对jpeg_write_scanlines’的未定义引用
grfmt_jpeg.cpp :(.text._ZN2cv11JpegEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE 0x208):undefined reference tojpeg_finish_compress’
grfmt_jpeg.cpp :(.text._ZN2cv11JpegEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE 0x25e):对jpeg_stdio_dest的未定义引用’
grfmt_jpeg.cpp :(.text._ZN2cv11JpegEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE 0x2a6):undefined reference tojpeg_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):在functioncv :: JpegDecoder :: close()’中:
grfmt_jpeg.cpp :(.text._ZN2cv11JpegDecoder5closeEv 0xa):对jpeg_destroy_decompress’的未定义引用
/home/nandhini/opencv/2.4.2static/lib//libopencv_highgui.a(grfmt_jpeg.cpp.o):在functioncv :: JpegDecoder :: readData(cv :: Mat&)’中:
grfmt_jpeg.cpp :(.text._ZN2cv11JpegDecoder8readDataERNS_3MatE 0x90):对jpeg_start_decompress’的未定义引用
grfmt_jpeg.cpp :(.text._ZN2cv11JpegDecoder8readDataERNS_3MatE 0x10a):未定义引用tojpeg_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):在functioncv :: JpegDecoder :: readHeader()’中:
grfmt_jpeg.cpp :(.text._ZN2cv11JpegDecoder10readHeaderEv 0x20):对jpeg_std_error’的未定义引用
grfmt_jpeg.cpp :(.text._ZN2cv11JpegDecoder10readHeaderEv 0x56):undefined reference tojpeg_CreateDecompress’
grfmt_jpeg.cpp :(.text._ZN2cv11JpegDecoder10readHeaderEv 0x92):对jpeg_stdio_src的未定义引用’
grfmt_jpeg.cpp :(.text._ZN2cv11JpegDecoder10readHeaderEv 0x9a):undefined reference tojpeg_read_header’
grfmt_jpeg.cpp :(.text._ZN2cv11JpegDecoder10readHeaderEv 0x13c):对jpeg_resync_to_restart’的未定义引用
collect2:ld返回1退出状态