ceres solverのサンプルは動いたけど、opencvの自分のプログラムに組み込んだら、ビルド時に下記のエラーが発生しました。
"error ERROR macro is defined. Define GLOG_NO_ABBREVIATED_SEVERITIES before including logging.h. See the document for detail."
調べてみるとglogとWindows.hは対立するそうなので、Windows.hをインクルードしているファイルに"#define NOGDI"を追加すれば直りました。
参考:https://code.google.com/archive/p/google-glog/issues/33
More than 5 years have passed since last update.
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme