veekays / iphonedevonlinux

Automatically exported from code.google.com/p/iphonedevonlinux
0 stars 0 forks source link

Ubuntu 10.04: Build toolchain xcode_3.2.2_and_iphone_sdk_3.2_final.dmg/iPhone1,2_3.1.2_7D11_Restore.ipsw #31

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Startup and build

What is the expected output? What do you see instead?

1-->Modification of toochain.sh :

line 28 : TOOLCHAIN_VERSION="3.2"
line 357 : if [ "${TOOLCHAIN_VERSION}" == "3.2" ] ; then

2-Problem with decryption key for system partition

line 531-534 : DECRYPTION_KEY_SYSTEM='key'
You can find your key here :
http://theiphonewiki.com/wiki/index.php?title=Northstar_7D11_(iPhone_3G)
http://theiphonewiki.com/wiki/index.php?title=Northstar_7D11_(iPhone)
For me : 
a8a886d56011d2d98b190d0a498f6fcac719467047639cd601fd53a4a1d93c24e1b2ddc6

3-Make.log error on building

Error : MachOWriterExecutable.hpp:2222: error: ‘sprintf’ was not declared 
in this scope

Solution from Issues :
My solution on Ubuntu 10.04 was to add these 2 lines

#include <stdio.h>
#include <stdlib.h> 

to these 4 files:

/home/user/Projects/iphone/toolchain/toolchain/src/cctools/ld64/src/MachOReaderD
ylib.hpp
/home/user/Projects/iphone/toolchain/toolchain/src/cctools/ld64/src/MachOWriterE
xecutable.hpp
/home/user/Projects/iphone/toolchain/toolchain/src/cctools/ld64/src/MachOReaderR
elocatable.hpp
/home/user/Projects/iphone/toolchain/toolchain/src/cctools/ld64/src/Options.cpp

4-Make.log error on building

Error : g++ -o ld64 ld.o Options.o debugline.o strlcpy.o -m32 -L../libstuff 
-lstuff -luuid -lcrypto -ldl
/usr/bin/ld: cannot find -luuid                     collect2: ld returned 1 exit status

Solution from Issues :
Install Multilib packages for gxx and ia32-libs like say in scipt

5-Building OK for me :-)

What version of the product are you using? On what operating system?
Files:
-iPhone1,2_3.1.2_7D11_Restore.ipsw
-xcode_3.2.2_and_iphone_sdk_3.2_final.dmg

Please provide any additional information below.
Ubuntu 10.04 64bits with all repository

THANKS FOR YOUR SOLUTIONS

Original issue reported on code.google.com by fabreo85@gmail.com on 19 Jun 2010 at 2:49

GoogleCodeExporter commented 8 years ago
Thank you! You've cured me of a week-long headache.

Original comment by lpq...@gmail.com on 24 Jul 2010 at 1:26

GoogleCodeExporter commented 8 years ago
Thanks you very much. After a long time search, this solution really works.

Original comment by PaulChai...@gmail.com on 11 Sep 2010 at 12:09