[WIPI] 개발 환경 설정

1. SDK 개발 환경

2. 환경 변수 설정

  • PATH =  C:\cygwin\bin; C:\cygwin\usr\local\arm\bin
  • PATH =  C:\jdk1.3.1_18\bin; C:\KTF\WIPI1.2SDK\bin
  • WIPI_HOME : C:\KTF\WIPI1.2SDK
  • C:\cygwin\bin에 있는 link.exe파일을 link.exe.bak 으로 바꿔 준다. => 나중에 에뮬컴파일시 충돌문제

3. Visual Studio 설정

  • Tools -> options -> Include files -> INCLUDE WIPIC , INCLUDE 디렉토리 추가

  • Tools -> options -> Library files -> LIB 디렉토리 추가

  • Project -> Setting -> link 에서 WIPI_crt_vcx86.a 를 추가한다


Project->Setting -> Debug

* Executable for debug session
   C:\KTF\WIPI1.2SDK\Emulator\SWIPIEmul_QVGA.exe
* Working directory:
   C:\KTF\WIPI1.2SDK\Emulator
* Program argument:
   classpath C:\clet\App\app_bin.jar -DEBUG 
   C:\clet\App\Debug\app.dll    org.kwis.msp.lcdui.Main Clet - 
   SKIN="C:\KTF\WIPI1.2SDK\Emulator\WIPISkines\KTF_WIPI_SKIN_240X320.skin"

4. cygwin 설치


cygwin 설치후 arm.zip 을 C:\cygwin\usr\local\arm 압축풀기를 해야 한다.
cygwin 은 원동우 상에서 gcc arm 컴파일러를 구동하기 위한 실행환경을 갖춰 준다.
실제 실행 화일 : C:\cygwin\usr\local\arm\bin

5. 배치 파일 만들기

    1. 폰용 배치 파일 만들기
         
         arm-elf-gcc -I -I ..\phone -w -Wa, -k -mthumb -fpic -O2 -ffixed -fp -ffixed -sb 
        -ffixed -lr -o HelloWorld.o -c HelloWorld.c %1.2>Compile.log
         pause
         arm-elf-gcc rc HelloWorld.a *o %1 2>Compile.log
         del *.o
         pause
         jar cf HelloWorld.jar *.a %1 2>Compile.log
         del *.a
         pause

     2. 에뮬용 배치 파일 만들기 

         cl /w /O2 /Oy- /Zp4 -I. -I "C:\Program Files\Microsoft Visual Studio\VC98\
         include" -I  "C:\KTF\WIPI1.2SDK\include" -I "C:\KTF\WIPI1.2SDK\include
         _WIPIC" -c HelloWorld.c /FoHelloWorld.o %1 2>Compile.log
         pause
         jar -cvf HelloWorld.jar *.o %1 2>Compile.log
         del *.o
         pause
         j2x86bin Clet HelloWorld.jar HelloWorld_bin.jar %1 2>Compile.log
         pause


       
     

by 가츠 | 2007/12/18 00:28 | + [WIPI] | 트랙백(1) | 덧글(1)
트랙백 주소 : http://berserk76.egloos.com/tb/1153271
☞ 내 이글루에 이 글과 관련된 글 쓰기 (트랙백 보내기) [도움말]
Tracked from at 2008/07/24 04:29

제목 : Google
Google is the best search engine Google...more

Commented at 2008/04/14 18:24
비공개 덧글입니다.

:         :

:

비공개 덧글



<< 이전 페이지 다음 페이지 >>