[Application] Code::Blocks and CommandLine Compile Everything

Discussion in 'DragonBox Coding Compo 2012/2013' started by ptitSeb, Jan 1, 2013.

  1. ptitSeb

    ptitSeb Serial Porter

    Joined:
    Aug 15, 2012
    Messages:
    8,316
    Location:
    France, near Lyon
    Hi, here is a beta of my entry for the DragonBox Competition 2012/13, for the Application Categories.

    The aim of this PND is to be abble, with it, to compile almost everything.

    So it is bundled with many compilers and libraries, plus Code::Blocks, that may be a very usable IDE for the Pandora.

    With this PND (as of version 1.0.5.08), you can:

    • Compile C, C++, Fortran, ObjC, Java, Python, Perl, Lua.
    • use tools like make, cmake (v2.8.10 installed), doxygen, git (v1.8 install), svn, mercurial (v2.4.1 installed).
    • Compile OpenGL softwares (slowly, as it is MesaGL Software rendering that is in use).
    • Use many graphic and sound libraries (SDL, allegro 4, Allegro 5, sparrow3D, SFML, and more to come)
    • Convert Windows softwares with Winelib tools (I used it with the Takaeda's common librairie as a POC, and more to come).

    And all of this usable even if the PND is put on a FAT32 SDCard (on this configuration, all PND Files are read-only, so you cannot upgrade anything).

    Thanks to freamon for the CDevTools from which this PND is based, there are still many mecanisms in it that are from him.

    Get the BETA on the Repo, but don't look for logos, they are not in it yet...
     
    Last edited by a moderator: Jan 5, 2013
    Tags:
  2. pmprog

    pmprog Advanced Member

    Joined:
    Apr 25, 2011
    Messages:
    3,749
    You managed to compile Allegro 5? Sweet!

    Edit: Well, what I should say, is "Does it work?" I compiled A5, but none of the examples run
     
    Last edited by a moderator: Jan 1, 2013
  3. ptitSeb

    ptitSeb Serial Porter

    Joined:
    Aug 15, 2012
    Messages:
    8,316
    Location:
    France, near Lyon
    About Allegro5, It work slowly with the 5.0.8, because all is using OpenGL.

    In here is the 5.1.5, with the GLES2 renderer, but I haven't much tested it. I tried to compile Meka 0.80 with it, but it doesn't start. I have to do some more tests, if the GLES renderer is not mature enough to be usable, I'll switch back to (slow) 5.0.8.
     
  4. Farox

    Farox Certified Guru

    Joined:
    Jan 8, 2009
    Messages:
    2,023
    Location:
    Italy
    Thank's a million for this ptitSeb ...just downloaded (about 4 hours... :unsure: ) i will test building something very soon.
     
  5. pmprog

    pmprog Advanced Member

    Joined:
    Apr 25, 2011
    Messages:
    3,749
    Thanks.

    I'm going to try and test out performance with my Bulldogs game, and if it's pretty decent, I might reconsider what my entry is for the Dragonbox compo, or at least consider shifting the lib from SDL to Allegro. We'll see. I've not done much coding for a while
     
  6. pmprog

    pmprog Advanced Member

    Joined:
    Apr 25, 2011
    Messages:
    3,749
    What are the Allegro 5.0 and 5.1 libs called? I can't seem to find them in the PND.
     
  7. ptitSeb

    ptitSeb Serial Porter

    Joined:
    Aug 15, 2012
    Messages:
    8,316
    Location:
    France, near Lyon
    In the PND are the 5.1 with GLES renderer, but I think it is part broken.

    The libs are called liballegro.so.5.0.8 and liballegro.so.5.1.5 for main libs

    but there is also liballegro_acodec liballegro_audio, etc...

    They are all in the /mnt/utmp/codeblocks/usr/libs folder.
     
  8. pmprog

    pmprog Advanced Member

    Joined:
    Apr 25, 2011
    Messages:
    3,749
    Ah, I was looking in the /usr/lib/allegro folder :) Thanks
     
  9. canseco

    canseco Very Active Member

    Joined:
    Jun 1, 2004
    Messages:
    885
    Location:
    Spain
    Thx for this great pnd. It makes more easy a maintainer life, ;)

    Some things i miss:

    Newer SFML version, as the one you compiled has errors already fixed:

    http://en.sfml-dev.org/forums/index.php?PHPSESSID=88a5ec6134ed66e2fc44b509eab7da93&topic=9602.msg67650#msg67650

    I almost finished compiling MARS (98%) when it suddenly appeared, ;)

    Libfribidi, taglib and libprotobuf.

    Newer QT version. I know this take ages to compile, so i don't expect to see it soon.

    ldconfig issues still remain, even if the first time it didnt said any errors.
     
  10. ptitSeb

    ptitSeb Serial Porter

    Joined:
    Aug 15, 2012
    Messages:
    8,316
    Location:
    France, near Lyon
    Ok for SFML, I run some git pull and update it.

    For the 3 other libs/proto, no prob, I take a look.

    For QT, yes, I know I have to update, not sure when I start this.
     
  11. mcobit

    mcobit Advanced Member

    Joined:
    Jul 28, 2008
    Messages:
    6,755
    Did you convert MARS to OpenglES?


    You mean this spaceshooter game, don't you?
     
  12. ptitSeb

    ptitSeb Serial Porter

    Joined:
    Aug 15, 2012
    Messages:
    8,316
    Location:
    France, near Lyon
    Hum, I don't think the game will be fun to play. SFML use OpenGL, so it won't be accelerate. Full Software MesaGL beauty...
     
  13. canseco

    canseco Very Active Member

    Joined:
    Jun 1, 2004
    Messages:
    885
    Location:
    Spain
    Yes, the spaceshooter, no i didn't convert to opengles, just trying to compile one opengl game.

    It will not run smooth, but other games need opengl to compile, even if the game can use sdl, like Widelands.
     
  14. mcobit

    mcobit Advanced Member

    Joined:
    Jul 28, 2008
    Messages:
    6,755
    If they can used sdl instead of opengl, they most likely have a compileswitch to disable it or the requirements can be defined out.
     
  15. apersonthinks

    apersonthinks Member

    Joined:
    Sep 28, 2011
    Messages:
    387
    Can you include scons? ( http://www.scons.org/ ). Its written in python so the paths just have to be set.
     
  16. ptitSeb

    ptitSeb Serial Porter

    Joined:
    Aug 15, 2012
    Messages:
    8,316
    Location:
    France, near Lyon
    Yes, about scons, I have to look at this, as more and more software use it, and switch from CMake to scons.
     
  17. Askarus

    Askarus Hardcore Member

    Joined:
    Sep 28, 2011
    Messages:
    4,267
    Location:
    Germany
    Can it compile LibreOffice :D ?
     
  18. ptitSeb

    ptitSeb Serial Porter

    Joined:
    Aug 15, 2012
    Messages:
    8,316
    Location:
    France, near Lyon
    hum touché !... In fact, the "almost" is for LibreOffice... I won't compile(yet?). But I will try again later...
     
  19. canseco

    canseco Very Active Member

    Joined:
    Jun 1, 2004
    Messages:
    885
    Location:
    Spain
    I tried to compile Freeciv 2.3.3 again with your new pnd, but libiconv seems broken and freetype-config points to /usr

    This is what configure says:

    checking for iconv... yes
    checking for working iconv... no

    Then make stop compiling:


      CC     fciconv.lo
    fciconv.c: In function 'data_to_internal_string_malloc':
    fciconv.c:316:1: error: 'transliteration_string' undeclared (first use in this function)
     

    I can still compile with Codeblocks 1.04
     
  20. ptitSeb

    ptitSeb Serial Porter

    Joined:
    Aug 15, 2012
    Messages:
    8,316
    Location:
    France, near Lyon
    Oh? Strange. I don't remember touching anything about freetype, I broke it with even knowing it. Ok, I add to fix that on my TODO for Codeblocks.
     
    Last edited by a moderator: Jan 10, 2013

Share This Page

Loading...