Closed huihut closed 5 years ago
Hi,
I haven't tested your exact boost versions and OpenCV-4 yet, but these are linker errors and that's a bit weird. I'd guess it's something with your local configuration. I suggest you play around a bit with the packages and build system and ask on a help page like StackOverflow.com or something like that.
The compile error with CV_BGR2BGRA
you can probably easily fix, you just need to find out what the equivalent in OpenCV-4 is. Possibly something similar and namespaced like cv::...
.
Thanks, I used the vcpkg build system to install boost and opencv, and then compile successfully.
I compiled successfully, but I can't run the fit-model. ( can't find some dll )
When I add these missing dlls, the application does not start properly. ( error 0xc000007b )
Moin,
in case anyone stumbles across the CV_BGR2BGRA not being defined: In recent openCV versions that has been renamed to COLOR_BGR2BGRA. Since the namespace isn't used, just change the bit line 103 in Texture.hpp to "cv::COLOR_BGR2BGRA", that fixes the compilation error.
The CV_BGR2BGRA
error in Texture.hpp
is fixed in the latest devel branch, where we removed the dependency of OpenCV in Texture
(23d07554a014d7ce1a1fcafe13e4173074175512).
Build environment
CMake log
VS error
generate-obj.vcxproj
fit-model-simple.vcxproj