What is the dif between mac and windows about android SDK - android

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.

Related

Qt is not detecting android kits automaticallly

I am an absolute beginner. I want to install Qt for android development.
I followed the instructions for installing Qt as specified on Qt's website. I installed android manager and set up SDK, NDK, ant and JDK. After this I specified there locations in Qt but Qt is not detecting any kits at all. Why? Is there something that i am missing?
It might help to know that I an running Qt on ubuntu 16.04.3 and my Qt's version is Qt Creator (community) open source free
If I manually add a kit what should I do about sysroot and other empty fields.
What do i do about the empty fields
I have the similar problem. Problem was with NDK version.
The newest NDK version doesn't contains executable gcc compilers (it use clang compiler). I must use NDK version 15.
I had to configure manually as well for embedded linux.. To configure manually, in case you did all the configuration to a new qt, i just gotta select your compiler and change the qt version to the one you configured for the cross compiler. All the other option, let by default. Make sure your cross compiler command is set in your PATH.
This qt version is the path to your qmake.

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

How to compile Android Kernel source code on ubuntu?

I have downloaded both Android 4.2 source code and Android kernel source code (common) separately by following the procedure mentioned in Android website. But I am not able to get the way how to start compiling both kernel code and source code on Ubuntu 12.04. I have also downloaded the Android Emulator.
Please mention the steps required to compile.
AOSP site contains Downloading and Building guide:
http://source.android.com/source/initializing.html
You should set up your local work environment to build the Android source files. You will need to use Linux (Ubuntu in yor case) or Mac OS. Building under Windows is not currently supported.
Note: The source download is approximately 8.5GB in size. You will need over 30GB free to complete a single build, and up to 100GB (or more) for a full set of builds.
Detailed instructions for Ubuntu and MacOS you can see on AOSP site. In general you will need:
Python 2.6 -- 2.7, which you can download from http://python.org.
GNU Make 3.81 -- 3.82, which you can download from http://gnu.org,
JDK 6 if you wish to build Gingerbread or newer; JDK 5 for Froyo or older. You can download both from http://java.sun.com.
Git 1.7 or newer. You can find it at http://git-scm.com.
Note: It is also possible to build Android in a virtual machine. If you are running Linux in a virtual machine, you will need at least 16GB of RAM/swap and 30GB or more of disk space in order to build the Android tree.
On XDA-developers you can see this Ubuntu-guide:
http://forum.xda-developers.com/showthread.php?t=2114594

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