The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
SDL2 on VS-Android
Wolfos


Joined: 28 Aug 2011
Posts: 2
Location: Netherlands
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.
SDL2 on VS-Android
Alberto Corona
Guest

On 2014-04-04 02:14, Wolfos wrote:
Quote:
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?

Quote:
_______________________________________________
SDL mailing list

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

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
SDL2 on VS-Android
Michael Labbé
Guest

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 wrote:
Quote:
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

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
SDL2 on VS-Android
Jonny D


Joined: 12 Sep 2009
Posts: 932
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



On Fri, Apr 4, 2014 at 12:15 PM, Michael Labbé wrote:
Quote:
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 wrote:


Quote:
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

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org







_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Re: SDL2 on VS-Android
Wolfos


Joined: 28 Aug 2011
Posts: 2
Location: Netherlands
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
tjcbs


Joined: 26 Jun 2013
Posts: 19
Location: United States
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.
SDL2 on VS-Android
Pallav Nawani


Joined: 19 May 2011
Posts: 122
Location: Dehradun, India
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:
Quote:
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

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
_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
LBandy


Joined: 01 Jan 2013
Posts: 38
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.