How can we compile it on the armel-linux?

  • cssshst
    17th Jan 2011 Member 0 Permalink
    How can we compile it on the armel-linux?

    I hope my MID can play it

    my MID has a linux system it called “Ubutnu”
  • cssshst
    17th Jan 2011 Member 0 Permalink
    Nobody can answer me?
  • Merbo
    17th Jan 2011 Member 0 Permalink
    Ubuntu needs to have it installed as a .deb file. I can attempt to package them, no promises however.
  • Felix
    17th Jan 2011 Member 0 Permalink
    You need an arm compiler. Then just change the makefile accordingly.
  • Dadasas
    17th Jan 2011 Member 0 Permalink
    gamerboy8864 You don't need it as a deb file, I just download/compile and run it as a regular program.

    And you don't need to put Ubuntu in quotes, most people know Ubuntu, it's the most used Linux distro.
    And, you spelled Ubuntu wrong.
  • Hellome
    17th Jan 2011 Member 0 Permalink
    I Think Code==Blocks can compile arm, could be wrong.
  • Felix
    17th Jan 2011 Member 0 Permalink
    Hellome:
    I Think Code==Blocks can compile arm, could be wrong.

    Codeblocks isn't even a compiler. So yes, you are wrong. Also, saying "compile arm" is completely ****. You can't compile a processor architecture.
  • Hellome
    17th Jan 2011 Member 0 Permalink
    oh sorry, I think it means you can write code that the ARM processor is compatible with: (not sure if that is means what i am trying to say)

  • aapo
    17th Jan 2011 Member 0 Permalink
    Hi cssshst, do you know how to compile things from source?

    Have you read this?
    https://powdertoy.co.uk/Wiki.html?id=building_in_linux

    This is step-by-step instructions for fresh installed Ubuntu. These are all commands for terminal, each row starting with sudo needs your password (and your user must be in admin-group. e.g. first user made for system). I hope you understand each step before executing it.
    This will work on ARM too.

    -----
    sudo apt-get install git-core build-essential libsdl1.2-dev libbz2-dev
    git clone git://github.com/FacialTurd/The-Powder-Toy.git
    cd The-Powder-Toy.git
    gcc -DINTERNAL -opowder -w -std=c99 -D_POSIX_C_SOURCE=200112L -Iincludes/ -O3 -ffast-math -ftree-vectorize -lSDL -lm -lbz2 src/*.c
    -----
    Then you can run it with:
    ./powder
    -----
  • Felix
    17th Jan 2011 Member 0 Permalink
    aapo:
    Hi cssshst, do you know how to compile things from source?

    Have you read this?
    https://powdertoy.co.uk/Wiki.html?id=building_in_linux

    This is step-by-step instructions for fresh installed Ubuntu. These are all commands for terminal, each row starting with sudo needs your password (and your user must be in admin-group. e.g. first user made for system). I hope you understand each step before executing it.
    This will work on ARM too.

    -----
    sudo apt-get install git-core build-essential libsdl1.2-dev libbz2-dev
    git clone git://github.com/FacialTurd/The-Powder-Toy.git
    cd The-Powder-Toy.git
    gcc -DINTERNAL -opowder -w -std=c99 -D_POSIX_C_SOURCE=200112L -Iincludes/ -O3 -ffast-math -ftree-vectorize -lSDL -lm -lbz2 src/*.c
    -----
    Then you can run it with:
    ./powder
    -----

    It will not work as you need a cross compiler, assuming he is not compiling on his ARM machine.