LINK : fatal error LNK1181: cannot open input file 'opencv_gapi.lib'

Hi all,

I am building openCV 4.5.5 from source, and using this built opencv inside another project.
My projetc, when linking to the openCV project, doesn’t find ‘opencv_gapi.lib’… What do I need to add so this lib is also built ?

I have tried to add

set(BUILD_opencv_gapi ON)

in the cmake project that builds openCV, but that didn’t do the trick…


Can you please show the CMake output for your opencv build?