hi all,
i want to develop a program with openCV,all steps for development is
done and .so lib is generated normally.
but when i run as this program in my emulator,it will exit after about
1s and the UI is not correct.My code snippet lists below:
IplImage* imgIn = cvLoadImage("/sdcard/testimage.bmp");
if (!imgIn) return env->NewStringUTF("Error");
std::string filePath="/sdcard/result.bmp";
jstring filePath1=env->NewStringUTF(filePath.c_str());
const char * resultpath=env->GetStringUTFChars(filePath1, 0);
cvSaveImage(resultpath,imgIn);
cvReleaseImage( &imgIn );
return env->NewStringUTF("ok");
when i eliminate the code about openCV,the program run normally.when i
add only cvLoadImage,the problem comes again.I get a blog about this
problem,it says that openCV will be run arm V7 in priority,but the
emulator based on arm V5,so need edit the android-opencv.mk.but this
blog is about openCV on Linux,i develop program in winXP+cygwin and i
cannot find the related .mk files.
i didn't test my program in a real device,someone said that the
program maybe can run normally in a real device if run abnormally in
emulator,sadly i don't have a real device in hand.
so is there anyone can tell me how can solve this problem?
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en