SDL2 on VS-Android

Now there are plenty of tutorials on how to get an Android build of your SDL application, and it’s relatively easy to setup, but the workflow is horrendous. Work in a text editor? Compile using the command line? Not good. With VS-Android however, it could be a question of switching platforms and I can keep working in Visual Studio.

Has anyone managed to set it up yet, or even got VS-Android to work with an external library? I have no idea where to start.

Now there are plenty of tutorials on how to get an Android build of
your SDL application, and it’s relatively easy to setup, but the
workflow is horrendous. Work in a text editor? Compile using the
command line? Not good. With VS-Android however, it could be a
question of switching platforms and I can keep working in Visual
Studio.

I’m sure a lot of people would argue with you there. I’ve never
attempted this though. Does SDL even have official MSVC support?On 2014-04-04 02:14, Wolfos wrote:


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Indeed, the workflow for NDK development isn?t great.

I have settled on, and shipped a project, using VisualGDB inside of Visual Studio 2012. Being able to set a breakpoint on start execution made the difference.

No experience with VS-Android to report. VisualGDB isn?t free in any sense of the word but has a demo and helpful support.

-MikeOn Apr 4, 2014, at 12:14 AM, Wolfos <robin.vanee at gmail.com> wrote:

Now there are plenty of tutorials on how to get an Android build of your SDL application, and it’s relatively easy to setup, but the workflow is horrendous. Work in a text editor? Compile using the command line? Not good. With VS-Android however, it could be a question of switching platforms and I can keep working in Visual Studio.

Has anyone managed to set it up yet, or even got VS-Android to work with an external library? I have no idea where to start.


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

-------------- next part --------------
A non-text attachment was scrubbed…
Name: signature.asc
Type: application/pgp-signature
Size: 496 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20140404/e664af24/attachment.pgp

What’s wrong with Eclipse? Ha ha ha, oh boy… I mean, could you use
Eclipse for SDL Android dev? I code in Code::Blocks and build the APK with
Eclipse.

Jonny DOn Fri, Apr 4, 2014 at 12:15 PM, Michael Labb? wrote:

Indeed, the workflow for NDK development isn’t great.

I have settled on, and shipped a project, using VisualGDB inside of Visual
Studio 2012. Being able to set a breakpoint on start execution made the
difference.

No experience with VS-Android to report. VisualGDB isn’t free in any
sense of the word but has a demo and helpful support.

-Mike

On Apr 4, 2014, at 12:14 AM, Wolfos <robin.vanee at gmail.com> wrote:

Now there are plenty of tutorials on how to get an Android build of your
SDL application, and it’s relatively easy to setup, but the workflow is
horrendous. Work in a text editor? Compile using the command line? Not
good. With VS-Android however, it could be a question of switching
platforms and I can keep working in Visual Studio.

Has anyone managed to set it up yet, or even got VS-Android to work with
an external library? I have no idea where to start.


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

It does, but I think VS-Android just uses the NDK to compile so it should work. Just don’t know how.

Alberto Corona wrote:

I’m sure a lot of people would argue with you there. I’ve never
attempted this though. Does SDL even have official MSVC support?

I could use Eclipse I guess, but I don’t really like that.

Jonny D wrote:> What’s wrong with Eclipse? Ha ha ha, oh boy… I mean, could you use Eclipse for SDL Android dev? I code in Code::Blocks and build the APK with Eclipse.

Jonny D

I use VS as an editor and run a batch file pinned to the taskbar to compile. But really I do all development I can on the windows version, it might be worthwhile to maintain a windows version even if you don’t plan to release on that platform.

The way we are doing is to Setup a Win32 C++ project. Then we can use
Vc++ to edit the code and if the code is common to Android & Windows
build, you can compile & fix errors.
To compile, it is back to command line and NDK.
The APK file is built and tested using Eclipse.

It is not ideal but it works.

Some people have managed to setup eclipse to edit C code and execute a
NDK build.On 4/4/2014 12:44 PM, Wolfos wrote:

Now there are plenty of tutorials on how to get an Android build of
your SDL application, and it’s relatively easy to setup, but the
workflow is horrendous. Work in a text editor? Compile using the
command line? Not good. With VS-Android however, it could be a
question of switching platforms and I can keep working in Visual Studio.

Has anyone managed to set it up yet, or even got VS-Android to work
with an external library? I have no idea where to start.


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


Pallav Nawani
Game Designer/CEO
http://www.ironcode.com
Twitter: http://twitter.com/Ironcode_Gaming
Facebook: http://www.facebook.com/Ironcode.Gaming

I’ve tried VS-android a year ago, but I’ve found out working with eclipse in this particular case regarding making apks are way easier.
I’ve set up eclipse to build the native code and the apk. If you prefer editing in VS that’s fine, then all you need to do is clicking the green Play button in eclipse, and everything is done for you.------------------------
Runic Girls - a hexa match3 game with girls created using SDL 2.0:
http://www.facebook.com/RunicGirls

Gameplay trailer: