리눅스에서 윈도용 SDL 컴파일...
글쓴이: segfault / 작성시간: 일, 2004/11/14 - 1:54오후
mingw는 /usr/local/mingw32에 설치되어 있습니다.
SDL 윈도 바이너리를 크로스컴파일하는 중
링크중에 항상 이런 메시지가 뜹니다.
i386-pc-mingw32-gcc -shared .libs/SDL.o .libs/SDL_error.o .libs/SDL_fatal.o .libs/SDL_getenv.o .libs/SDL_loadso.o -Wl,--whole-archive main/.libs/libarch.a audio/.libs/libaudio.a video/.libs/libvideo.a events/.libs/libevents.a joystick/.libs/libjoystick.a cdrom/.libs/libcdrom.a thread/.libs/libthread.a timer/.libs/libtimer.a endian/.libs/libendian.a file/.libs/libfile.a cpuinfo/.libs/libcpuinfo.ahermes/.libs/libhermes.a -Wl,--no-whole-archive -luser32 -lgdi32 -lwinmm -ldxguid -o .libs/SDL.dll -Wl,--enable-auto-image-base -Wl,--out-implib,.libs/libSDL.dll.a Creating library file: .libs/libSDL.dll.a video/.libs/libvideo.a(SDL_yuv_mmx.o)(.text+0x5a): In function `ColorRGBDitherYV12MMX1X': /usr/src/SDL-1.2.7/src/video/SDL_yuv_mmx.c:106: undefined reference to `_MMX_0080w' video/.libs/libvideo.a(SDL_yuv_mmx.o)(.text+0x64):/usr/src/SDL-1.2.7/src/video/SDL_yuv_mmx.c:106: undefined reference to `_MMX_VgrnRGB' video/.libs/libvideo.a(SDL_yuv_mmx.o)(.text+0x6b):/usr/src/SDL-1.2.7/src/video/SDL_yuv_mmx.c:106: undefined reference to `_MMX_VredRGB' video/.libs/libvideo.a(SDL_yuv_mmx.o)(.text+0x84):/usr/src/SDL-1.2.7/src/video/SDL_yuv_mmx.c:106: undefined reference to `_MMX_FF00w' video/.libs/libvideo.a(SDL_yuv_mmx.o)(.text+0x8b):/usr/src/SDL-1.2.7/src/video/SDL_yuv_mmx.c:106: undefined reference to `_MMX_00FFw' video/.libs/libvideo.a(SDL_yuv_mmx.o)(.text+0xb7):/usr/src/SDL-1.2.7/src/video/SDL_yuv_mmx.c:106: undefined reference to `_MMX_0080w' video/.libs/libvideo.a(SDL_yuv_mmx.o)(.text+0xc1):/usr/src/SDL-1.2.7/src/video/SDL_yuv_mmx.c:106: undefined reference to `_MMX_UgrnRGB' video/.libs/libvideo.a(SDL_yuv_mmx.o)(.text+0xc8):/usr/src/SDL-1.2.7/src/video/SDL_yuv_mmx.c:106: undefined reference to `_MMX_UbluRGB' video/.libs/libvideo.a(SDL_yuv_mmx.o)(.text+0x20a): In function `Color565DitherYV12MMX1X': /usr/src/SDL-1.2.7/src/video/SDL_yuv_mmx.c:261: undefined reference to `_MMX_0080w' video/.libs/libvideo.a(SDL_yuv_mmx.o)(.text+0x211):/usr/src/SDL-1.2.7/src/video/SDL_yuv_mmx.c:261: undefined reference to `_MMX_0080w' video/.libs/libvideo.a(SDL_yuv_mmx.o)(.text+0x21e):/usr/src/SDL-1.2.7/src/video/SDL_yuv_mmx.c:261: undefined reference to `_MMX_Ugrn565' video/.libs/libvideo.a(SDL_yuv_mmx.o)(.text+0x228):/usr/src/SDL-1.2.7/src/video/SDL_yuv_mmx.c:261: undefined reference to `_MMX_Ublu5x5' video/.libs/libvideo.a(SDL_yuv_mmx.o)(.text+0x22f):/usr/src/SDL-1.2.7/src/video/SDL_yuv_mmx.c:261: undefined reference to `_MMX_00FFw' video/.libs/libvideo.a(SDL_yuv_mmx.o)(.text+0x236):/usr/src/SDL-1.2.7/src/video/SDL_yuv_mmx.c:261: undefined reference to `_MMX_Vgrn565' video/.libs/libvideo.a(SDL_yuv_mmx.o)(.text+0x240):/usr/src/SDL-1.2.7/src/video/SDL_yuv_mmx.c:261: undefined reference to `_MMX_Vred5x5' video/.libs/libvideo.a(SDL_yuv_mmx.o)(.text+0x24b):/usr/src/SDL-1.2.7/src/video/SDL_yuv_mmx.c:261: undefined reference to `_MMX_Ycoeff' video/.libs/libvideo.a(SDL_yuv_mmx.o)(.text+0x255):/usr/src/SDL-1.2.7/src/video/SDL_yuv_mmx.c:261: undefined reference to `_MMX_Ycoeff' video/.libs/libvideo.a(SDL_yuv_mmx.o)(.text+0x28c):/usr/src/SDL-1.2.7/src/video/SDL_yuv_mmx.c:261: undefined reference to `_MMX_red565' video/.libs/libvideo.a(SDL_yuv_mmx.o)(.text+0x29a):/usr/src/SDL-1.2.7/src/video/SDL_yuv_mmx.c:261: undefined reference to `_MMX_grn565' video/.libs/libvideo.a(SDL_yuv_mmx.o)(.text+0x2a1):/usr/src/SDL-1.2.7/src/video/SDL_yuv_mmx.c:261: undefined reference to `_MMX_red565' video/.libs/libvideo.a(SDL_yuv_mmx.o)(.text+0x2d4):/usr/src/SDL-1.2.7/src/video/SDL_yuv_mmx.c:261: undefined reference to `_MMX_00FFw' video/.libs/libvideo.a(SDL_yuv_mmx.o)(.text+0x2e1):/usr/src/SDL-1.2.7/src/video/SDL_yuv_mmx.c:261: undefined reference to `_MMX_Ycoeff' video/.libs/libvideo.a(SDL_yuv_mmx.o)(.text+0x2ef):/usr/src/SDL-1.2.7/src/video/SDL_yuv_mmx.c:261: undefined reference to `_MMX_red565' video/.libs/libvideo.a(SDL_yuv_mmx.o)(.text+0x2f6):/usr/src/SDL-1.2.7/src/video/SDL_yuv_mmx.c:261: undefined reference to `_MMX_red565' video/.libs/libvideo.a(SDL_yuv_mmx.o)(.text+0x301):/usr/src/SDL-1.2.7/src/video/SDL_yuv_mmx.c:261: undefined reference to `_MMX_grn565' video/.libs/libvideo.a(SDL_yuv_mmx.o)(.text+0x31c):/usr/src/SDL-1.2.7/src/video/SDL_yuv_mmx.c:261: undefined reference to `_MMX_Ycoeff' video/.libs/libvideo.a(SDL_yuv_mmx.o)(.text+0x36d):/usr/src/SDL-1.2.7/src/video/SDL_yuv_mmx.c:261: undefined reference to `_MMX_red565' video/.libs/libvideo.a(SDL_yuv_mmx.o)(.text+0x37c):/usr/src/SDL-1.2.7/src/video/SDL_yuv_mmx.c:261: undefined reference to `_MMX_red565' video/.libs/libvideo.a(SDL_yuv_mmx.o)(.text+0x383):/usr/src/SDL-1.2.7/src/video/SDL_yuv_mmx.c:261: undefined reference to `_MMX_grn565' video/.libs/libvideo.a(SDL_yuv_mmx.o)(.text+0x3aa):/usr/src/SDL-1.2.7/src/video/SDL_yuv_mmx.c:261: undefined reference to `_MMX_red565' video/.libs/libvideo.a(SDL_yuv_mmx.o)(.text+0x3b1):/usr/src/SDL-1.2.7/src/video/SDL_yuv_mmx.c:261: undefined reference to `_MMX_red565' video/.libs/libvideo.a(SDL_yuv_mmx.o)(.text+0x3c0):/usr/src/SDL-1.2.7/src/video/SDL_yuv_mmx.c:261: undefined reference to `_MMX_grn565' collect2: ld returned 1 exit status
MMX 관련 함수를 찾아내지 못하는 것 같습니다.
어떻게 하면 될까요?
GCC 버젼은 3.4.2이고,
binutils 버젼은 2.15.91
w32api 버젼은 3.1입니다.
Forums:
댓글 달기