I see the error as shown in the screenshot when I try to build the NDK OpenCV Android program. I have added the lines:
NDK_HOME=C:\\android-ndk-rd8 export NDK_HOME
to my .bashrc file in cygwin. I am working on Windows 7 and my NDK is at C:\\android-ndk-rd8
I thought adding the above lines would fix it, but it didn't work. How do I get the program to compile? Do I have to change the PATH variable? If so, how exactly do I do that?
From your error log I suppose you should specify SA environment variable, you can do it in eclipse properties for your project:
Project properties -> C/C++ Build -> Enviroment -> Here press button Add.. -> and put Name: SA with Value: path to your NDK folder
I think, from Eclipse environmental variables are referred something like {env:NDK_HOME}
. In Properties|C++|Build or something like that
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.