xkeymap.keysym.Hangul_Hanja = 0x0f1
그러면 vmware 에서도 한영키 사용 가능
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
가장 중요한 것은 그래픽카드의 Direct 가속이 가능해야 한다.
그걸 알아보려면 터미널 상에서 아래의 명령을 내려본다.
glxinfo | grep rendering |
결과가 “Yes” 라고 나와야 하는데 “No”라고 나오면 그래픽 드라이버를 새로 설치하여야 한다.
내가 가지고 있는 그래픽 카드의 모델을 살펴보니 nVidia Quadro4 380 XGL 64MB 이었다.
nVidia 홈에서 관련된 드라이버를 찾아보니 NVIDIA-Linux-x86-1.0-9626-pkg1.run 베타버전 이란다.
위 파일을 받아 설치하기 위해 아래와 같이 수행한다.
컴파일 환경 설정 sudo apt-get install linux-headers-`uname -r` build-essential gcc gcc-3.4 xserver-xorg-dev 기존 nVidia 드라이버 삭제 및 X 재설정 gdm stop 상태에서 콘솔로 간 후 nVidia 드라이버 설치 |
Reboot후 모듈 설정을 바꾸고, xorg.conf 파일도 수정한다.
/etc/default/linux-restricted-modules-common 파일 수정 DISABLED_MODULES=”nv” xorg.conf내 Device Section에 옵션 추가 |
다시 Reboot후 베릴을 설치한다.
우선 /etc/apt/sources.list에 아래의 저장소를 추가 후 update 및 베릴 설치
저장소 추가 deb http://ubuntu.beryl-project.org/ edgy main gpg key 설치 저장소 update 베릴 설치 베릴 실행 |
beryl을 수행하면 어떻게 이런 동작이 빠르게 수행될까 할 정도로 화려하고 멋지다.
Qt library를 다운받아 Qt Demo를 수행하면 Vector rendering 처리에서 보면 이러한 동작들이 있는데
실제 application에 이런 기능들을 구현했다는게 같은 프로그래머로서 놀라울 정도이다.
다만 내 베릴 환경에서는 2가지 문제가 발견되었다.
우선 rdesktop을 수행하면 이유없이 투명하게 나온다.
왜 redesktop에서만 그러는지 잘 모르겠고, 인터넷에서 서핑하여 여러 답안을 찾았지만 다 무용지물이다.
또, 가끔 black window bug가 발생한다. 이건 그래픽카드의 메모리가 모자라서 생겼으며,
nVidia 드라이버의 버그라고도 한다.
어쨌든 오랜만에 훌륭한 프로그램을 접해보니 기분이 좋다.
http://thisrule.egloos.com/2995248