LoginSignup
3
2

More than 3 years have passed since last update.

openframeworks0.9.8でofxCvを使うときにエラー出た

Last updated at Posted at 2019-06-26

環境

Windows10
Visual Studio 2017
openframeworks 0.9.8

エラーの内容

ofxCvとofxOpenCVを追加したプロジェクトをつくって、何もコードを書かずに実行したらエラーがでた。

LNK2001 外部シンボル ""class ofMatrix4x4 __cdecl ofxCv::makeMatrix(class cv::Mat,class cv::Mat)" (?makeMatrix@ofxCv@@YA?AVofMatrix4x4@@VMat@cv@@0@Z)" は未解決です。
LNK2001 外部シンボル ""void __cdecl ofxCv::applyMatrix(class ofMatrix4x4 const &)" (?applyMatrix@ofxCv@@YAXAEBVofMatrix4x4@@@Z)" は未解決です。
LNK1120 2 件の未解決の外部参照

対応

こちらを参考にしました。
https://www.takasay.com/entry/2016/02/24/200941
https://forum.openframeworks.cc/t/ofxfacetracker-error-on-windows/21938

プロジェクトのプロパティ / C/C++ / 出力ファイル / オブジェクトファイル名 を

$(IntDir)

から

$(IntDir)/%(RelativeDir)/

に変えるとできました。

3
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2