同樣的老錯誤:OpenCV的編譯錯誤和Xcode 5
Undefined symbols for architecture x86_64:
"cv::applyColorMap(cv::_InputArray const&, cv::_OutputArray const&, int)", referenced from:
_main in test.o
"cv::subspaceProject(cv::_InputArray const&, cv::_InputArray const&, cv::_InputArray const&)", referenced from:
_main in test.o
"cv::subspaceReconstruct(cv::_InputArray const&, cv::_InputArray const&, cv::_InputArray const&)", referenced from:
_main in test.o
"cv::createEigenFaceRecognizer(int, double)", referenced from:
_main in test.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我嘗試的代碼是:
https://gist.github.com/hihell/0520674421fe0cb26d38
我已經改變了C++標準庫 「編譯器的默認」,但錯誤仍然在那裏。
但是,其他簡單的代碼,如顯示圖片或打開相機工作正常,具有相同的設置。
版本:
- 在OpenCV是由釀造安裝,版本2.4.8
- 版本的Xcode 5.1.1
- OSX版本10.9.3誰能幫助我?
任何幫助或暗示多於歡迎