I've been googling for hours but to no avail.
I have successfully compiled ImageMagick on Android via the NDK, but cannot use it to open pdf files because this requires Ghostscript.
A lot of ghostscript for android searches has led me to believe ghostscript's android port is MuPdf. Will compiling MuPDF's NDK source as a dependency for ImageMagick work for me?
There is no port of Ghostscript for Android, we've never done one and I'm not aware of one. MuPDF is a totally different product.
So no, you can't compile MuPDF for Android and expect it to work in place of Ghostscript for ImageMagick.
It should be possible to port GS over to Android, and we would be interested in hearing if you manage that.
Related
I want to generate .so files for my android app.Is there any tutorial to compile vlc library for android using mac , i know this tutorial which explains using Ubuntu.Does anyone knows similar for Mac ?
As cricket_007 suggested VM is the option for my case. I was not able to find the instructions for MAC. So i compiled it using linux on VM.
Can I run scikit-image on Android? Do I need a specific version of the OS? I haven't been able to find a doc or tutorial explaining its installation on the platform. The instructions only mention Debian and Ubuntu. Would I need to compile from source?
Scikit-image is strictly a Python library, and Android runs on Java.
As an alternative, I would suggest JavaCV if you want something like scikit-image. It's a Java port of the OpenCV library, which is very similar to what you are looking for. https://github.com/bytedeco/javacv
However, if you are intent on using scikit-image, you can try using Jython, although it may be buggy when used with Android. http://www.jython.org/
You can use Cygwin if you want to install with Linux commands on a Windows computer. https://www.cygwin.com/
I have a custom made C (cross-platform) application. An OpenVPN variant. I want to compille this for the Android version with NDK.
It compiles under Linux. Does this mean i can easily compile it for Andoird too with the NDK? And if so, how can i communicate with my library through Java code (the normal Android SDK)?
I'm not really that far yet to do the actual implementation part. But i'd like to know what i can expect in advance.
So if you have any experience with the NDK and have any tips/pointers for me, then you'd really help me alot. Like, things i should look out for when working with the NDK. Compile settings etc.
Thanks for any help.
My Openvpn for Android application is open sourced. See https://github.com/schwabe/ics-openvpn/ Since you wrote that you are using an OpenVPN variant looking at the Android.mk files of my project might help you.
Is there a way to port Snort to Android OS? I have already ported
libpcap to Android and I have made some simple native sniffers which worked
perfectly.To do this, I used the NDK development kit that offers you some
tools for cross compiling C programs to ARM architecture.
Is this possible to do it for Snort. I know that Snort is a big project that
contains many source files and uses many modules such as Libpcap, PCRE,
Libdnet, Barnyard2, DAQ. I am wondering if is there a way to build
this code for Android.. E.g. by statically link all this modules.. Moreover an
other potential problem may be the fact that Android uses a subset of libc
(bionic), so maybe some basic functions are not available..
Have anyone done it before? Or, can some one give me some help on how
to start?
Lack of exception handling and STL was very painful when i ported using NDK. As snort is C based, that shouldn't be the case. I guess unicode handling (as ndk doesnt support wide char functionality) can get tricky.
I am attempting to put my C++ program onto an Android phone but have run into several problems with the library linking. It seems most of the useful information I find on this topic through google is outdated (motz) or simply does not account for the complexity of my program. I have been able to run simple C programs but fail when attempting to use libraries outside of Android's Bionic/libc.
So my questions are:
Is it possible to port pre-existing *.so libraries onto Android? If so, how could I do this without seg faulting?
Should I be using the CodeSourcery compiler (arm-none-linux-gnueabi-*)?
How can I work around the lack of a seperate pthread library?
Please help me out! Thanks.
-Scott
You can't use pre-existing *.so files because they need to be compiled for Android. In order to create an *.so for Android you need to use their NDK, which is already set up to build the correct format so you don't need to worry about arm-none-linux-gnueabi or anything. If you want to use a library that isn't available on Android you'll need to build it yourself using the NDK. I had to do this with the STL.
Please refer to the following :
Can i use the native libraries (installed in android stack) in my NDK application?
This should answer you some queries...