Powder Toy on the iPod touch?

  • Aizria
    30th Jul 2010 Member 0 Permalink
    Yay! Almost there! I resolved about 99.5% of the errors that were present as of last post and retried the compile and now there are only a few outstanding errors left. I can now finger-scroll through the entire error list in less than 30sec, whereas before it took several minutes!
  • plypencil
    30th Jul 2010 Member 0 Permalink
    Well done :D
  • Aizria
    30th Jul 2010 Member 0 Permalink
    I've eliminated almost all of the errors but I've got a few that I can't quite figure out:

    gcc -DINTERNAL -opowder -Wall -std=c99 -D_POSIX_C_SOURCE=200112L -fgnu89-inline  -O3 -ffast-math -ftree-vectorize -funsafe-math-optimizations -lSDL -lm -lbz2  Â powder.c http.c md5.c update.c -DLIN64
    In file included from /var/mobile/Applications/D0D896B2-C39A-420F-87E6-4E7B906B01 FC/Documents/powder-38.0-src/SDL/SDL_stdinc.h:42,
                     from /var/mobile/Applications/D0D896B2-C39A-420F-8 7E6-4E7B906B01FC/Documents/powder-38.0-src/SDL/SDL_main.h:26,
                     from /var/mobile/Applications/D0D896B2-C39A-420F-8 7E6-4E7B906B01FC/Documents/powder-38.0-src/SDL/SDL.h:30,
                     from powder.c:51:
    /var/mobile/Applications/D0D896B2-C39A-420F-87E6-4E7B906B01FC/Documents/powder-38.0-s rc/stdarg.h:4:25: error: no include path in which to search for stdarg.h
    powder.c:14777: error: expected identifier or '(' before string constant
    powder.c: In function 'SDL_main':
    powder.c:15847: warning: comparison is always true due to limited range of  data type
    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'
    make: *** [powder] Error 1

    Any thoughts?
  • plypencil
    30th Jul 2010 Member 0 Permalink
    update.c:72: warning: implicit declaration of function 'free'
    Means your missing some sort of header file according to what i've read on google

    powder.c:14777: error: expected identifier or '(' before string constant
    Is being caused by another error
  • Aizria
    30th Jul 2010 Member 0 Permalink
    Hmm...that's strange since I have all of the headers that the source includes. (I think this is the case. I'll go check real quick.)
  • Aizria
    30th Jul 2010 Member 0 Permalink
    Yeah, it appears as though I have everything called for, I just forgot to input the include path for the #include for hmap.h...oops!

    EDIT: I fixed the include for hmap.h, unfortunately it didn't really fix anything. I'm guessing that gcc was already finding hmap.h just fine because the error read-out is the same as before I fixed it.
  • plypencil
    30th Jul 2010 Member 0 Permalink
    hmm, maybe simon could help? He seems to be a good programmer of C
  • Aizria
    30th Jul 2010 Member 0 Permalink
    Just to let everyone know, I will not be able to post starting at about noon today and ending sometime in the afternoon tomorrow as I will be someplace lacking Internet (as far as I know). I will continue to work on compiling PT on the iPod and hope to be at least most of the way done when I come back (I'm already very close minus the errors a couple posts above).

    Simon

    What are your thoughts on the errors a couple of posts above? I'm having a hard time resolving them and am pretty sure that it's all stemming from stdarg.h, but am not sure.
  • Aizria
    30th Jul 2010 Member 0 Permalink
    I'm back! And I have 39.0 in the works! The only thing is that both 38.0 and 39.0 on my iPod keep getting stuck on the same errors that are several posts above. And I still can't solve them. Help?!

    Simon

    Any thoughts?
  • BlakPilar
    30th Jul 2010 Member 0 Permalink
    Yo! People! As it seems no one saw my previous post and I have noticed some major progress, (great job, by the way!) would it be possible to port your powder toy for the iPod to the Zune HD when you are done?