开发者

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

I've read in different places that 开发者_C百科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)."


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:

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

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


Microsoft (obviously) doesn't seem interested in supporting this:

http://social.msdn.microsoft.com/Forums/en/vcgeneral/thread/6641879e-6f47-403a-9ed5-28bb6e040563

Why not stick with Eclipse since that IDE will integrate with the compiler/debugger for the android target (including debugging the native library, I think).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