diff options
| author | Stefano Sinigardi <stesinigardi@hotmail.com> | 2019-08-23 21:48:09 +0200 |
|---|---|---|
| committer | Victor Romero <romerosanchezv@gmail.com> | 2019-08-23 12:48:09 -0700 |
| commit | d85a40d478e683561578d1f63bb992f8805e16cc (patch) | |
| tree | 9f534acb6269442edb0a82df3b48ca6925720175 /ports/opencv3/0009-fix-uwp.patch | |
| parent | cf447c050c734fc71e5254ea9e05e1bc4a9d208d (diff) | |
| download | vcpkg-d85a40d478e683561578d1f63bb992f8805e16cc.tar.gz vcpkg-d85a40d478e683561578d1f63bb992f8805e16cc.zip | |
[OpenCV 3] update to v3.4.7 (#7658)
* [opencv3] uniform CONTROL file with opencv4 port
* [opencv3] uniform portfile with opencv4
* [opencv3] uniform CONTROL file with opencv4 port
* [opencv3] update to 3.4.7 draft
* [OpenCV 3] wip to uniform port to opencv4 standards
* [OpenCV3] fix IPPICV integration, use the same mechanism as in OpenCV4 port
* [OpenCV3] fix sfm module
* [OpenCV3] update hunk references in patches 0001 and 0009
* [OpenCV3] refresh install options to adhere to opencv4 standards
* [opencv3] remove leftovers
* [opencv3] Use OUT_FEATURE_OPTIONS with vcpkg_check_features()
Diffstat (limited to 'ports/opencv3/0009-fix-uwp.patch')
| -rw-r--r-- | ports/opencv3/0009-fix-uwp.patch | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/ports/opencv3/0009-fix-uwp.patch b/ports/opencv3/0009-fix-uwp.patch new file mode 100644 index 000000000..b57e49ea1 --- /dev/null +++ b/ports/opencv3/0009-fix-uwp.patch @@ -0,0 +1,54 @@ +diff --git a/cmake/OpenCVModule.cmake b/cmake/OpenCVModule.cmake +index c2fda8f..3f7dfdc 100644 +--- a/cmake/OpenCVModule.cmake ++++ b/cmake/OpenCVModule.cmake +@@ -850,7 +850,7 @@ macro(ocv_create_module) + set(the_module_target ${the_module}) + endif() + +- if(WINRT) ++ if(WINRT AND BUILD_TESTS) + # removing APPCONTAINER from modules to run from console + # in case of usual starting of WinRT test apps output is missing + # so starting of console version w/o APPCONTAINER is required to get test results +diff --git a/modules/highgui/include/opencv2/highgui/highgui_winrt.hpp b/modules/highgui/include/opencv2/highgui/highgui_winrt.hpp +index f4147f3..b92efdd 100644 +--- a/modules/highgui/include/opencv2/highgui/highgui_winrt.hpp ++++ b/modules/highgui/include/opencv2/highgui/highgui_winrt.hpp +@@ -24,6 +24,7 @@ + // NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + // POSSIBILITY OF SUCH DAMAGE. + ++#include "opencv2/core/cvdef.h" + using namespace Windows::UI::Xaml::Controls; + + namespace cv +diff --git a/modules/highgui/src/window_winrt_bridge.hpp b/modules/highgui/src/window_winrt_bridge.hpp +index 25f4aef..5429f0b 100644 +--- a/modules/highgui/src/window_winrt_bridge.hpp ++++ b/modules/highgui/src/window_winrt_bridge.hpp +@@ -28,6 +28,7 @@ + + #include <map> + #include <opencv2\core.hpp> ++#include "opencv2/highgui/highgui_c.h" + + using namespace Windows::UI::Xaml::Controls; + +diff --git a/modules/videoio/src/cap_winrt/CaptureFrameGrabber.cpp b/modules/videoio/src/cap_winrt/CaptureFrameGrabber.cpp +index 236e227..e2417dc 100644 +--- a/modules/videoio/src/cap_winrt/CaptureFrameGrabber.cpp ++++ b/modules/videoio/src/cap_winrt/CaptureFrameGrabber.cpp +@@ -94,10 +94,10 @@ Media::CaptureFrameGrabber::~CaptureFrameGrabber() + + void Media::CaptureFrameGrabber::ShowCameraSettings() + { +-#if WINAPI_FAMILY!=WINAPI_FAMILY_PHONE_APP ++#if (WINAPI_FAMILY!=WINAPI_FAMILY_PHONE_APP) && (WINAPI_FAMILY!=WINAPI_FAMILY_APP) + if (_state == State::Started) + { +- CameraOptionsUI::Show(_capture.Get()); ++ CameraOptionsUI::Show(_capture.Get()); // TODO: Turn it on again in UWP mode by adding reference to UWP Desktop Extensions + } + #endif + } |
