command line app?

Discussion in 'iOS Programming' started by chris200x9, Dec 1, 2008.

  1. macrumors 6502a

    Joined:
    Jun 3, 2006
    #1
    hi, I'm looking to play gnugo on my phone, I have a terminal app woul it be possible to compile the source code and put it on my phone? if so how would be the easiest way to go about this? thanks in advance :)
     
  2. macrumors 6502a

    Joined:
    Oct 24, 2008
    Location:
    Cambridge
    #2
    Objective-C is a strict superset of C so porting it shouldn't be too hard provided gnugo doesn't hook into the OS too much. You'd just have to provide a few interface widgets to make it useful.

    Be aware that you wouldn't be able to release it to the app store though, since it's GPL 3. The project's been open a while though, so I guess you could grab a version from when it was GPL 2 and port that (assuming you read "distributor" in section 3 as yourself rather than Apple; IANAL).
     
  3. thread starter macrumors 6502a

    Joined:
    Jun 3, 2006
    #3
    hi, thanks for your reply but I don't know objective-c and I'm not looking to make an app (though this would probably be a good idea since I have yet to find a go app :p) I have a jailbroken phone and I do have a terminal emulator on it...I'm just wondering if I can get gnugo (don't care about interface can be terminal based for all I care) on it with almost no effort?

    I do have some programming experience though so answers need not be in very simple terms :)
     
  4. macrumors 6502a

    Joined:
    Oct 24, 2008
    Location:
    Cambridge
    #4
    If it's jailbroken you could probably just try with the gcc from the toolchain and fix compile errors as they arise (assuming it doesn't rely on too much).
     

Share This Page