You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When attempting to install "opencv", it only installs "opencv4" with no error messages. This leads to issues when attempting to include the library in my Visual Studio projects, with the error cannot open source file "opencv/opencv.hpp".
Environment
OS: Windows 11 (Desktop)
Compiler: MSVC
To Reproduce
Steps to reproduce the behavior:
Run ./vcpkg install opencv in the vcpkg root folder (or just vcpkg install with "opencv" in the vcpkg.json file if you are in manifest mode)
After it says it successfully installed, navigate to the "include" folder within the installation folder (usually "installed/x64-windows/include")
If using a manifest file, put #include <opencv/opencv.hpp> at the top of any source file and attempt to build
Minimum Repoductable Code
Install vcpkg, including running vcpkg integrate install
Make sure to add the opencv dependency to the manifest file and to add #include <opencv/opencv.hpp> to the top of the initial file (as per the instructions)
Attempt to build
Expected behavior
I expect to be able to include opencv in my project, and there to be an "opencv" include folder as there always has been.
Errors
When attempting to build my Visual Studio C++ project with opencv included, it gives the error cannot open source file "opencv/opencv.hpp".
There is only a "opencv4" include folder, which leads to VS not being able to find the correct include path for "opencv/opencv.hpp". I've noticed sometimes it is even "opencv2".
There appears to be no build errors for specifically vcpkg or for building opencv; it just seems like they are not linking correctly and/or the include folders do not exist.
Additional context
I have been working on the same project with the same manifest file for the past 2-3 months and had no issues. This just started happening in the past few days.
I tried running git pull on the vcpkg root folder, and I tried updating the baseline for my project manifest. I have fully reinstalled vcpkg multiple times and have followed the official MSVC manifest instructions. I have cleared all of the cache from my "AppData/Local/vcpkg" folder and "AppData/Local/Temp" folder as well. Nothing has worked.
Interestingly, it appears that the project on my laptop is still building/working.
The text was updated successfully, but these errors were encountered:
Describe the bug
When attempting to install "opencv", it only installs "opencv4" with no error messages. This leads to issues when attempting to include the library in my Visual Studio projects, with the error
cannot open source file "opencv/opencv.hpp"
.Environment
To Reproduce
Steps to reproduce the behavior:
./vcpkg install opencv
in the vcpkg root folder (or justvcpkg install
with "opencv" in the vcpkg.json file if you are in manifest mode)#include <opencv/opencv.hpp>
at the top of any source file and attempt to buildMinimum Repoductable Code
vcpkg integrate install
opencv
dependency to the manifest file and to add#include <opencv/opencv.hpp>
to the top of the initial file (as per the instructions)Expected behavior
I expect to be able to include opencv in my project, and there to be an "opencv" include folder as there always has been.
Errors
When attempting to build my Visual Studio C++ project with opencv included, it gives the error
cannot open source file "opencv/opencv.hpp"
.There is only a "opencv4" include folder, which leads to VS not being able to find the correct include path for "opencv/opencv.hpp". I've noticed sometimes it is even "opencv2".
There appears to be no build errors for specifically vcpkg or for building opencv; it just seems like they are not linking correctly and/or the include folders do not exist.
Additional context
I have been working on the same project with the same manifest file for the past 2-3 months and had no issues. This just started happening in the past few days.
I tried running
git pull
on the vcpkg root folder, and I tried updating the baseline for my project manifest. I have fully reinstalled vcpkg multiple times and have followed the official MSVC manifest instructions. I have cleared all of the cache from my "AppData/Local/vcpkg" folder and "AppData/Local/Temp" folder as well. Nothing has worked.Interestingly, it appears that the project on my laptop is still building/working.
The text was updated successfully, but these errors were encountered: