私のコードはエラーなしでコンパイルされていますが、リンク部分にエラーがあるようです。抑制状態エラーt LNK1104 tファイル 'IlmImfd.lib'を開くことができません
私はこのようなプロパティを設定します。
私も Linker -> General -> Additional library directories
と Linker -> Input -> Additional Dependencies
に必要なファイルを追加したことはまだその後、私にエラーを与えました。
コード:
#include "opencv2/core.hpp"
#include "C:/Users/Downloads/opencv_contrib-master/opencv_contrib-master/modules/face/include/opencv2/face.hpp"
#include "opencv2/highgui.hpp"
#include "opencv2/imgproc.hpp"
#include "opencv2/objdetect.hpp"
#include <iostream>
#include <fstream>
#include <sstream>
using namespace cv;
using namespace cv::face;
using namespace std;
(出力)エラー行:
Severity Code Description Project File Line Suppression State
Error LNK1104 cannot open file 'IlmImfd.lib' opencvTry
私はlibのファイルと同じコードでプロジェクトをやり直すしようとすると、付属(出力):
Severity Code Description Project File Line Suppression State
Error LNK2019 unresolved external symbol "public: static struct
cv::Ptr<class cv::face::FisherFaceRecognizer> __cdecl
cv::face::FisherFaceRecognizer::create(int,double)" (
[email protected]@[email protected]@@SA?AU?
[email protected]@[email protected]@@@[email protected]@Z) referenced in function main
opencvTry C:\Users\151554F\Documents\Visual Studio 2017\Projects\In
progress\Face recog\opencvTry\try.obj 1
Severity Code Description Project File Line Suppression State
Error LNK2019 unresolved external symbol "public: int __cdecl
cv::face::FaceRecognizer::predict(class cv::_InputArray const &)const " (?
[email protected]@[email protected]@@[email protected]@@Z) referenced in
function main opencvTry C:\Users\151554F\Documents\Visual Studio
2017\Projects\In progress\Face recog\opencvTry\try.obj 1
他の質問でも同じ解決策を見ていましたが、これを以前に使っていましたが、この質問をする前に試してみました。しかし、それは私のために働いていないようです。 新しいものを追加しようとするたびに リンカー - 入力 - 追加の依存関係 ファイルが開くことができないというエラーが表示されます。 – james
私はまた、プロジェクトをやり直そうとしました。私が編集した上記の出力が表示されています。私は本当にこれらのすべてを引き起こす原因がわからないので、今は固執しています。 – james