Author Topic: Help with porting programs to iDevices  (Read 3875 times)

1337

  • Sr. Member
  • ****
  • Posts: 254
  • Reputation: 13
  • Computers: HP - Possible future  alienware!
  • iDevices: iPod 4th Gen
Help with porting programs to iDevices
« on: March 17, 2012, 11:04:18 am »
Hey guys its 1337,

I have some tools which i'd really like to be on my iPod and I know that there are some topics of port requests but I want to do it myself, so can anyone tell me what I need, which languages I need to learn etc. I also have some basic questions, What kind of OS are the iDevices running?(yes I know it runs OS X but when you look for a program to port do you which OS do you have to look for than!?  And last but not least ;-): Please tell me which filetypes you can port(source code, .tar.gz .tar) If you want you can also post a link of  a guide :)
Thanks if you took the time to read this and to comment ;) and sorry if you think these are noob questions but i am a noob in this kinda stuff :P
Greetz 1337
Learning python 2.5..
PM to make signature/avatar

A12danrulz

  • Leader
  • Hero Member
  • *****
  • Posts: 4018
  • Reputation: 217
  • Badges:
Re: Help with porting programs to iDevices
« Reply #1 on: March 17, 2012, 11:13:59 am »
iOS runs a Darwin kernel and a debian operating system. To port something get the source code(often it is given in a tarball, so unpack it first) then follow the installation instructions and make sure you have all the dependencies first. Most tools have their dependencies listed.

1337

  • Sr. Member
  • ****
  • Posts: 254
  • Reputation: 13
  • Computers: HP - Possible future  alienware!
  • iDevices: iPod 4th Gen
Re: Help with porting programs to iDevices
« Reply #2 on: March 17, 2012, 01:04:08 pm »
iOS runs a Darwin kernel and a debian operating system. To port something get the source code(often it is given in a tarball, so unpack it first) then follow the installation instructions and make sure you have all the dependencies first. Most tools have their dependencies listed.
Thanks man! But why is it so hard sometimes to port something than? +1
Learning python 2.5..
PM to make signature/avatar

Apetrick

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3513
  • Reputation: 90
  • <Apetrick> lank is 1337
  • Badges:
  • iDevices: Ipod Touch 4g
Re: Help with porting programs to iDevices
« Reply #3 on: March 17, 2012, 01:07:02 pm »
Thanks man! But why is it so hard sometimes to port something than? +1
The dependicies it needs which sometime need to be ported and the way its written it doesnt agree with the darwin kernel!!!!
<%a12danrulz> Idk, but doing a DoS from an apple device is like fighting a bear with a plastic spork

A12danrulz

  • Leader
  • Hero Member
  • *****
  • Posts: 4018
  • Reputation: 217
  • Badges:
Re: Help with porting programs to iDevices
« Reply #4 on: March 17, 2012, 01:15:57 pm »
Thanks man! But why is it so hard sometimes to port something than? +1
Because iOS lacks many of the needed dependencies, or they were compiled incorrectly, or a variety of other issues.

Don't like seeing ads? Click here to register!

Trcx528

  • Haxor
  • Hero Member
  • *****
  • Posts: 4502
  • Reputation: 166
  • Google it!
    • iNinjas
  • Badges:
  • Computers: 13" 2011 Macbook Pro, 120 GB SSD and 16 GB of Ram
  • iDevices: None
Re: Help with porting programs to iDevices
« Reply #5 on: March 17, 2012, 01:32:06 pm »
iOS runs a Darwin kernel and a debian operating system. To port something get the source code(often it is given in a tarball, so unpack it first) then follow the installation instructions and make sure you have all the dependencies first. Most tools have their dependencies listed.
Actually it run darwin as the kernel and  a stripped down version of OS X.  Saurik also has borrowed the apt package management system from debian. 

1337

  • Sr. Member
  • ****
  • Posts: 254
  • Reputation: 13
  • Computers: HP - Possible future  alienware!
  • iDevices: iPod 4th Gen
