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

1337

  • Sr. Member
  • ****
  • Posts: 254
  • Reputation: 13
  • Computers: HP - Possible future  alienware!
  • iDevices: iPod 4th Gen
Re: Help with porting programs to iDevices
« Reply #30 on: March 20, 2012, 01:13:45 am »
K how can I fix it ?
Learning python 2.5..
PM to make signature/avatar

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 #31 on: March 20, 2012, 08:02:55 am »
I'm not seeing where it says there was an error...

1337

  • Sr. Member
  • ****
  • Posts: 254
  • Reputation: 13
  • Computers: HP - Possible future  alienware!
  • iDevices: iPod 4th Gen
Re: Help with porting programs to iDevices
« Reply #32 on: March 20, 2012, 09:31:17 am »

Learning python 2.5..
PM to make signature/avatar

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 #33 on: March 20, 2012, 10:39:05 am »
You're missing the crt_externs.h header.  Run the "installsdk3" command and then do a
Code: [Select]
find / -name crt_externs.h
and hope that finds it, the symlink (or copy) it to /usr/include.  Otherwise you can try the OS X header https://ininjas.com/wiki/files/usr/include/crt_externs.h and if  that doesn't work then you are going to have to start some serious googling. 

1337

  • Sr. Member
  • ****
  • Posts: 254
  • Reputation: 13
  • Computers: HP - Possible future  alienware!
  • iDevices: iPod 4th Gen
Re: Help with porting programs to iDevices
« Reply #34 on: March 20, 2012, 02:16:02 pm »
You're missing the crt_externs.h header.  Run the "installsdk3" command and then do a
Code: [Select]
find / -name crt_externs.h
and hope that finds it, the symlink (or copy) it to /usr/include.  Otherwise you can try the OS X header https://ininjas.com/wiki/files/usr/include/crt_externs.h and if  that doesn't work then you are going to have to start some serious googling.
Ok ive got a noobquestion for you guys, how do you get installsdk3, is that command the actual installer? Because its command not found and cydia haz no results
Learning python 2.5..
PM to make signature/avatar

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

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 #35 on: March 20, 2012, 02:54:21 pm »
Bigboss Recommended Hacker Tools

But that file isnt included in the installsdk3. You have to get it from apple's site. Just google it. And dont worry, you already have the required libs for it.

LeoTh3o

  • Full Member
  • ***
  • Posts: 231
  • Reputation: 43
    • ET&C
  • Computers: MacBook Pro 15', half 2009, OS X 10.8.1
  • iDevices: iPod 3G iOS 5.1.1; iPad 2 WiFi iOS 5.1.1 jb
Re: Help with porting programs to iDevices
« Reply #36 on: March 20, 2012, 03:00:19 pm »
Is glib-2 available on our iDevices? And do we have an i368 or amd64 system?
iOS is little-endian arm6 or arm7 (if you specify arm it'll be OK) with mach-o executables. If there's nothing specifically for iOS you should choose 32bit options with configure. (I did this for openssl)
Most libs aren't symlinked properly by installsdk3 so search for them under /private/var/sdK/usr/lib/libname.dylib and eventually symlink them to /usr/local/lib.
crt_externs.h has never been part of the iOS SDK but you can get a copy from the iPhoneSimulator SDK
0xEB        0xFE
jmp short -2

1337

  • Sr. Member
  • ****
  • Posts: 254
  • Reputation: 13
  • Computers: HP - Possible future  alienware!
  • iDevices: iPod 4th Gen
Re: Help with porting programs to iDevices
« Reply #37 on: March 21, 2012, 03:19:50 pm »
So now i have the file in my /var/mobile/ directory, how should i execute it or how where do i have to place it?
Learning python 2.5..
PM to make signature/avatar

Ginger

  • Dev Team Member
  • Hero Member
  • *****
  • Posts: 610
  • Reputation: 6
    • PwnDevTeam!
  • Computers: Forgot model but Dell Inspirion Tower (6gb ram, Quad core, 1tb hdd, 1gb graphics)
  • iDevices: iPod Touch 4G 8GB And iPod Nano 1G 1Gb
Re: Help with porting programs to iDevices
« Reply #38 on: March 21, 2012, 04:11:52 pm »
iOS is little-endian arm6 or arm7 (if you specify arm it'll be OK) with mach-o executables. If there's nothing specifically for iOS you should choose 32bit options with configure. (I did this for openssl)
Most libs aren't symlinked properly by installsdk3 so search for them under /private/var/sdK/usr/lib/libname.dylib and eventually symlink them to /usr/local/lib.
crt_externs.h has never been part of the iOS SDK but you can get a copy from the iPhoneSimulator SDK
ARM is 32-bit. You should always select it :)

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 #39 on: March 21, 2012, 09:17:13 pm »
So now i have the file in my /var/mobile/ directory, how should i execute it or how where do i have to place it?
What file?

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 #40 on: March 22, 2012, 01:32:49 am »
crt_externs.h, but I already know where to put :P
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 #41 on: March 22, 2012, 01:54:29 am »


When I make and make check its all fine but
Make install gives me this error
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 #42 on: March 22, 2012, 06:54:48 am »
what error? that is just what make install looks like. unless im missing something, it compiled and installed without error.

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 #43 on: March 22, 2012, 08:06:02 am »
That's what it's looking like to me as well.  There is no error that I can see. 

1337

  • Sr. Member
  • ****
  • Posts: 254
  • Reputation: 13
  • Computers: HP - Possible future  alienware!
  • iDevices: iPod 4th Gen
Re: Help with porting programs to iDevices
« Reply #44 on: March 22, 2012, 10:22:40 am »
So I was trying to install glib-2.14 and got this error, I already tried to read it myself and from what I understand from it it says /usr/lib libc.dylib is not from the architecture and have no idea how to fix :'(. here is the piece of code:
Code: [Select]
ld warning: in /usr/lib/libc.dylib, file is not of required architecture
ld warning: in /usr/lib/libc.dylib, file is not of required architecture
ld warning: duplicate dylib /usr/local/lib/libiconv.2.dylib
ld: file not found: /System/Library/Frameworks/CoreFoundation.framework/CoreFoun                                                                                                                     dation
collect2: ld returned 1 exit status
make[4]: *** [libglib-2.0.la] Error 1
make[4]: Leaving directory `/private/var/mobile/Documents/glib-2.14.6/glib'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/private/var/mobile/Documents/glib-2.14.6/glib'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/private/var/mobile/Documents/glib-2.14.6/glib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/private/var/mobile/Documents/glib-2.14.6'
make: *** [all] Error 2
Learning python 2.5..
PM to make signature/avatar