vi/etc/inittab
id:5:initdefault: 이걸
id:3:initdefault: 이렇게
고치고 재부팅
또는 /etc/rc5.d/S30gdm 이걸 지워도 됨
그냥 콘솔 환경이 필요한거라면 Ctrl +Alt + F1 ~F6 까지 누르면
콘솔로 나간다 (들어올때는 F7)
그래픽 드라이버 설치시에는 X윈도가 떠있으면 안되는데
xdm/kdm/gdm 죽인다음 설치 ㄱㄱ
(service gdm stop)
vi/etc/inittab
id:5:initdefault: 이걸
id:3:initdefault: 이렇게
고치고 재부팅
또는 /etc/rc5.d/S30gdm 이걸 지워도 됨
그냥 콘솔 환경이 필요한거라면 Ctrl +Alt + F1 ~F6 까지 누르면
콘솔로 나간다 (들어올때는 F7)
그래픽 드라이버 설치시에는 X윈도가 떠있으면 안되는데
xdm/kdm/gdm 죽인다음 설치 ㄱㄱ
(service gdm stop)
/etc/profile
Woo.. after doing the process almost ten times, downloading the fullxodetools.dmg(~924mb) i finally have the iPhone toolchain working.. ihave setup the non official iPhone SDK ,, untill the official by Applecomes out in Feb’08 .
Start developing native iPhone apps today, no more web 2.0…
There are many guides out there, i am just telling my expierience, hope it works for you..
It uses the GC++, GCC compiler in linux..
I used Fedore 7 on VMware(virtual machine, you can grab both of them for free) to build the toolchain. I recomd.linux for good performance..
Content from –http://code.google.com/p/iphone-dev/wiki/Building,with my tips inBOLD.
HOWTO build the toolchain
Run terminal…
$ bison--version
GNUBisonversion1.28
$ flex--version
flex version2.5.4
$ svn co http://llvm.org/svn/llvm-project/llvm/trunkllvm-svn -r 42498
$ pushd llvm-svn
$ ./configure --enable-optimized
$ make ENABLE_OPTIMIZED=1
$ sudo make install
$ LLVMOBJDIR=`pwd`
$ popd
$ svn checkout http://iphone-dev.googlecode.com/svn/trunk/iphone-dev
$ pushd iphone-dev
$ sudo mkdir/usr/local/arm-apple-darwin
$ mkdir-p build/odcctools
$ pushd build/odcctools
$../../odcctools/configure--target=arm-apple-darwin--disable-ld64
$ make
$ sudo make install
$ popd
$ HEAVENLY=/usr/local/share/iphone-filesystem
$ pushd include
$./configure --with-macosx-sdk=/Developer/SDKs/MacOSX10.4u.sdk
$ sudo bash install-headers.sh
$ popd
$ mkdir-p build/csu
$ pushd build/csu
$../../csu/configure--host=arm-apple-darwin
$ sudo make install
$ popd
$ mv llvm-gcc-4.0-iphone/configure llvm-gcc-4.0-iphone/configure.old
$ sed's/^FLAGS_FOR_TARGET=$/FLAGS_FOR_TARGET=${FLAGS_FOR_TARGET-}/g'\
llvm-gcc-4.0-iphone/configure.old>llvm-gcc-4.0-iphone/configure
$exportFLAGS_FOR_TARGET="-mmacosx-version-min=10.1"
$ sudo ln-s/usr/local/arm-apple-darwin/lib/crt1.o\
/usr/local/arm-apple-darwin/lib/crt1.10.5.o
$ mkdir-p build/llvm-gcc-4.0-iphone
$ pushd build/llvm-gcc-4.0-iphone
$../../llvm-gcc-4.0-iphone/configure--enable-llvm=`llvm-config --obj-root`\
--enable-languages=c,c++,objc,obj-c++--target=arm-apple-darwin--enable-sjlj-exceptions\
--with-heavenly=$HEAVENLY--with-as=/usr/local/bin/arm-apple-darwin-as\
--with-ld=/usr/local/bin/arm-apple-darwin-ld
$ make LLVM_VERSION_INFO=2.0-svn-iphone-dev-0.3-svn
$ sudo make install
$ popd
$ popd
You’re done. Have fun!
=Install thecpioutility using your distribution’s standard package management system.All the major Linux distributions, as well as Cygwin, should have thisutility.
=No needtodownload the whole xcode tools dmg (~924mb). I extracted thepackage,uploaded it for you :), download the needed file from here-http://rapidshare.com/files/66764258/MacOSX10.4u.sdk.rar
=Extract RAR, then thepaxarchive by creating a new dir and using the following command in terminal
gunzip-c MacOSX10.4u.sdk.pax.gz|cpio-i
=FindMacOSX10.4u.sdkfolder in extracted contents and link it toolchain install procedure.
—LOGIN as root to avoid weird errors, password prompts again and again..
–The envirnoment variables should be set properly to check there use this command in terminal- echo $VARIABLENAME, eg. –echo $HEAVENLYif it returns blank line set it again. the envirno. variable has aliftime till the terminal runs, if you close it, you have to set itagain
— errors i got ,when i do"make LLVM_VERSION_INFO=2.0-svn-iphone-dev-0.3-svn" its runs for a long time and then results in this error */usr/local/bin/arm-apple-darwin-ld:/home/Aakash/iphone/iphone-image/usr/lib/libc.dylib truncated ormalformed object (mach header extends past the end of the file)collect2: ld returned 1 exit status make2 [libgcc_s.dylib] Error 1make2 Leaving directory`/root/iphone-dev/build/llvm-gcc-4.0-iphone/gcc' make1 [stmp-multilib]Error 2 make1: Leaving directory`/root/iphone-dev/build/llvm-gcc-4.0-iphone/gcc' make: [all-gcc] Error 2
*
i did this to get off the error"openall .dylib files (<=1 k) one by one in folder/iphone-image/usr/lib/, rename it – and for example libc.dylib showspath to libSystem and libSystem – path to libSystem.B.dylib. Just copylibSystem.B.dylib twice and rename 2 new files to libc.dylib andlibSystem.dylib. do this for all <=1kb .dylib files".
The iPhone image i uploaded here contains these changes, no need to do again.
Passwordfor all my rapidshare uploadsif neededin this post isaksblog.co.nr
Usefull links-
Post toolchain install–
make
Need any help, post as comment…
압축
zip -r -F 저장할파일명.zip 저장할 디렉/
-r 서브디렉토리가지 압축
-F 한글파일을 포함하는 zip 압축
해제
unzip 파일이름.zip
jar xvf 파일이름.zip