Building opencv-master for Python
I want to build the latest version of OpenCV (dev 3.0.0) from source. I followed the instructions in official tutorial and was able to successfully complete the build.
But importing cv2.pyd in Python (after copying to \Python27\Lib\site-packages) throws an error "ImportError: DLL load failed: The specified module could not be found."
I found 5 files named cv2.* after the build:
cv2.obj in \build\modules\python\opencv_python.dir\Release
cv2.pyd, cv2.obj, cv2.exp, cv2.pdb in \build\lib\Release
What are these files (especially the pyd files) and why aren't they usable like in 2.4.6 prebuilt version which can just be plugged into the \Python27\Lib\site-packages folder directly?
Thanks!
https://opencv-python-tutroals.readthedocs.org/en/latest/py_tutorials/py_setup/py_setup_in_windows/py_setup_in_windows.html#install-opencv-python-in-windows
@Abid Thanks, but I already referred to the link. I was able to build, but it was dynamically linked, and I didn't add the DLL path to the PATH env variable. I fixed the problem from @berak's answer. BTW, is this the official OpenCV-Python site for the next release?
@Abid it's strange that I couldn't find "INSTALL" in my OpenCv.sln
@pyro : berak's answer is correct. Even I had the same issue and @berak gave me the same solution that worked.
But it is strange you don't have INSTALL. But still you can copy cv2.pyd files to python site packages.
No, it is not official site... it is just for time being. That site will be integrated to docs.opencv.org, just like official OpenCV C++ tutorials.