Hello all,
I've recently encountered a weird bug on my end.
Basically, when I install the opencv package, vcpkg copies the built library in this folder
.\vcpkg_installed\x86-windows\x86-windows\include\opencv2.4This means, when I try to include the files in my code I have to write them like this:
#include <opencv2.4/opencv2/opencv.hpp>Now if I try to build you can already imagine what happens. I get a compiler error telling my that inside
opencv.hpp the following include #include "opencv2/opencv_modules.hpp" couldn't be resolved.It makes sense since the folders
opencv2 and opencv should be placed directly under the include folder.Has anyone experienced this? Does anyone know how I could fix it without moving the folders by hand?
Thanks in advance!
PS: I already tried with the package
opencv and it's the same. It puts the library under .\vcpkg_installed\x86-windows\x86-windows\include\opencv4\opencv2Edit: I guess I can just modify my project properties to include that additional include directory. But then my question is, shouldn't vcpkg take care of this exactly?
https://redd.it/1oud8ct
@r_cpp