Thread: C, ALLEGRO, FMOD and Android

  1. #1
    Registered User
    Join Date
    Jun 2016
    Posts
    6

    Question C, ALLEGRO, FMOD and Android

    Hello forum.

    I found the C4Droid and CPPDroid compilers for Android. I want to use them with the ALLEGRO and FMOD libraries. So programming ON Android FOR Android in C using these two libraries.
    Has somebody experience with this? Are all ALLEGRO commands supported for the Android platform?
    Are there differences compared to using it on Windows?
    And it seems there are no builds of these two libraries for Android (I'm not able to build ALLEGRO myself, because I'm using no Windows or Linux platform).
    Do the header files have to be modified to use C4Droid or CPPDroid? Are they supported by ALLEGRO or only GCC?

    C. C.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    38,658
    Did you read this?
    Allegro 5 & C++ / Android: is possible, how to....

    In fact, in general, did you read the respective support forums of all the libraries you wanted to use?
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Jun 2016
    Posts
    6
    Thanks for reply,

    yes, I know little about that, but I'm not able to test ALLEGRO, because I can not build it myself on Android...
    I also did not find a build of it and header files for testing it with C4Droid or CPPDroid.

    I would like to test it, but there seem to be no builds in the net.

    Maybe I need somebody to build it. To download an Android build of FMOD was also not possible, that's the problem at the moment.
    There seem not to be any places in the net to get shared library builds at all.

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    38,658
    To be honest, things like C4Droid are educational toys (fairly capable within their limits, but toys non the less).

    Running Allegro applications on Android - Allegro Wiki
    You should skip the NDK and standalone toolchain bits (your toolchain is c4droid).

    As for the likes of CMake, well your guess is as good as mine.

    > There seem not to be any places in the net to get shared library builds at all.
    Well if you insist on going that far off the beaten track, then you have to deal with all the road blocks yourself.
    The author of c4droid seems to know what they're doing, perhaps you should make contact regarding your plan.

    Good luck with your bold adventure.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  5. #5
    Registered User
    Join Date
    Jun 2016
    Posts
    6

    Question Maybe link with static version of ALLEGRO?

    ALLEGRO is not supported by C4Droid, so I installed CPPDroid.

    With the header files everything ok.

    I'm linking at compile time with a 'liballegro-debug.so' - successfully, but at runtime it says: cannot link executable (NameOfProgram.cpp.elf). And complains about not finding 'liballegro-debug.so'.
    I think at runtime it looks for the .so in specific folders where I have not enough permissions to put the .so in...

    So now I see my last chance in linking at compile time with a static library (liballegro.a), but I don't have one and am not able to build one myself.

    By the way: It seems CPPDroid does not need any import library for using a shared library or generates it at compile time automatically?

    Of SDL there are even no header files and no shared object in the net for Android, even worse.

    C. C.

  6. #6
    Registered User MacNilly's Avatar
    Join Date
    Oct 2005
    Location
    CA, USA
    Posts
    466
    This is probably not the answer you were looking for, but.. Honestly, if you want to write platform-generic graphics code you should be using OpenGL. Or, if you want to write only for Android use their native graphics library which is probaly based on OpenGL anyways... turtles all the way down
    Last edited by MacNilly; 07-06-2016 at 04:04 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How to use FMOD
    By Mosgrave in forum Tech Board
    Replies: 2
    Last Post: 03-14-2012, 11:37 AM
  2. fmod()
    By Josh@Dreamland in forum C Programming
    Replies: 13
    Last Post: 07-12-2008, 10:05 PM
  3. fmod()
    By salvadoravi in forum C Programming
    Replies: 1
    Last Post: 01-21-2008, 06:55 AM
  4. fmod %
    By robwhit in forum C Programming
    Replies: 1
    Last Post: 07-08-2007, 04:10 AM
  5. more fmod questions
    By lambs4 in forum Game Programming
    Replies: 0
    Last Post: 05-20-2004, 04:33 PM

Tags for this Thread