我正在运行 Windows 8 64 位并使用 Code::Blocks 以及 Eclipse 作为 OpenCV v.2.4.4 的 IDE。
我正在关注 http://docs.opencv.org/doc/tutorials/core/basic_linear_transform/basic_linear_transform.html#basic-linear-transform 上的在线教程
每当我在 opencv\build\x64\mingw\lib\
中包含 .dll.a
文件以及 opencv\build\include 中所需的 header 时
在我的 IDE 设置和相应的 opencv\build\x64\mingw\bin
在我的 PATH 变量中,我收到有关 opencv 函数的 undefined reference 的编译时错误。
每当我在 IDE 设置中包含相应的 32 位 dll 文件并在 PATH 变量中设置 32 位 dll 文件的路径时,程序都可以正常编译。但是,当我打开 .exe 文件时,它说您的计算机中缺少“libopencv_core244.dll
”。重新安装应用程序。 PATH 变量设置正确,我不明白这个问题..
我正在尽可能多地在网上挖掘这个问题,但仍然无法解决这个问题...请帮助...
最佳答案
更新 PATH 变量后重新启动有效!
关于c++ - 未找到 opencv .dll 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15718610/