Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android NDK with Visual Studio

I'd like to build some native libraries for android using the NDK (native development kit), but i'd like to use Visual Studio 2010 to do it. I've googled quite a bit but haven't found any information on it. Does anyone have any experience with this and know the steps necessary to make this happen? I have CYGWin installed, made sure i get Make (per the NDK instructions), but i'm not really sure of the next steps in terms of setting up the project, compiler in visual studio, etc.

If anyone knows of any write-ups, tutorials, or links to sample projects, that would be awesome, as there isn't much on google yet.

thanks!

like image 432
bryan costanich Avatar asked Oct 29 '10 23:10

bryan costanich


People also ask

Does Android Studio include NDK?

Android Studio installs all versions of the NDK in the android-sdk /ndk/ directory. Note: Preview releases (for example, canary and beta) of the NDK do not show up in this list unless you change the update channel for Android Studio. You can install an Android Studio preview side-by-side with the stable version.

What is difference between Android NDK and sdk?

Android provides Native Development Kit (NDK) to support native development in C/C++, besides the Android Software Development Kit (Android SDK) which supports Java. [TODO] more. NDK is a complex and advanced topics.

Is NDK worth learning?

You can use it to build from your own source code, or to take advantage of existing prebuilt libraries. The NDK is not appropriate for most novice Android programmers, and has little value for many types of Android apps. It's often not worth the additional complexity it inevitably brings to the development process.

Can I use Visual Studio on Android?

The Visual Studio Emulator for Android is included when you install Visual Studio to develop for Android, iOS, and Windows—all from one code base using familiar languages such as C#, JavaScript, and C++.


1 Answers

Here's another solution, which integrates the NDK fully within Visual Studio. No makefiles. It behaves like a proper Win32 project:

like image 195
Gavin Pugh Avatar answered Nov 07 '22 12:11

Gavin Pugh