Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What do I need to do to compile Android NDK (C++) aps in Visual Studio 2010?

I've read in different places that this is possible. I do not need to debug, just compile. Any walkthrus out there? Thx.

Found links: Android NDK with Visual Studio - "we've got it partially working, we use Visual Studio to build, using the proper android headers and whatnot, then we call the NDK build scripts. we're currently working on automating the second half as a post-build step"

http://groups.google.com/group/android-ndk/browse_thread/thread/9f3a55366ba08f2a/cb539c80e5729032 - "You have to dig out proper parameters for all the tools, but I assure you that this all works for me on command-line (well actually in various bat files called from MS Visual Studio)."

like image 945
tofutim Avatar asked Oct 13 '22 19:10

tofutim


1 Answers

Building and debugging Android apps within Visual Studio is OK. No need to mess with Eclipse, or post build steps.

I've got it running myself, here is a screenshot:

enter image description here

http://www.gavpugh.com/2011/02/04/vs-android-developing-for-android-in-visual-studio/

In case you get "Unable to locate tools.jar. Expected to find it in C:\Program Files (x86)\Java\jre6\lib\tools.jar" you can add an environment variable JAVA_HOME that points to your Java JDK path, for example c:\sdks\glassfish3\jdk (restart MSVC afterwards)

If you like you can also debugg Android apps within MSVC using this:

http://ian-ni-lewis.blogspot.com/2011/01/its-like-coming-home-again.html

Download WinGDC for Android from http://www.wingdb.com/wgMobileEdition.htm

like image 108
Erwin Coumans Avatar answered Nov 15 '22 11:11

Erwin Coumans