Device(s): Nexus 4, Samsung Galaxy S II, HTC Evo 4G, Amazon Kindle Fire
Carrier: ATT
Thanks: 235
Thanked 461 Times in 284 Posts
A number of popular c++ libraries ported to android
I have created a public github repository that includes a number of popular open source C and C++ libraries that I have ported to android. The github page can be found here: https://github.com/jonbonazza/common-android-native-libs
Currently, the following libraries are included:
-FreeImage - this is a more compact version of FreeImage that only includes support for BMP, GIF, ICO, JPEG, PCX, PSD, TIFF, PNG, and TGA filetypes.
-FreeSLW - port of Lukas Heise's OpenAL wrapper library, FreeSLW, that supports WAV and OGG Vorbis audio file loading and playback.
-GLU ES This is a port of the OpenGL GLU library to OpenGL ES. This port was not done by me, however I had to do a bit of tweaking to get it to compile for android.
-Lua - This was not done by me, however I thought I would include it here anyway since it can be a pain to find.
-Luabind - This one is my baby. I was not able to find this anywhere else and took a lot of hacking to make it work.
I will add more libraries as they come along and if anyone has one that they would like to contribute, please feel free to email me!
Enjoy!
Last edited by jonbonazza; July 26th, 2012 at 03:06 PM.
The Following User Says Thank You to jonbonazza For This Useful Post:
Device(s): Nexus 4, Samsung Galaxy S II, HTC Evo 4G, Amazon Kindle Fire
Carrier: ATT
Thanks: 235
Thanked 461 Times in 284 Posts
If someone wants to contribute to this by writing some Java JNI wrappers for any of these libraries let me know. It's something that should be done, but it isn't needed for my project, so I don't really have the time to devote to it.
Device(s): Nexus 4, Samsung Galaxy S II, HTC Evo 4G, Amazon Kindle Fire
Carrier: ATT
Thanks: 235
Thanked 461 Times in 284 Posts
Working on a couple more options, including:
-CEGUI an OpenGL GUI Library (Useful for game development)
-PCRE a regular expression library (It was required for CEGUI, so I thought I would include it as well. I will also be hosting a port of freetype2 that was done by someone else for convenience.
Device(s): Nexus 4, Samsung Galaxy S II, HTC Evo 4G, Amazon Kindle Fire
Carrier: ATT
Thanks: 235
Thanked 461 Times in 284 Posts
OK, so PCRE has been completely ported, but CEGUI is still in the process of being so. It's close, just haven't had time to finish it. I will upload them both when both are complete.
If anyone is interested in writing some Java binding code for any of the libraries, let me know. I don't necessarily need them for my project, but it would be something nice to include.
Device(s): Nexus 4, Samsung Galaxy S II, HTC Evo 4G, Amazon Kindle Fire
Carrier: ATT
Thanks: 235
Thanked 461 Times in 284 Posts
Unfortunately, CEGUI makes use of the GLEW library and many OpenGL extensions. The GLEW library does not support OpenGL ES, nor do many of the extensions used by CEGUI. Because of this, CEGUI would require major modifications to be sucessfully ported to Android. This is not a job for me, but someone who actually helps maintain CEGUI.
The PCRE library was, however, successfully ported and I will upload it the minute I get a chance.
Device(s): Nexus 4, Samsung Galaxy S II, HTC Evo 4G, Amazon Kindle Fire
Carrier: ATT
Thanks: 235
Thanked 461 Times in 284 Posts
The FreeSLW library has been completely tested and seems to be working as intended. It is no longer considered experimental and is safe to use in production code. The original post has been updated to reflect this.
Device(s): Nexus 4, Samsung Galaxy S II, HTC Evo 4G, Amazon Kindle Fire
Carrier: ATT
Thanks: 235
Thanked 461 Times in 284 Posts
No, but i can make one if you wish. I use TinyXml for that, but the librart is so small that i normally just include tge source files in my project directly.