OpenCV on Visual Studio using gcc compiler

Mach55 1 Reputation point
2021-05-07T17:55:30.57+00:00

I am developing a native SDK written in C++ and compiling it to a shared plugin in the .so format. I am using Visual Studio 2019 (on Windows10 OS) for this purpose and the project was created using the Dynamic Shared Library (Android) template. I want to be able to use OpenCV in my SDK. I have used OpenCV in c# projects with no issues but having problems in the current project.

I have compiled OpenCV binaries with GCC and linked the directory under C/C++ > Additional Include Directories as well as under Linker > Input > Additional Directories with no luck. My c++ code doesn't recognize the open cv variables.

I lack experience in Linux development and was wondering how can you integrate OpenCV in Visual Studio in the shared library project compiled with GCC.

Developer technologies C++
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.