Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

unable to link static opencv

I have compiled successfully the new rc version of opencv with the static libraries enabled. However, when I am trying to link my application to these libraries I am getting a many errors:

....
....
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.2/../../../../lib/libopencv_imgproc.a(templmatch.cpp.o): In function `cv::crossCorr(cv::Mat const&, cv::Mat const&, cv::Mat&, cv::Size_<int>, int, cv::Point_<int>, double, int)':
(.text._ZN2cv9crossCorrERKNS_3MatES2_RS0_NS_5Size_IiEEiNS_6Point_IiEEdi+0x5a2): undefined reference to `cv::getOptimalDFTSize(int)'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.2/../../../../lib/libopencv_imgproc.a(templmatch.cpp.o): In function `cv::crossCorr(cv::Mat const&, cv::Mat const&, cv::Mat&, cv::Size_<int>, int, cv::Point_<int>, double, int)':
(.text._ZN2cv9crossCorrERKNS_3MatES2_RS0_NS_5Size_IiEEiNS_6Point_IiEEdi+0xe81): undefined reference to `cv::dft(cv::_InputArray const&, cv::_OutputArray const&, int, int)'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.2/../../../../lib/libopencv_imgproc.a(templmatch.cpp.o): In function `cv::crossCorr(cv::Mat const&, cv::Mat const&, cv::Mat&, cv::Size_<int>, int, cv::Point_<int>, double, int)':
(.text._ZN2cv9crossCorrERKNS_3MatES2_RS0_NS_5Size_IiEEiNS_6Point_IiEEdi+0x1a2a): undefined reference to `cv::dft(cv::_InputArray const&, cv::_OutputArray const&, int, int)'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.2/../../../../lib/libopencv_imgproc.a(templmatch.cpp.o): In function `cv::crossCorr(cv::Mat const&, cv::Mat const&, cv::Mat&, cv::Size_<int>, int, cv::Point_<int>, double, int)':
(.text._ZN2cv9crossCorrERKNS_3MatES2_RS0_NS_5Size_IiEEiNS_6Point_IiEEdi+0x1b01): undefined reference to `cv::mulSpectrums(cv::_InputArray const&, cv::_InputArray const&, cv::_OutputArray const&, int, bool)'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.2/../../../../lib/libopencv_imgproc.a(templmatch.cpp.o): In function `cv::crossCorr(cv::Mat const&, cv::Mat const&, cv::Mat&, cv::Size_<int>, int, cv::Point_<int>, double, int)':
(.text._ZN2cv9crossCorrERKNS_3MatES2_RS0_NS_5Size_IiEEiNS_6Point_IiEEdi+0x1b62): undefined reference to `cv::dft(cv::_InputArray const&, cv::_OutputArray const&, int, int)'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.2/../../../../lib/libopencv_imgproc.a(templmatch.cpp.o): In function `cv::matchTemplateMask(cv::_InputArray const&, cv::_InputArray const&, cv::_OutputArray const&, int, cv::_InputArray const&)':
(.text._ZN2cvL17matchTemplateMaskERKNS_11_InputArrayES2_RKNS_12_OutputArrayEiS2_+0x2835): undefined reference to `cv::sqrt(cv::_InputArray const&, cv::_OutputArray const&)'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.2/../../../../lib/libopencv_imgproc.a(templmatch.cpp.o): In function `cv::matchTemplate(cv::_InputArray const&, cv::_InputArray const&, cv::_OutputArray const&, int, cv::_InputArray const&)':
(.text._ZN2cv13matchTemplateERKNS_11_InputArrayES2_RKNS_12_OutputArrayEiS2_+0x1e80): undefined reference to `ippicviCrossCorrNorm_8u32f_C1R'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.2/../../../../lib/libopencv_imgproc.a(templmatch.cpp.o): In function `cv::matchTemplate(cv::_InputArray const&, cv::_InputArray const&, cv::_OutputArray const&, int, cv::_InputArray const&)':
(.text._ZN2cv13matchTemplateERKNS_11_InputArrayES2_RKNS_12_OutputArrayEiS2_+0x1e9e): undefined reference to `ippicviCrossCorrNormGetBufferSize'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.2/../../../../lib/libopencv_imgproc.a(templmatch.cpp.o): In function `cv::matchTemplate(cv::_InputArray const&, cv::_InputArray const&, cv::_OutputArray const&, int, cv::_InputArray const&)':
(.text._ZN2cv13matchTemplateERKNS_11_InputArrayES2_RKNS_12_OutputArrayEiS2_+0x1ead): undefined reference to `ippicvsMalloc_8u'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.2/../../../../lib/libopencv_imgproc.a(templmatch.cpp.o): In function `cv::matchTemplate(cv::_InputArray const&, cv::_InputArray const&, cv::_OutputArray const&, int, cv::_InputArray const&)':
(.text._ZN2cv13matchTemplateERKNS_11_InputArrayES2_RKNS_12_OutputArrayEiS2_+0x1efd): undefined reference to `ippicvsFree'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.2/../../../../lib/libopencv_imgproc.a(templmatch.cpp.o): In function `cv::matchTemplate(cv::_InputArray const&, cv::_InputArray const&, cv::_OutputArray const&, int, cv::_InputArray const&)':
(.text._ZN2cv13matchTemplateERKNS_11_InputArrayES2_RKNS_12_OutputArrayEiS2_+0x1fc6): undefined reference to `ippicviCrossCorrNorm_32f_C1R'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.2/../../../../lib/libopencv_imgproc.a(templmatch.cpp.o): In function `cv::matchTemplate(cv::_InputArray const&, cv::_InputArray const&, cv::_OutputArray const&, int, cv::_InputArray const&)':
(.text._ZN2cv13matchTemplateERKNS_11_InputArrayES2_RKNS_12_OutputArrayEiS2_+0x2055): undefined reference to `ippicviSqrDistanceNorm_8u32f_C1R'
....
....
....

any idea, of what is the issue?