Re: Help with porting programs to iDevices
« Reply #6 on: March 17, 2012, 02:01:54 pm »
Is glib-2 available on our iDevices? And do we have an i368 or amd64 system?
Learning python 2.5..
PM to make signature/avatar

A12danrulz

  • Leader
  • Hero Member
  • *****
  • Posts: 4018
  • Reputation: 217
  • Badges:
Re: Help with porting programs to iDevices
« Reply #7 on: March 17, 2012, 02:04:35 pm »
ARM7, and I believe so, but idrk. Generally look around the libraries or search it

1337

  • Sr. Member
  • ****
  • Posts: 254
  • Reputation: 13
  • Computers: HP - Possible future  alienware!
  • iDevices: iPod 4th Gen
Re: Help with porting programs to iDevices
« Reply #8 on: March 17, 2012, 02:35:20 pm »
Can someone tell me some packages that I need to install like the how do you get the make command.
Learning python 2.5..
PM to make signature/avatar

C0deH4cker

  • Hero Member
  • *****
  • Posts: 2849
  • Reputation: 129
  • I am leaving iNinjas. Contact me via email.
  • Badges:
  • iDevices: iPhone 4S 16gb Black (5.1.1), iPad 2 32gb White (5.0.1), iPod Touch 2G 8gb (4.2.1)
Re: Help with porting programs to iDevices
« Reply #9 on: March 17, 2012, 02:37:47 pm »
iPod 2g and before run ARMv6, after this runs ARMv7. Both devices can run ARMv6 code, so this is more desirable when porting. i386 is a subset of x86, which is what computers with Intel processors have. amd64 is the 64-bit subset of AMD processors. These two are completely different processors, so code compiled for these platforms WILL NOT run on iOS. Also, the file format for binaries on iOS is mach-o, which is what OS X executables are. This is a different format then the standard *nix file format, ELF. I believe that there are existing tools which can convert between these formats, but im not sure.

Don't like seeing ads? Click here to register!

1337

  • Sr. Member
  • ****
  • Posts: 254
  • Reputation: 13
  • Computers: HP - Possible future  alienware!
  • iDevices: iPod 4th Gen
Re: Help with porting programs to iDevices
« Reply #10 on: March 17, 2012, 02:57:23 pm »
Nice text bro +1
Learning python 2.5..
PM to make signature/avatar

1337

  • Sr. Member
  • ****
  • Posts: 254
  • Reputation: 13
  • Computers: HP - Possible future  alienware!
  • iDevices: iPod 4th Gen
Re: Help with porting programs to iDevices
« Reply #11 on: March 17, 2012, 03:03:48 pm »
Anyone has answer on my previous question ;D btw i wanna thank all of you guys for helping me!
Learning python 2.5..
PM to make signature/avatar

A12danrulz

  • Leader
  • Hero Member
  • *****
  • Posts: 4018
  • Reputation: 217
  • Badges:
Re: Help with porting programs to iDevices
« Reply #12 on: March 17, 2012, 03:06:33 pm »
Can someone tell me some packages that I need to install like the how do you get the make command.
Get 'make' and have the correct libraries for the project, most likely C, so use 'compile C applications ios4' or something from the insanelyi repo

1337

  • Sr. Member
  • ****
  • Posts: 254
  • Reputation: 13
  • Computers: HP - Possible future  alienware!
  • iDevices: iPod 4th Gen
Re: Help with porting programs to iDevices
« Reply #13 on: March 17, 2012, 03:12:43 pm »
That second one wont work because im runnin ios 5 ;(
Learning python 2.5..
PM to make signature/avatar

1337

  • Sr. Member
  • ****
  • Posts: 254
  • Reputation: 13
  • Computers: HP - Possible future  alienware!
  • iDevices: iPod 4th Gen
Re: Help with porting programs to iDevices
« Reply #14 on: March 17, 2012, 03:18:27 pm »
Anyone has a c compiler for ios 5??
Learning python 2.5..
PM to make signature/avatar