E D R S I H C RSS
ID
Password
Join
Experience does not err, it is only your judgment that errs in promising itself results which are not caused by your experiments. --Leonardo Da Vinci

링크 #

설치순서 #

  • 아래 설치대로 하면 자기가 알아서 mingw 배보폰을 사용해서 컴파일합니다. 생성된 DLL은 cygwin free 입니다. :) (objdump -p로 확인해봤습니다)
  • Cygwin 이야기의 팁을 참조하여 directx 헤더를 설치합니다. 물론 w32api도 설치되어있어야합니다.
  • [http]SDL 홈페이지에서 최신 소스 tar.gz화일을 받습니다. 적당한 곳에 압축을 풉니다.
  • 소스디렉토리에서 찾아보면 sdl-config.in이라는 화일이 있습니다. 다음과 같은 부분을 찾습니다.
        --cflags)
          echo -I@includedir@/SDL @SDL_CFLAGS@
    
          # The portable way of including SDL is #include "SDL.h"
          #if test @includedir@ != /usr/include ; then
          #    # Handle oddities in Win32 path handling (assumes prefix)
          #    prefix=`echo ${prefix} | sed 's,^//\([A-Z]\),\1:,'`
          #
          #    includes=-I@includedir@
          #fi
          #echo $includes -I@includedir@/SDL @SDL_CFLAGS@
          ;;
    @ENABLE_SHARED_TRUE@    --libs)
    
    다음과 같이 수정합니다.
        --cflags)
          #echo -I@includedir@/SDL @SDL_CFLAGS@
    
          # The portable way of including SDL is #include "SDL.h"
          #if test @includedir@ != /usr/include ; then
              # Handle oddities in Win32 path handling (assumes prefix)
              prefix=`echo ${prefix} | sed 's,^//\([A-Z]\),\1:,'`
          
              includes=-I@includedir@
          #fi
          echo $includes -I@includedir@/SDL @SDL_CFLAGS@
          ;;
    @ENABLE_SHARED_TRUE@    --libs)
    
  • 다음 명령을 실행시켜 directx.h를 복사합니다.
    cp src/video/windx5/directx.h src/audio/windx5
    
  • 이제 다음과 같이 실행합니다.
    ./autogen.sh ; ./configure --prefix=/usr ; make install clean
    

SDL_image #

  • cygwin 패키지상의 jpeg, png 라이브러리는 사용불가. (mingw 기반 빌드만 링크됨.)

Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2010-10-28 12:42:52
Processing time 0.0507 sec