本文介绍了在运行OS X 10.7 Lion的Mac上从源编译SDL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已从libsdl网站下载SDL源SDL-1.2.14.zip并进入make步骤。
当我 ./ configure 时,我没有问题。但是,当我 make 时,它在编译过程中看起来像是一个很长的路,并且输出:

I've downloaded the SDL source SDL-1.2.14.zip from the libsdl website and gotten to the make step.When I ./configure, I have no issues. However, when I make, it gets what seems like a long way through the compilation process and dies with this output:

/bin/sh ./libtool --mode=compile gcc -g -O2  -I./include -D_GNU_SOURCE=1 -DTARGET_API_MAC_CARBON -DTARGET_API_MAC_OSX -fvisibility=hidden  -I/usr/X11R6/include -DXTHREADS -D_THREAD_SAFE -force_cpusubtype_ALL -fpascal-strings -c ./src/video/SDL_RLEaccel.c  -o build/SDL_RLEaccel.lo
libtool: compile:  gcc -g -O2 -I./include -D_GNU_SOURCE=1 -DTARGET_API_MAC_CARBON -DTARGET_API_MAC_OSX -fvisibility=hidden -I/usr/X11R6/include -DXTHREADS -D_THREAD_SAFE -force_cpusubtype_ALL -fpascal-strings -c ./src/video/SDL_RLEaccel.c  -fno-common -DPIC -o build/.libs/SDL_RLEaccel.o
/var/folders/l_/_b6srsss7sggnnclplzx59280000gn/T//ccG8MUwb.s:1168:suffix or operands invalid for `movq'
/var/folders/l_/_b6srsss7sggnnclplzx59280000gn/T//ccG8MUwb.s:1829:suffix or operands invalid for `movq'
/var/folders/l_/_b6srsss7sggnnclplzx59280000gn/T//ccG8MUwb.s:2566:suffix or operands invalid for `movq'
/var/folders/l_/_b6srsss7sggnnclplzx59280000gn/T//ccG8MUwb.s:2836:suffix or operands invalid for `movd'
/var/folders/l_/_b6srsss7sggnnclplzx59280000gn/T//ccG8MUwb.s:2934:suffix or operands invalid for `movq'
/var/folders/l_/_b6srsss7sggnnclplzx59280000gn/T//ccG8MUwb.s:3884:suffix or operands invalid for `movq'
/var/folders/l_/_b6srsss7sggnnclplzx59280000gn/T//ccG8MUwb.s:4433:suffix or operands invalid for `movq'
/var/folders/l_/_b6srsss7sggnnclplzx59280000gn/T//ccG8MUwb.s:4992:suffix or operands invalid for `movq'
/var/folders/l_/_b6srsss7sggnnclplzx59280000gn/T//ccG8MUwb.s:5207:suffix or operands invalid for `movd'
/var/folders/l_/_b6srsss7sggnnclplzx59280000gn/T//ccG8MUwb.s:5307:suffix or operands invalid for `movq'
make: *** [build/SDL_RLEaccel.lo] Error 1

我尝试了一切我可以想到和做的,我认为这是一个相当大的搜索这个问题,但找不到任何看起来密切相关的东西。

I've tried everything I could think of and done what I think is a fair amount of searching on this subject, but can't find anything that looks closely related.

有没有人试过编译SDL for Lion并成功?

Has anyone tried compiling SDL for Lion and succeeded?

推荐答案

disable-assembly 。

Try ./configure --disable-assembly.

这篇关于在运行OS X 10.7 Lion的Mac上从源编译SDL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-26 11:54