Results 1 to 10 of 46

Thread: Android Support

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

  2. #2
    PGD Staff code_glitch's Avatar
    Join Date
    Oct 2009
    Location
    UK (England, the bigger bit)
    Posts
    933
    Blog Entries
    45
    Can't we just write some bindings to borrow the C++ libraries? Or, drop to root on android and build fpc from source on android itself?
    I once tried to change the world. But they wouldn't give me the source code. Damned evil cunning.

  3. #3
    Co-Founder / PGD Elder WILL's Avatar
    Join Date
    Apr 2003
    Location
    Canada
    Posts
    6,107
    Blog Entries
    25
    Very cool. Any consideration towards Oxygene 5 support in ZenGL?

    You could get on their beta by contacting Marc Hoffman on their site.
    Jason McMillen
    Pascal Game Development
    Co-Founder





  4. #4
    Any consideration towards Oxygene 5 support in ZenGL?
    ZenGL isn't a simple library, so it will be too hard to make such a port because Oxygene just a "Java with Pascal face" and this is not enough. Also I didn't find any information about integration with Eclipse(only with Visual Studio under Windows... O_o and where is my Linux support? )

    // spam-bots... they like to post in my threads, or their invisible messages are everywhere?
    Last edited by Andru; 05-11-2011 at 08:31 AM.

  5. #5
    PGD Staff code_glitch's Avatar
    Join Date
    Oct 2009
    Location
    UK (England, the bigger bit)
    Posts
    933
    Blog Entries
    45
    // spam-bots... they like to post in my threads, or their invisible messages are everywhere?
    In theory, it is not possible for you to see those posts - interesting. To be honest, deleting them makes my job a tad harder as for some reason the selection button doesn't work properly every time otherwise. Can't be helped I guess - I end up taking care of 30 odd posts a day whenever my Internet connection decides to play ball, but as the modem is dyeing (doesn't sync above 2.1meg and decreasing) things aren't looking as good as they could be...

    only with Visual Studio under Windows
    Thats a surprise - a LOT of development nowadays is done under Mac and Linux - especially for a linux target like android.
    I once tried to change the world. But they wouldn't give me the source code. Damned evil cunning.

  6. #6
    In theory, it is not possible for you to see those posts - interesting
    I'm moderator in ZenGL part of forum, so I see these messages...

  7. #7
    PGD Staff code_glitch's Avatar
    Join Date
    Oct 2009
    Location
    UK (England, the bigger bit)
    Posts
    933
    Blog Entries
    45
    Ah, makes sense.
    I once tried to change the world. But they wouldn't give me the source code. Damned evil cunning.

  8. #8
    Finally ZenGL got an Android 2.1+ support in latest svn revision. You can grab it from here with your svn client:
    http://zengl.googlecode.com/svn/trunk/

    Standard demo05 for learning how to use ZenGL with Android is placed here. Just unpack it somewhere and import into Eclipse - File->New->Project->Android Project and choose "Create project from existing source":


    Then choose some other options like Android SDK and so on. Next step - download from here project for Lazarus(also there is a Makefile). Unpack it into demos directory of ZenGL svn working copy. Open demo05.lpi in Lazarus and change path to lib directory and libdl.so to your own from yours Android NDK:


    Compile and copy all *.so libraries into TestZenGL/libs/armeabi. So, now you can start to test it on your device or emulator

    PS: Everything was tested with FreePascal compiled from fixes_2_6 branch. Any other details like "How to setup Eclipse with Android SDK/NDK on my OS" and "How to compile FreePascal for ARM on my OS" are not a topics of this topic, so... maybe later I will try to prepare some notes in wiki for Linux/Windows, but due to lack of time I don't know when I will do this.
    Last edited by Andru; 27-11-2011 at 06:18 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •