0

I need to use nonfree module in my app. I have been trying to build the app in the Android Studio native environment using ndk. I followed the tutorial here and generated .so files and added them to my project.

But then my app was crashing whenever I use opencv libraries. Here is the problem I faced. So I thought of rebuilding the entire opencv library for Android Studio. I followed the steps here, generated the files and steps here to build the libraries. I got to 29% and this following error occurred.

enter image description here.

Community
  • 1
  • 1
  • We prefer error messages to be supplied as text, so that the page works with clipboards, search engines and screen-readers. Would you change it please? There is a copy feature in the Windows command program. – halfer Dec 23 '16 at 17:53
  • 1
    I solved the issue with some help and I cannot run it again to get those messages. But, I will keep in my mind the issues you pointed it out when posting next time. – vamsidhar muthireddy Dec 23 '16 at 18:16

1 Answers1

0

I found the answer here. For anyone looking for a solution for the above error in the future. I am writing it down.

Find "commctrl.h" in MinGW directory and open it. There may be two files with the same name. Open both of them and change

#if 0
#define _WIN32_IE   0x0300
#endif

to

#if 1
#define _WIN32_IE   0x0500
#endif