Powder Toy on the iPod touch?

  • Felix
    30th Jul 2010 Member 0 Permalink
    instead of -opowder, use -o powder.

    Might work, if not, just remove the whole -opowder thing.
  • Aizria
    30th Jul 2010 Member 0 Permalink
    plypencil

    There is one error, the gcc option error at the bottom.

    Felix

    Ok, I fixed the -o option and this is the readout now:

    gcc -DINTERNAL -o powder -Wall -std=c99 -D_POSIX_C_SOURCE=200112L -fgnu89-inli ne -O3 -ffast-math -ftree-vectorize -funsafe-math-optimizations -lSDL -lm -lbz 2   powder.c http.c md5.c update.c -DLIN64
    powder.c: In function 'SDL_main':
    powder.c:8039: warning: comparison is always true due to limited range of  data type
    powder.c: At top level:
    icon.h:22: warning: 'app_icon_w32' defined but not used
    update.c: In function 'exe_name':
    update.c:60: warning: implicit declaration of function 'malloc'
    update.c:60: warning: incompatible implicit declaration of built-in function  'malloc'
    update.c:67: warning: implicit declaration of function 'realloc'
    update.c:67: warning: assignment makes pointer from integer without a cast
    update.c:72: warning: implicit declaration of function 'free'
    update.c: In function 'update_start':
    update.c:118: warning: incompatible implicit declaration of built-in function  'malloc'
    ld: library not found for -lSDL
    collect2: ld returned 1 exit status
    make: *** [powder] Error 1

    It looks like I'm going to have to change the header names in the -l options to absolute paths.
  • plypencil
    30th Jul 2010 Member 0 Permalink
    Nope, it is a common path problem

    ./ <- windows file system

    / <- unix file system

    Although seeing as the powder toy is cross compilable I think this would have already been done. Maybe absolute is the only way.
  • Aizria
    30th Jul 2010 Member 0 Permalink
    Does anyone know what the -l flags are for? I am almost tempted to remove them because I'm not sure what their purpose is and, while I know (or think I know) what -lSDL and -lbz2 reference, I have no clue what -lm references.
  • Felix
    30th Jul 2010 Member 0 Permalink
    They are instructions to ld.
  • Aizria
    30th Jul 2010 Member 0 Permalink
    Could you explain in a little more detail please? You'll have to forgive me for not completely understanding, most of my coding work is in Python and web languages, so I don't typically mess with compilers much.
  • wouter215
    30th Jul 2010 Member 0 Permalink
    @Excimer-Sun-Software
    just a question, how much ram does your ipod have?
  • Felix
    30th Jul 2010 Member 0 Permalink
    Excimer-Sun-Software:
    Could you explain in a little more detail please? You'll have to forgive me for not completely understanding, most of my coding work is in Python and web languages, so I don't typically mess with compilers much.

    They are instruction to the linker.
  • Aizria
    30th Jul 2010 Member 0 Permalink
    wouter215

    128Mb DRAM with 532MHz, single-core processor and 8Gb, solid-state HD. Found the number of processor cores using 2 lines of Python.

    Felix

    Oh ok.How necessary are they?(quite very, yes?)
  • Felix
    30th Jul 2010 Member 0 Permalink
    Excimer-Sun-Software:
    Felix

    Oh ok.How necessary are they?(quite very, yes?)

    Very very indeed yes.