[問題]VC++ Directorries 設定無效
開發平台(Platform): (Ex: VC++, GCC, Linux, ...)
VC2015 community
額外使用到的函數庫(Library Used): (Ex: OpenGL, ...)
Opencv
問題(Question):
1.
之前看教學都是將opencv dll的路徑加在環境變數Path裡
但現在不太想這樣做,所以直接將Lib & dll路徑設定在專案的
VC++ Directorries中的
Exclude Directorries
Library Directorries
分別加入
D:\Work\Code\Supporting_Library\OpenCV\x86\vc10\bin;
D:\Work\Code\Supporting_Library\OpenCV\x86\vc10\lib;
但即使是這樣還是會有找不到dll的問題
2.
另外一個問題就是上面設定應該是跟著專案走的
但我重開一個專案後
VC++ Directorries 中的設定還是存在....
餵入的資料(Input):
預期的正確結果(Expected Output):
不用更改環境變數也能順利執行程式
錯誤結果(Wrong Output):
找不到dll檔 即使在VC++ Directorries已設定路徑
ex:遺失opencv_core242d.dll
程式碼(Code):(請善用置底文網頁, 記得排版)
補充說明(Supplement):
在環境變數裡(Path) 加回上面的路徑重開機後就可以了,表示路徑應該沒設錯
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 111.251.232.207
※ 文章網址: https://www.ptt.cc/bbs/C_and_CPP/M.1467085369.A.2E4.html
※ 編輯: hardman1110 (111.251.232.207), 06/28/2016 11:44:35
→
06/28 12:12, , 1F
06/28 12:12, 1F
→
06/28 12:12, , 2F
06/28 12:12, 2F
→
06/28 13:06, , 3F
06/28 13:06, 3F
→
06/28 13:07, , 4F
06/28 13:07, 4F
→
06/28 13:32, , 5F
06/28 13:32, 5F
→
06/28 13:33, , 6F
06/28 13:33, 6F
→
06/28 16:39, , 7F
06/28 16:39, 7F
→
06/30 00:55, , 8F
06/30 00:55, 8F
→
06/30 00:55, , 9F
06/30 00:55, 9F
→
06/30 00:57, , 10F
06/30 00:57, 10F