This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Build error: undefined reference to `cv::imread(cv::String const&, int)' on QT

Other Parts Discussed in Thread: TIDA-00254

Hi

when I build ‘dlp_structured_light_sdk’ on Qt Creater 3.5.1(opensource) based on Qt 5.5.1(MSVC 2013, 32bit) , it got some errors, as follows: 

C:\TexasInstruments-DLP\TIDA-00254_3D_Scanner_LCr4500_PGFlea3-1.1\dlp_structured_light_sdk\src\common\image\image.cpp:397: error: undefined reference to `cv::imread(cv::String const&, int)'

C:\TexasInstruments-DLP\TIDA-00254_3D_Scanner_LCr4500_PGFlea3-1.1\dlp_structured_light_sdk\reference_designs\build-3D_Scanner_LCr4500_PGcam-Desktop_Qt_5_5_1_MinGW_32bit-Debug\debug\image.o:-1: In function `ZNK3dlp5Image4SaveERKSsRKj':

C:\TexasInstruments-DLP\TIDA-00254_3D_Scanner_LCr4500_PGFlea3-1.1\dlp_structured_light_sdk\src\common\image\image.cpp:594: error: undefined reference to `cv::imwrite(cv::String const&, cv::_InputArray const&, std::vector<int, std::allocator<int> > const&)'

C:\TexasInstruments-DLP\TIDA-00254_3D_Scanner_LCr4500_PGFlea3-1.1\dlp_structured_light_sdk\src\common\image\image.cpp:610: error: undefined reference to `cv::imwrite(cv::String const&, cv::_InputArray const&, std::vector<int, std::allocator<int> > const&)'

C:\TexasInstruments-DLP\TIDA-00254_3D_Scanner_LCr4500_PGFlea3-1.1\dlp_structured_light_sdk\src\common\image\image.cpp:617: error: undefined reference to `cv::imwrite(cv::String const&, cv::_InputArray const&, std::vector<int, std::allocator<int> > const&)'

collect2.exe:-1: error: error: ld returned 1 exit status

I installed cmake-3.4.3-win32-x86.exe and opencv-3.1.0.exe on my win7 PC following TIDA-00254: Accurate Point Cloud Generation for 3D Machine Vision Applications using DLP®Technology and Industrial Camera User's Guide.

How can I solve these problems? Help me, please! Thanks.

Best regards.

Chester