Powder Toy on the iPod touch?

  • Aizria
    30th Jul 2010 Member 0 Permalink
    I was just thinking about it and I just realized that the fact that it can't find the libs might have something to do with the fact that I'm symlinking the .h files and that, quite possibly, gcc doesn't follow symlinks.

    @triclops200

    I'm running iPhone OS 3.1.3 on 2nd gen iPod Touch hardware. Jailbroken.

    @lolzy

    Well, I was kinda hoping to have 38.0 compiled on the iPod by yesterday, but I unfortunately have been having difficuties solving some compiler errors that relate to the placement of the .h files that are required by the .c files.
  • triclops200
    30th Jul 2010 Former Staff 0 Permalink
    what are you compiling on?
  • Aizria
    30th Jul 2010 Member 0 Permalink
    @triclops200

    In the terminal <i>on</i> the iPod using gcc via make, with the aid of a Python script to get the errors output to, and saved in, a text file log.
  • triclops200
    30th Jul 2010 Former Staff 0 Permalink
    hmm... then I can't help... unless you get visual c++ express and compile on your pc
  • bchandark
    30th Jul 2010 Member 0 Permalink
    I think Apple forces you to develop on a Mac.
  • Aizria
    30th Jul 2010 Member 0 Permalink
    @triclops200

    I think I have a solution. I'm using copy/paste to replicate the .h file dependency tree in the 'powder-38.0-src' directory. I'm thinking that this should finally do the trick.

    Edit: But wow! What a painfully large dependency tree, mostly indirect dependencies.

    @bchandark

    Yes, they essentially do if you are developing for the AppStore. Though, I'm making an unsigned iPod version of PT right now which will not be submitted to the AppStore. In fact, I'm currently doing <i>all</i> of this on my iPod touch, thanks to the fact that it's jailbroken.
  • Aizria
    30th Jul 2010 Member 0 Permalink
    In version.h there's a line that says:

    "#define IDENT_VERSION "S" //Change this if you're not Simon! It should be  a single letter."

    Is there somthing specific that this is supposed to be changed to, can it be changed to whatever, or does it not need changed at all?

    EDIT: I'm just going to change the "S" to "E" for now. Would that be correct?
  • Aizria
    30th Jul 2010 Member 0 Permalink
    I replicated the entire .h dependency tree of PT directly in the 'powder-38.0-src' directory and gcc still can't find stdio.h, math.h, etc. when I try a make. It's only finding md5.h, http.h, version.h, etc.(which are in the same directory as stdio.h, etc. ). Does anyone around these parts know enough about gcc to possibly help me?
  • fabrizziop
    30th Jul 2010 Member 0 Permalink
    Why not use Visual studio?
  • Aizria
    30th Jul 2010 Member 0 Permalink
    Well...I can't install Visual Studio on my iPod! The point of this is to make a version that is natively compiled for the iPod/iPhone, so I kinda have to work with what I can install on my jb'd iPod. That is, unless somebody knows a way to compile for the iPod on a computer (WinXP or Ubuntu 10.04LTS)?