Reputation: 1
so I've been trying to set up OpenCV for Python via manual compiling in order to benefit from the usuage of my GPU.
After a lot of errors, my current problem is that everytime I try to build it, it does so for around 20 minutes before it just stops. It doesn't stop with an error, but after trying a second time the last error before the stop was the same and the following:
A:\opencvpython\opencv_contrib-4.x\modules\cudawarping\test\test_remap.cpp(174,1): error C2065: "DIFFERENT_SIZES_EXTRA" : undeclared identifier [A:\opencvpython\build\modules\world\opencv_test_cudawarping.vcxproj] A:\opencvpython\opencv_contrib-4.x\modules\cudawarping\test\test_remap.cpp(199,1): error C2065: "DIFFERENT_SIZES_EXTRA" : undeclared identifier [A:\opencvpython\build\modules\world\opencv_test_cudawarping.vcxproj]
I know that the called file seems to have a problem with the identifer, but given the situation that I redownloaded OpenCV at from the official website, I thought that it maybe has to be something else.
I followed the steps from https://machinelearningprojects.net/build-opencv-with-cuda-and-cudnn/ and the only minor oversight I had was, that it didn't detect python3. It found the python (for build) which led to the correct python.exe (Anaconda), but didn't do so for the rest. So I manually added the lib, include, site-package and numpy path, but im still not 100% certain that this was enough.
I kinda came to a dead end, what I could think of is to download OpenCV again and maybe watch out that there is nothing wrong with the extracting process(???)
Thanks for anyone attempting to help! (Btw, I added the complete console log below) https://justpaste.it/8gba2
Upvotes: 0
Views: 261