NDK compilation difference between linux and windows - android

I'm wondering if someone has experienced issue like me. I have two laptops in one of them has Ubuntu Linux14.04 the other one Windows OS. On Ubuntu there is android-ndk-r9c and on Windows android-ndk-r9d. ndk-build has being successful on both of them. However the windows compiled version works on android, on Linux compiled there is crash from native side. Is there any difference between Windows and Ubuntu NDKs? What can be the cause of the crash on android which uses the version of .so libs which compiled on Ubuntu Linux?
Thanks in advance..

Related

Is the any way to install cmake for Android studio on a 32bit system to allow C++ support?

Latest version of AS and windows 7 32bit.
After some research it seems as though cmake for AS only runs on 64bit systems, if correct I assume there is no way I can just download cmake for 32bit and place it in the appropriate location in the Android SDK, or is there any other work around, I am pretty sure I will need to install windows 64bit, but thought I'd ask.
This is so I can have C++/NDK support in AS.
Yes you are correct, AS only supports 64 bit OS's to build c and c++ with cmake

Building Android from source on Lynx and Oneiric but reaches their "end-of-life". What now?

Ubuntu 10.04 and 11.10 reached their end-of-life last May 09 2013, what happens if I'm going to build android from source with these platforms? Does it affect the build process?
In the Initializing Build Environment site, building on Ubuntu 12.04 is currently only experimentally supported and is not guaranteed to work other than master.
You can easily use Ubuntu 12.04 for all variants of Android. The only thing you need is to download the latest versions of the required version. Personally, I use Ubuntu 12.04 for developing Android 2.3.4. You can look into this thread for more information.

What is the dif between mac and windows about android SDK

as the question stated. I am planning to copy android SDK library from my microsoft windows pc to my new Mac PC. Should I download the mac version of sdk or copying the directory from windows to mac is enough ?
The SDK (Java part) is identical, but the NDK (which may also be called a part of the SDK) contains prebuilt Windows/Linux/Mac versions of the GCC compiler to produce ARM/MIPS/x86 Android executables.
To compile native native code on Mac you need different prebuilt GCC toolchain (included in NDK). That part certainly cannot be copied from Windows.
To build Java just make sure your Mac is not too old (like PowerPC) and support the Android SDK and official JDK to run Ant build scripts.
The direct copying may have one problem: the CLASSPATH variable will point to your old Windows paths, not the Mac paths.
There's no big difference, but you will need to download the SDK again. This is because not everything is Java, some of it is native code and won't work on your Mac coming from Windows. But functionally, it's identical.

Configuring and Using NDK in eclipse on mac os Lion

I am right now configuring ndk in eclipse on mac lion os. i downloaded Eclipse 3.5, android sdk & ndk r7b. can anyone give me the procedure to configure the NDK in eclipse for native android application development?
It's a little tricky to set up right on OSX but I've done it (on Lion, not sure about others) so it is possible.
Download the OSX bzip here and follow the instructions 'Installing the NDK' and 'Getting Started with the NDK'. From there try to build the the hello-jni sample, found here. I installed the APK it produced on the android emulator and it worked fine, same for some of the other samples.
I did it without using eclipse, but from what I understand the eclipse plugin is just a wrapper for the android and adb binaries.

Compiling android tools for windows

I have set up a 64 bit ubuntu env for compiling android tools (aapt, adb etc...), i'm now downloading the source code for 2.1.
I have compiled the env in the past with no problem, built emulator and stock version.
But it was all linux binaries (the sdk tools)
The more i think about it the less i understand,How i can build those tools for windows machine ? (ubuntu runs on virtual box on top of my hosting Server 2008 which is my work env).
I saw some posts related to minGW but as far as i know these are windows libraries that are meant to compile linux binaries on windows machine. I am looking for a way to compile windows binaries on linux machine.
I must say it seems impossible since i'm not sure how the linker in linux will generate an exe file, ithought of taking the .o file and try to link them under windows (VS) but i'm not sure it will work, I'll have to find compatible dlls to the API's on linux.
How do goolge create a windows SDK?
well with the help of several posts and of 'inazaruk' i managed to find the command : $ make -j PRODUCT-sdk-win_sdk showcommands dist
it compiled and in ./out/host/ i had the windows binaries. pretty cool :-) i didn't need to take them out and recompile under windows.
Hopes this helps anyone else that needs to recompile the SDK tools.
make -j8 win_sdk
also builds windows sdk.

Categories

Resources