我正在使用Opencv 3.1和wxwidgets 3.1構建一個項目。我使用的代碼: [wxOpenCv Demo 1]opencv 3.1 wxwidgets cv :: imwrite error
我嘗試使用函數cv :: imwrite()添加寫入幀對象。 (我改變了的C調用C++的如:cvQueryFrame(m_pCapture)到m_pCapture >> m_CurFrame;)
我得到這個錯誤:
Undefined symbols for architecture x86_64:
"cv::imwrite(cv::String const&, cv::_InputArray const&, std::vector > const&)", referenced from:
CCamera::SaveFrame() in camera.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
沒有wxWidgets的OpenCV的功能,做工精細。所以它似乎與wxwidgets和opencv的組合有關。
這工作得很好用的wxWidgets和OpenCV:
cv::imshow("tmp",m_CurFrame);
cv::waitKey(4);
// cv::imwrite(Tmp , m_CurFrame);
如果我去掉最後一行,我得到的錯誤。
OS X:10 Yosemite和我使用默認的編譯器(蘋果LLVM 7.0)
我不知道怎麼處理這件事!
@DanQuichot,什麼是你的OS /編譯? – Igor
OS X 10優勝美地和我使用默認編譯器(Apple LLVM 7.0) –
您能顯示您傳遞給imwrite的什麼類型嗎? – Igor