C++ on android?
-
SamiTheGreat
- Bronze Sponsor

- Posts: 102
- Joined: Sat Aug 30, 2008 11:57 am
- Location: Finland
- x 8
C++ on android?
Hello! We have released our first mobile game on android yesterday (check it out if you are interested https://play.google.com/store/apps/deta ... cator_free ) and we will start a new project soon. Problem is that Android development focuses to java and java cannot be used in iOS apps. Is it possible to use C++ to code games and build them for both iOS and Android. It would be nice if same source code would work on both. One question more: Can I use OGRE + MS Visual Studio or some other IDE on windows to create iOS apps or do I need XCode?
-
liberator
- Greenskin
- Posts: 117
- Joined: Mon Jan 24, 2005 2:27 pm
- Location: Sillicon Valley, California
Re: C++ on android?
You can use native code on Android since 1.6 C++ support was gimped for a while but is fine now. The NDK has also gotten a lot better. I basically focus on writing pure native apps for Android but it does require some research / dev setup because its a different ballgame from developing Java apps for Android. You can use Eclipse but I use android make files myself (generated by my own ProjectGenerator tool).
Your main problem will be using Ogre on Android. I have not had time lately so I havent had time to see if it compiles/runs on Android these days.
Your main problem will be using Ogre on Android. I have not had time lately so I havent had time to see if it compiles/runs on Android these days.
Project lead and developer of:
http://sourceforge.net/projects/gucef
http://sourceforge.net/projects/guce
Etc.
LinkedIn: http://www.linkedin.com/in/dinandvanvelzen
http://sourceforge.net/projects/gucef
http://sourceforge.net/projects/guce
Etc.
LinkedIn: http://www.linkedin.com/in/dinandvanvelzen