OpenCV中文网站

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
热搜: 安装 配置
查看: 2402|回复: 2

Opencv在ARM上跑,可以使用Mat数据类型吗

[复制链接]
发表于 2016-5-14 16:28:50 | 显示全部楼层 |阅读模式
我之前在ARM上用Iplimage可以实现图像采集并显示,现在想换成Mat数据类型。在ubuntu电脑上运行没问题,但是make编译ARM可运行程序时候,就报出如下错误。Opencv 在ARM跑可以使用Mat数据类型吗?



/opt/qt-4.7.1/bin/qmake -o Makefile OpenMat.pro
arm-linux-g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/opt/qt-4.7.1/mkspecs/qws/linux-arm-g++ -I. -I/opt/qt-4.7.1/include/QtCore -I/opt/qt-4.7.1/include/QtNetwork -I/opt/qt-4.7.1/include/QtGui -I/opt/qt-4.7.1/include -I/usr/local/arm/opencv-install/include -I/usr/local/arm/opencv-install/include/opencv -I/usr/local/arm/opencv-install/include/opencv2 -I. -I. -o main.o main.cpp
main.cpp:11: note: the mangling of 'va_list' has changed in GCC 4.4
arm-linux-g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/opt/qt-4.7.1/mkspecs/qws/linux-arm-g++ -I. -I/opt/qt-4.7.1/include/QtCore -I/opt/qt-4.7.1/include/QtNetwork -I/opt/qt-4.7.1/include/QtGui -I/opt/qt-4.7.1/include -I/usr/local/arm/opencv-install/include -I/usr/local/arm/opencv-install/include/opencv -I/usr/local/arm/opencv-install/include/opencv2 -I. -I. -o dialog.o dialog.cpp
dialog.cpp:99: note: the mangling of 'va_list' has changed in GCC 4.4
arm-linux-g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/opt/qt-4.7.1/mkspecs/qws/linux-arm-g++ -I. -I/opt/qt-4.7.1/include/QtCore -I/opt/qt-4.7.1/include/QtNetwork -I/opt/qt-4.7.1/include/QtGui -I/opt/qt-4.7.1/include -I/usr/local/arm/opencv-install/include -I/usr/local/arm/opencv-install/include/opencv -I/usr/local/arm/opencv-install/include/opencv2 -I. -I. -o ImageProc.o ImageProc.cpp
ImageProc.cpp: In function 'cv::Mat QImage2cvMat(QImage)':
ImageProc.cpp:108: warning: enumeration value 'Format_Invalid' not handled in switch
ImageProc.cpp:108: warning: enumeration value 'Format_Mono' not handled in switch
ImageProc.cpp:108: warning: enumeration value 'Format_MonoLSB' not handled in switch
ImageProc.cpp:108: warning: enumeration value 'Format_RGB16' not handled in switch
ImageProc.cpp:108: warning: enumeration value 'Format_ARGB8565_Premultiplied' not handled in switch
ImageProc.cpp:108: warning: enumeration value 'Format_RGB666' not handled in switch
ImageProc.cpp:108: warning: enumeration value 'Format_ARGB6666_Premultiplied' not handled in switch
ImageProc.cpp:108: warning: enumeration value 'Format_RGB555' not handled in switch
ImageProc.cpp:108: warning: enumeration value 'Format_ARGB8555_Premultiplied' not handled in switch
ImageProc.cpp:108: warning: enumeration value 'Format_RGB444' not handled in switch
ImageProc.cpp:108: warning: enumeration value 'Format_ARGB4444_Premultiplied' not handled in switch
ImageProc.cpp:108: warning: enumeration value 'NImageFormats' not handled in switch
ImageProc.cpp: At global scope:
ImageProc.cpp:124: note: the mangling of 'va_list' has changed in GCC 4.4
/opt/qt-4.7.1/bin/moc -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/opt/qt-4.7.1/mkspecs/qws/linux-arm-g++ -I. -I/opt/qt-4.7.1/include/QtCore -I/opt/qt-4.7.1/include/QtNetwork -I/opt/qt-4.7.1/include/QtGui -I/opt/qt-4.7.1/include -I/usr/local/arm/opencv-install/include -I/usr/local/arm/opencv-install/include/opencv -I/usr/local/arm/opencv-install/include/opencv2 -I. -I. dialog.h -o moc_dialog.cpp
arm-linux-g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/opt/qt-4.7.1/mkspecs/qws/linux-arm-g++ -I. -I/opt/qt-4.7.1/include/QtCore -I/opt/qt-4.7.1/include/QtNetwork -I/opt/qt-4.7.1/include/QtGui -I/opt/qt-4.7.1/include -I/usr/local/arm/opencv-install/include -I/usr/local/arm/opencv-install/include/opencv -I/usr/local/arm/opencv-install/include/opencv2 -I. -I. -o moc_dialog.o moc_dialog.cpp
moc_dialog.cpp:85: note: the mangling of 'va_list' has changed in GCC 4.4
arm-linux-g++ -Wl,-O1 -Wl,-rpath,/opt/qt-4.7.1/lib -o OpenMat main.o dialog.o ImageProc.o moc_dialog.o    -L/opt/qt-4.7.1/lib /usr/local/arm/opencv-install/lib/libopencv_highgui.so /usr/local/arm/opencv-install/lib/libopencv_legacy.so /usr/local/arm/opencv-install/lib/libopencv_imgproc.so /usr/local/arm/opencv-install/lib/libopencv_flann.so /usr/local/arm/opencv-install/lib/libopencv_ml.so /usr/local/arm/opencv-install/lib/libopencv_core.so /usr/local/arm/opencv-install/lib/libopencv_photo.so /usr/local/arm/opencv-install/lib/libopencv_contrib.so /usr/local/arm/opencv-install/lib/libopencv_video.so /usr/local/arm/opencv-install/lib/libopencv_objdetect.so /usr/local/arm/opencv-install/lib/libopencv_nonfree.so /usr/local/arm/opencv-install/lib/libopencv_calib3d.so /usr/local/arm/opencv-install/lib/libopencv_features2d.so -lQtGui -L/usr/local/tslib/lib -L/opt/qt-4.7.1/lib -lQtNetwork -lQtCore -lpthread
/usr/local/arm/arm-2009q3/bin/../lib/gcc/arm-none-linux-gnueabi/4.4.1/../../../../arm-none-linux-gnueabi/bin/ld: warning: libz.so.1, needed by /usr/local/arm/opencv-install/lib/libopencv_highgui.so, not found (try using -rpath or -rpath-link)
/usr/local/arm/arm-2009q3/bin/../lib/gcc/arm-none-linux-gnueabi/4.4.1/../../../../arm-none-linux-gnueabi/bin/ld: warning: libjpeg.so.9, needed by /usr/local/arm/opencv-install/lib/libopencv_highgui.so, not found (try using -rpath or -rpath-link)
/usr/local/arm/arm-2009q3/bin/../lib/gcc/arm-none-linux-gnueabi/4.4.1/../../../../arm-none-linux-gnueabi/bin/ld: warning: libpng16.so.16, needed by /usr/local/arm/opencv-install/lib/libopencv_highgui.so, not found (try using -rpath or -rpath-link)
/usr/local/arm/arm-2009q3/bin/../lib/gcc/arm-none-linux-gnueabi/4.4.1/../../../../arm-none-linux-gnueabi/bin/ld: warning: libavcodec.so.56, needed by /usr/local/arm/opencv-install/lib/libopencv_highgui.so, not found (try using -rpath or -rpath-link)
/usr/local/arm/arm-2009q3/bin/../lib/gcc/arm-none-linux-gnueabi/4.4.1/../../../../arm-none-linux-gnueabi/bin/ld: warning: libavformat.so.56, needed by /usr/local/arm/opencv-install/lib/libopencv_highgui.so, not found (try using -rpath or -rpath-link)
/usr/local/arm/arm-2009q3/bin/../lib/gcc/arm-none-linux-gnueabi/4.4.1/../../../../arm-none-linux-gnueabi/bin/ld: warning: libavutil.so.54, needed by /usr/local/arm/opencv-install/lib/libopencv_highgui.so, not found (try using -rpath or -rpath-link)
/usr/local/arm/arm-2009q3/bin/../lib/gcc/arm-none-linux-gnueabi/4.4.1/../../../../arm-none-linux-gnueabi/bin/ld: warning: libswscale.so.3, needed by
/opt/qt-4.7.1/lib/libQtGui.so: undefined reference to `ts_read_raw'
/opt/qt-4.7.1/lib/libQtGui.so: undefined reference to `inflateEnd'
/opt/qt-4.7.1/lib/libQtGui.so: undefined reference to `ts_open'
/usr/local/arm/opencv-install/lib/libopencv_highgui.so: undefined reference to `png_set_IHDR@PNG16_0'
/usr/local/arm/opencv-install/lib/libopencv_core.so: undefined reference to `gzrewind'
/usr/local/arm/opencv-install/lib/libopencv_highgui.so: undefined reference to `avformat_find_stream_info@LIBAVFORMAT_56'
/opt/qt-4.7.1/lib/libQtGui.so: undefined reference to `png_set_tRNS@PNG16_0'
/usr/local/arm/opencv-install/lib/libopencv_highgui.so: undefined reference to `av_free_packet@LIBAVCODEC_56'
/usr/local/arm/opencv-install/lib/libopencv_highgui.so: undefined reference to `avformat_free_context@LIBAVFORMAT_56'
/opt/qt-4.7.1/lib/libQtGui.so: undefined reference to `ts_fd'
/opt/qt-4.7.1/lib/libQtGui.so: undefined reference to `png_set_text@PNG16_0'
/opt/qt-4.7.1/lib/libQtGui.so: undefined reference to `png_set_PLTE@PNG16_0'
/usr/local/arm/opencv-install/lib/libopencv_core.so: undefined reference to `gzgets'
/usr/local/arm/opencv-install/lib/libopencv_highgui.so: undefined reference to `av_sub_q@LIBAVUTIL_54'
/usr/local/arm/opencv-install/lib/libopencv_highgui.so: undefined reference to `png_write_end@PNG16_0'
/usr/local/arm/opencv-install/lib/libopencv_highgui.so: undefined reference to `png_set_packing@PNG16_0'
/usr/local/arm/opencv-install/lib/libopencv_highgui.so: undefined reference to `png_read_info@PNG16_0'
/usr/local/arm/opencv-install/lib/libopencv_highgui.so: undefined reference to `png_read_image@PNG16_0'
/usr/local/arm/opencv-install/lib/libopencv_highgui.so: undefined reference to `avcodec_flush_buffers@LIBAVCODEC_56'
/opt/qt-4.7.1/lib/libQtGui.so: undefined reference to `png_set_filler@PNG16_0'
/usr/local/arm/opencv-install/lib/libopencv_highgui.so: undefined reference to `avcodec_find_encoder@LIBAVCODEC_56
/opt/qt-4.7.1/lib/libQtGui.so: undefined reference to `ts_read'
/usr/local/arm/opencv-install/lib/libopencv_highgui.so: undefined reference to `jpeg_alloc_huff_table@LIBJPEG_9.0'
/usr/local/arm/opencv-install/lib/libopencv_highgui.so: undefined reference to `sws_scale@LIBSWSCALE_3'
/opt/qt-4.7.1/lib/libQtGui.so: undefined reference to `png_write_chunk@PNG16_0'
/usr/local/arm/opencv-install/lib/libopencv_highgui.so: undefined reference to `sws_getCachedContext@LIBSWSCALE_3'
collect2: ld returned 1 exit status
make: *** [OpenMat] Error 1


回复

使用道具 举报

 楼主| 发表于 2016-5-14 18:23:16 | 显示全部楼层
好奇怪啊 又可以用了
回复 支持 反对

使用道具 举报

发表于 2016-8-1 16:15:36 | 显示全部楼层
可以请教一下如何在arm上编译Opencv吗?我是新手,qq1554979274
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|OpenCV中文网站  

GMT+8, 2019-9-16 14:01 , Processed in 0.042302 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表