pandaboard 安装_在pandaboard上使用静态链接编译OpenCV的问题

在Pandaboard上使用静态链接编译OpenCV时遇到一系列未定义的引用问题,包括gzgets、gzeof、gzputs等函数以及jasper和png库的相关函数。这些问题阻碍了OpenCV库的正常编译和链接过程。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

/home/nandhini/opencv/2.4.2static/lib//libopencv_core.a(persistence.cpp.o): In function icvGets(CvFileStorage *,字符*,诠释)': 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 *,字符常量*)': 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 *,性病:: 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):未定义参照gzrewind' persistence.cpp:(.text.cvOpenFileStorage+0x6b6): undefined reference to gzclose ' persistence.cpp :(text.cvOpenFileStorage + 0x734):未定义参照gzopen' persistence.cpp:(.text.cvOpenFileStorage+0xcd4): undefined reference to gzclose' /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 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 + 0×14):未定义参照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' /家/ 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 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_image_readcmpt' grfmt_jpeg2000.cpp:(.text._ZN2cv13Jpeg2KDecoder8readDataERNS_3MatE+0x16e): undefined reference to 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' grfmt_jpeg2000.cpp :(text._ZN2cv13Jpeg2KDecoder8readDataERNS_3MatE + 0x1a2):未定义参照jas_image_destroy' grfmt_jpeg2000.cpp:(.text._ZN2cv13Jpeg2KDecoder8readDataERNS_3MatE+0x1ac): undefined reference to jas_cmprof_destroy” grfmt_jpeg2000.cpp :(。 text._ZN2cv13Jpeg2KDecoder8readDataERNS_3MatE + 0x220):undefined参考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):未定义参照jas_matrix_create' grfmt_jpeg2000.cpp:(.text._ZN2cv13Jpeg2KEncoder16writeComponent8uEPvRKNS_3MatE+0x86): undefined reference to jas_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): In function CV :: Jpeg2KEncoder :: writeComponent16u(无效*,CV ::垫常量&)': 。grfmt_jpeg2000.cpp :(text._ZN2cv13Jpeg2KEncoder17writeComponent16uEPvRKNS_3MatE +为0x1c):未定义参照jas_matrix_create' grfmt_jpeg2000.cpp:(.text._ZN2cv13Jpeg2KEncoder17writeComponent16uEPvRKNS_3MatE+0x86): undefined reference to jas_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): In function CV :: Jpeg2KEncoder ::写(CV ::垫常量&,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, cv::Point_, 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常量&,CV :: _ OutputArray常量&,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常量&,CV :: _ InputArray常量&,CV :: _ OutputArray常量&,整型,布尔)” 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 :(。text._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 + 0×22):未定义参照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 :: write(cv :: Mat const &,std :: vector >常量&) ': 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):未定义参照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):未定义参照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):undefined reference to 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' grfmt_png.cpp :(text._ZN2cv10PngDecoder8readDataERNS_3MatE + 0x14e):未定义参照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):未定义参照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 *,unsigned char *,unsigned 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 CV :: JpegEncoder ::写(CV ::垫常量&,性病::矢量>常量&) ': 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):undefined reference to jpeg_destroy_compress' grfmt_jpeg.cpp:(.text._ZN2cv11JpegEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE+0x194): undefined reference to jpeg_set_defaults' grfmt_jpeg.cpp :(。text._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 :(。text._ZN2cv11JpegDecoder8readDataERNS_3MatE + 0x90):undefined reference to 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 + 0×20):未定义参照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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值