error in qt when use openCV libs

254 views
Skip to first unread message

somi

unread,
Dec 11, 2011, 5:18:15 AM12/11/11
to android-qt
hi
i’m programming in QT for android device and need to use openCV for
capture from camera. i already use qt creator and linking opencv and
use camera, but in qt for android (necessitas) when build program,
show this errors:

grfmt_tiff.cpp:(.text._ZN2cv11TiffDecoder10readHeaderEv+0×10):
undefined reference to `TIFFOpen’
grfmt_tiff.cpp:(.text._ZN2cv11TiffDecoder10readHeaderEv+0×28):
undefined reference to `TIFFGetField’
grfmt_tiff.cpp:(.text._ZN2cv11TiffDecoder10readHeaderEv+0×42):
undefined reference to `TIFFGetField’
grfmt_tiff.cpp:(.text._ZN2cv11TiffDecoder10readHeaderEv+0×52):
undefined reference to `TIFFGetField’
grfmt_tiff.cpp:(.text._ZN2cv11TiffDecoder10readHeaderEv+0×72):
undefined reference to `TIFFGetField’
grfmt_tiff.cpp:(.text._ZN2cv11TiffDecoder10readHeaderEv+0×7e):
undefined reference to `TIFFGetField’
C:\OpenCV2.0\lib\armeabi-v7a\libopencv_highgui.a(grfmt_tiff.o): In
function `cv::TiffDecoder::readData(cv::Mat&)’:
grfmt_tiff.cpp:(.text._ZN2cv11TiffDecoder8readDataERNS_3MatE+0×78):
undefined reference to `TIFFIsTiled’
grfmt_tiff.cpp:(.text._ZN2cv11TiffDecoder8readDataERNS_3MatE+0×8a):
undefined reference to `TIFFGetField’
grfmt_tiff.cpp:(.text._ZN2cv11TiffDecoder8readDataERNS_3MatE+0xbc):
undefined reference to `TIFFGetField’
.
.
.

can necessitas support openCV?
sorry for my english.

alejandro garcés

unread,
Sep 14, 2012, 7:08:20 AM9/14/12
to andro...@googlegroups.com
Hello somi.

Did you were able to link opencv for android with Necessitas?
Which version of Necessitas did you used?

Regards!

CHEN Xing

unread,
Sep 14, 2012, 12:07:28 PM9/14/12
to andro...@googlegroups.com
Make sure the .a files are in the right order:
http://chenxing.name/blog/2012/04/qt-android-necessitas-opencv/

The version of Necessitas doesn't seem to matter to me.

CHEN Xing / 陈醒
Reply all
Reply to author
Forward
0 new messages