question

MichaelG-4461 avatar image
0 Votes"
MichaelG-4461 asked MichaelG-4461 edited

Thousands of errors missing basic libraries, all thrown by files in include folder, while making a shared library for Android with C++

Hello,
I'm trying to make an Android Plugin with C++ for OpenCV using Visual Studio 2019. While I'm successfully linking to all the library's lib files and include directory, I'm getting over 1000 errors telling me that those files are missing basic libraries. stddef.h, stdarg.h, size_t, and many others.

Note: I do not get these errors when I make a windows/x64 project solution for a Windows plugin, but whenever I use the c++/Android/Dynamic Shared Library template, all of these basic files seem to not link properly to the project. My Android NDK is 16rb (previously 13rb).

EDIT: changed to OpenCV 4.5.2 and Android NDK r23, but I still have 789 errors from the include folder. Which NDK should I be using with this? It seems like all the ones I've tried have different errors.

c++
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

0 Answers