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.

2
  • 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. Commented Dec 23, 2016 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. Commented Dec 23, 2016 at 18:16

1 Answer 1

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.