Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我从这里下载了 windows 二进制文件。当我尝试运行我在网上找到的 hello world 程序时,我得到一个缺少标题的错误。所以我查看了文件夹(opencv2),只找到了一个名为 opencv 的标题...
我在模块文件夹中找到了丢失的头文件,所以我手动复制了我需要打开cv2的头文件。但是我得到了链接器错误,比如(函数_main中引用的未解析的外部符号_cvReleaseImage)
我做错了什么,我该如何解决?
包含文件在下面的路径opencvinstalledDir/opencv/build/include opencvinstalledDir/opencv/build/include/opencv和 opencvinstalledDir/opencv/build/include/opencv2.
opencvinstalledDir/opencv/build/include
opencvinstalledDir/opencv/build/include/opencv
opencvinstalledDir/opencv/build/include/opencv2
请检查这个..
安装opencv后,设置bin目录的环境变量。