-
Notifications
You must be signed in to change notification settings - Fork 6.1k
-
Is it possible to install the OpenCV module GAPI https://github.com/opencv/opencv/tree/master/modules/gapi through vcpkg? |
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 1 comment · 9 replies
-
Looks like it's enabled by default (except UWP): vcpkg/ports/opencv4/portfile.cmake Lines 112 to 116 in 345ac44
|
Beta Was this translation helpful? Give feedback.
All reactions
-
Couldn't find a config.log file, but here is the OpenCVConfig file. OpenCVConfig`# =================================================================================== The OpenCV CMake configuration file** File generated automatically, do not modify **Usage from an external project:In your CMakeLists.txt, add these lines:find_package(OpenCV REQUIRED)include_directories(${OpenCV_INCLUDE_DIRS}) # Not needed for CMake >= 2.8.11target_link_libraries(MY_TARGET_NAME ${OpenCV_LIBS})Or you can search for specific OpenCV modules:find_package(OpenCV REQUIRED core videoio)You can also mark OpenCV components as optional:find_package(OpenCV REQUIRED core OPTIONAL_COMPONENTS viz)If the module is found then OPENCV__FOUND is set to TRUE.This file will define the following variables:- OpenCV_LIBS : The list of all imported targets for OpenCV modules.- OpenCV_INCLUDE_DIRS : The OpenCV include directories.- OpenCV_COMPUTE_CAPABILITIES : The version of compute capability.- OpenCV_ANDROID_NATIVE_API_LEVEL : Minimum required level of Android API.- OpenCV_VERSION : The version of this OpenCV build: "4.8.0"- OpenCV_VERSION_MAJOR : Major version part of OpenCV_VERSION: "4"- OpenCV_VERSION_MINOR : Minor version part of OpenCV_VERSION: "8"- OpenCV_VERSION_PATCH : Patch version part of OpenCV_VERSION: "0"- OpenCV_VERSION_STATUS : Development status of this build: ""Advanced variables:- OpenCV_SHARED : Use OpenCV as shared library- OpenCV_INSTALL_PATH : OpenCV location- OpenCV_LIB_COMPONENTS : Present OpenCV modules list- OpenCV_USE_MANGLED_PATHS : Mangled OpenCV path flagDeprecated variables:- OpenCV_VERSION_TWEAK : Always "0"=========================================================================================================================================Version variables:======================================================SET(OpenCV_VERSION 4.8.0) include(FindPackageHandleStandardArgs) if(NOT CMAKE_VERSION VERSION_LESS 2.8.8 HANDLE_COMPONENTS was introduced in CMake 2.8.8list(APPEND _OpenCV_FPHSA_ARGS HANDLE_COMPONENTS) The missing components will be handled by the FindPackageHandleStandardArgsmodule.set(_OpenCV_HANDLE_COMPONENTS_MANUALLY FALSE) The missing components will be handled by this config.set(_OpenCV_HANDLE_COMPONENTS_MANUALLY TRUE) Extract directory name from full path of the file currently being processed.Note that CMake 2.8.3 introduced CMAKE_CURRENT_LIST_DIR. We reimplement itfor older versions of CMake to support these as well.if(CMAKE_VERSION VERSION_LESS "2.8.3") Extract the directory where this file has been installed (determined at cmake run-time)Get the absolute path with no ../.. relative marks, to eliminate implicit linker warningsget_filename_component(OpenCV_CONFIG_PATH "${CMAKE_CURRENT_LIST_DIR}" REALPATH) Search packages for host system instead of packages for target system.in case of cross compilation this macro should be defined by toolchain fileif(NOT COMMAND find_host_package) Some additional settings are required if OpenCV is built as static libsset(OpenCV_SHARED ON) Enables mangled install paths, that help with side by side installsset(OpenCV_USE_MANGLED_PATHS FALSE) set(OpenCV_LIB_COMPONENTS opencv_calib3d;opencv_core;opencv_dnn;opencv_features2d;opencv_flann;opencv_highgui;opencv_imgcodecs;opencv_imgproc;opencv_ml;opencv_objdetect;opencv_photo;opencv_stitching;opencv_video;opencv_videoio;opencv_aruco;opencv_bgsegm;opencv_bioinspired;opencv_ccalib;opencv_datasets;opencv_dnn_objdetect;opencv_dnn_superres;opencv_dpm;opencv_face;opencv_fuzzy;opencv_hdf;opencv_hfs;opencv_img_hash;opencv_intensity_transform;opencv_line_descriptor;opencv_mcc;opencv_optflow;opencv_phase_unwrapping;opencv_plot;opencv_quality;opencv_rapid;opencv_reg;opencv_saliency;opencv_shape;opencv_stereo;opencv_structured_light;opencv_superres;opencv_surface_matching;opencv_text;opencv_tracking;opencv_videostab;opencv_wechat_qrcode;opencv_xfeatures2d;opencv_ximgproc;opencv_xobjdetect;opencv_xphoto) set(OpenCV_INCLUDE_DIRS "") if(NOT TARGET opencv_core) if(NOT CMAKE_VERSION VERSION_LESS "2.8.11") Target property INTERFACE_INCLUDE_DIRECTORIES available since 2.8.11:* http://www.cmake.org/cmake/help/v2.8.11/cmake.html#prop_tgt:INTERFACE_INCLUDE_DIRECTORIESforeach(__component ${OpenCV_LIB_COMPONENTS}) if(NOT DEFINED OPENCV_MAP_IMPORTED_CONFIG) ==============================================================Form list of modules (components) to find==============================================================if(NOT OpenCV_FIND_COMPONENTS) set(OpenCV_WORLD_COMPONENTS ) expand short module names and see if requested components existforeach(__cvcomponent ${OpenCV_FIND_COMPONENTS}) Store the name of the original component so we can set theOpenCV__FOUND variable which can be checked by the user.set (__original_cvcomponent ${__cvcomponent}) if(__remap_warnings AND NOT OpenCV_FIND_QUIETLY) ==============================================================Compatibility stuff==============================================================set(OpenCV_LIBRARIES ${OpenCV_LIBS}) Require C++11 features for OpenCV modulesif(CMAKE_VERSION VERSION_LESS "3.1") Some macros for samplesmacro(ocv_check_dependencies) adds include directories in such way that directories from the OpenCV source tree go firstfunction(ocv_include_directories) macro(ocv_include_modules) macro(ocv_include_modules_recurse) macro(ocv_target_link_libraries) remove all matching elements from the listmacro(ocv_list_filterout lst regex) We do not actually need REQUIRED_VARS to be checked for. Just use theinstallation directory for the status.find_package_handle_standard_args(OpenCV REQUIRED_VARS OpenCV_INSTALL_PATH |
Beta Was this translation helpful? Give feedback.
All reactions
-
Upload an archive of log files |
Beta Was this translation helpful? Give feedback.
All reactions
-
These were the Config* files I found in vcpkg/buildtrees/opencv4. |
Beta Was this translation helpful? Give feedback.
All reactions
-
Hmm it's probably called |
Beta Was this translation helpful? Give feedback.
All reactions
-
Thank you! It worked 👍 |
Beta Was this translation helpful? Give feedback.
Hmm it's probably called
ade
(i.e. usevcpkg install opencv4[ade]
)