2015-10-27 119 views
1

我不斷收到此錯誤「致命錯誤C1083:無法打開包含文件:'opencv2/core.hpp':沒有這樣的文件或目錄「。我使用的是Visual Studio 2012和OpenCV 3.0,opencv2/core.hpp在OpenCV 3中,所以我不確定問題在哪。我已經在調試屬性頁面中設置了額外的包含目錄。任何想法我的問題是什麼?致命錯誤C1083:無法打開包含文件:'opencv2/core.hpp':沒有這樣的文件或目錄

C/C++ - >常規 - >其他包含依賴關係 - > C:/ opencv/build; C:/ opencv/build/include; C:/ OpenCV的/生成/包含/ OpenCV的; C:/ opencv/modules/core/include; C:/ OpenCV的/模塊/ imgproc /包括; C:/ opencv/modules/flann/include; C:/ OpenCV的/模塊/ highgui /包括; C:/ opencv/modules/features2d/include; C:/ opencv/modules/calib3d/include; C:/ OpenCV的/模塊/毫升/包括; C:/ opencv/modules/video/include; C:/ OpenCV的/模塊/ objdetect /包括; C:/ opencv/modules/contrib/include; C:/ OpenCV的/模塊/非遊離/包括; C:/ opencv/modules/photo/include; C:/ OpenCV的/模塊/遺留/包括; C:/ opencv/modules/gpu/include; C:/ OpenCV的/模塊/拼接/包括; C:/ opencv/modules/ts/include; C:/ OpenCV的/模塊/ videostab /包括; %(AdditionalIncludeDirectories)

接頭 - >一般 - >附加的庫目錄 - > $(OPENCV_DIR)\ 86 \ VC11 \ staticlib

鏈接器 - >輸入 - > opencv_calib3d300d.lib; opencv_core300d.lib; opencv_features2d300d.lib; opencv_flann300d.lib; opencv_hal300d.lib; opencv_highgui300d.lib; opencv_imgcodecs300d.lib; opencv_imgproc300d.lib; opencv_ml300d.lib; opencv_objdetect300d.lib; opencv_photo300d.lib; opencv_shape300d.lib; opencv_stitching300d.lib; opencv_superres300d.lib; opencv_ts300d.lib; opencv_video300d.lib; opencv_videoio300d.lib; opencv_videostab300d.lib; libtiffd.lib; libpngd.lib; libjpegd.lib; libjasperd.lib; IlmImfd.lib; libwebpd.lib; ippicvmt.lib; zlibd.lib; comctl32.lib; vfw32.lib; %(附加依賴關係)

+0

顯示包含和庫目錄以及其他庫 – Miki

+0

我已經更新了此問題 – Boots2014

+0

其他include應該只是'C:/ opencv/build/include; ' – Miki

回答

0

「C/C++ - > General - > Additional include dependencies」config error。 您應該添加以下條目: 「C:/ opencv/build/include; C:/ opencv/build/include/opencv; C:/ opencv/build/include/opencv/opencv2;」

相關問題