I'm developing an android HMI application for lane detection in eclipse on windows. The lane detection algorithm is in CPP file using opencv. I used JNI to integrate android app with the algorithm. But i'm not able to run the application due to following error :
OpenCV Error: Unspecified error (The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Carbon support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script) in cvShowImage, file /hdd2/buildbot/slaves/slave_ardbeg1/50-SDK/opencv/modules/highgui/src/window.cpp, line 501
i have followed all the steps specified by http://docs.opencv.org/doc/tutorials/introduction/android_binary_package/android_binary_package_using_with_NDK.html
Request for suggestion where did i go wrong.
Related
I am following this wiki: https://wiki.videolan.org/AndroidCompile/ to build libvlc native library for android. So far I have been able to compile and build apk using compile.sh which is described on the wiki. Now I am trying to build and run the whole project using android studio. I have selected build variant dev to run and build the apk. But the android studio produced apk size is smaller than the apk produced by using compile.sh. After analysing both apks I found that the libvlc.so file is missing from the android studio generated apk.
How can I build and run VLC for Android project using android studio?
I think the libvlc part of VLC-Android can only be built from CLI.
I know that there is MUPDF library available under GPL licence for rendering PDF files in android. This library contains native code. For Native code compilation we need android NDK. and CYGWIN tool.
I have Dowloaded a MUPDF library code from code.google.com site. I have also downloaded and installed the android-NDK and CYGWIN tool. I have started to build MUPDF library by Following steps mentioned on different forums.
But when i build my application by using these steps Integrate MuPDF Reader in an app
But fail to compile successfully, therefor when i run my project it's thrown exception on this line in library code
System.LoadLibrary(mupdfc);
I need help regarding this issue. I am using window XP.
Oddly enough, when you fail to build the library, the library load will fail and the project won't work.
Asking us why the library build fails without supplying any error messages or diagnostic information is unlikely to get you any useful answers.
I am trying to integrate a titanium module project into my native application. For that I am trying to develop a module project in titanium studio. But during building module I am getting the following errors, even after manually written path to Android NDK in build.properties file:
"The following error occurred while executing this line:
exec returned: 2"
I tried all the possible solutions that are available, can any one share any solutions?
did you download and install the NDK? and set the path?
I'm trying to build and run the 'Tutorial 2 Advanced - 1. Add Native OpenCV' tutorial built into the opencv package for android. I wasn't able to use the ndk-build from eclipse following the tutorial from http://opencv.itseez.com/trunk/doc/tutorials/introduction/android_binary_package/android_binary_package.html
But, I built the project from cygwin successfully. But then when trying to run as an android application in Eclipse, it has the error
'Description Resource Path Location Type
The project was not built due to "'NUL' is an invalid name on this platform.". Fix the problem, then try refreshing this project and building it since it may be inconsistent Tutorial 2 Advanced - 1. Add Native OpenCV Unknown Java Problem'
Any help would be much appreciated, thanks
What exactly did you build with Cygwin? I've had an error which prevented me from building from the command prompt but with Cygwin everything works fine.
In Cygwin I first navigate to my project folder:
cd /cygdrive/c/"path to your project folder>"/
then while I'm in the project folder type:
/cygdrive/c/"path to android-ndk-r7b folder"/ndk-build
After using these commands I was able to run the Tutorial 2 Advanced - 1. Add Native OpenCV project. Let me know if this helps you?
I am trying to compile the binary dosfsck and mkdosfs for Android, using Linux and Android NDK and SDK. I've setup NDK and SDK properly, the path to the NDK gcc is in my path. I've also downloaded the correct SDK for my device (HTC Desire).
I first tried compiling the file with a simple make:
make
CROSS_COMPILE=/home/droidzone/android/android-ndk-r5b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc
I need to be able to run the binary from my device. As it is, the app compiles and runs on Ubuntu, but not my device. I get the error message from sh: Cannot run binary
Could someone please explain how I can link libraries, where I should get them from (within the SDK) and what changes if any to make to the Makefile, and the final syntax to compile this properly for Android
I found this was easiest to do using the agcc script script which you can use by exporting CC=agcc. Lots of projects will not properly support CROSS_COMPILE as you have tried. The agcc script is oriented around using the Android build tree files so I modified it to use the NDK tools. With this you should be able to build most things using make CC=agcc or CC=agcc ./configure