SDL帮助. Xcode.生成并运行错误 [英] SDL Help. Xcode. Build and Run Error

查看:63
本文介绍了SDL帮助. Xcode.生成并运行错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在学习本教程 http://www.noquarterarcade.com/xcode-sdl-development-setup

I have been going off of this tutorial http://www.noquarterarcade.com/xcode-sdl-development-setup

因此,我已经下载了SDL运行时库和SDL开发库,并将它们的内容放在指定的文件夹中.我确保已正确执行了这些步骤.

So, I have downloaded both the SDL Runtime Library and the SDL Development Library and put their content in the specified folders. I have made sure that have followed these steps correctly.

但是,当我单击生成并运行"时,出现错误和2警告.

However, when I click build and run I get an error and 2 warning.


Error:
1) Command/Developer/usr/bin/gcc-4.2 failed with exit code 1

Warnings:
1) Directory'/Users/RustyShackleford/Library/Frameworks' following -F not found

它说了两次警告

这是我的构建日志:


Build Try of project Try with configuration Debug

Ld build/Try.build/Debug/Try.build/Objects-normal/x86_64/Try normal x86_64
cd "/Users/nickcarver/Desktop/Lazy Foo Tutorials/Try"
setenv MACOSX_DEPLOYMENT_TARGET 10.6
/Developer/usr/bin/gcc-4.2 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk "-L/Users/nickcarver/Desktop/Lazy Foo Tutorials/Try/build/Debug" "-F/Users/nickcarver/Desktop/Lazy Foo Tutorials/Try/build/Debug" -F/Users/nickcarver/Library/Frameworks -F/Developer/SDKs/MacOSX10.6.sdk/Library/Frameworks -filelist "/Users/nickcarver/Desktop/Lazy Foo Tutorials/Try/build/Try.build/Debug/Try.build/Objects-normal/x86_64/Try.LinkFileList" -mmacosx-version-min=10.6 -framework SDL -framework Cocoa -o "/Users/nickcarver/Desktop/Lazy Foo Tutorials/Try/build/Try.build/Debug/Try.build/Objects-normal/x86_64/Try"

ld: warning: directory '/Users/nickcarver/Library/Frameworks' following -F not found
ld: framework not found SDL
collect2: ld returned 1 exit status
Command /Developer/usr/bin/gcc-4.2 failed with exit code 1

Ld build/Try.build/Debug/Try.build/Objects-normal/i386/Try normal i386
cd "/Users/nickcarver/Desktop/Lazy Foo Tutorials/Try"
setenv MACOSX_DEPLOYMENT_TARGET 10.4
/Developer/usr/bin/gcc-4.0 -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk "-L/Users/nickcarver/Desktop/Lazy Foo Tutorials/Try/build/Debug" "-F/Users/nickcarver/Desktop/Lazy Foo Tutorials/Try/build/Debug" -F/Users/nickcarver/Library/Frameworks -F/Developer/SDKs/MacOSX10.4u.sdk/Library/Frameworks -filelist "/Users/nickcarver/Desktop/Lazy Foo Tutorials/Try/build/Try.build/Debug/Try.build/Objects-normal/i386/Try.LinkFileList" -mmacosx-version-min=10.4 -framework SDL -framework Cocoa -o "/Users/nickcarver/Desktop/Lazy Foo Tutorials/Try/build/Try.build/Debug/Try.build/Objects-normal/i386/Try"

ld: warning: directory '/Users/nickcarver/Library/Frameworks' following -F not found

你在想什么?

推荐答案

好的,我在这里看到的是您具有不同的用户名.您的buidlog引用了用户nickcarver,而警告则引用了RustyShackleford.可能是您指向错误的库文件夹吗?如果不是,您正在运行的用户是否可以访问另一个用户的库(可疑)?

OK, what I see here is that you have a different User name. Your buidlog references the user nickcarver while your warning references RustyShackleford. Could it be that you are pointing to the wrong library folder? If not, does the user you are running under have access to the other user's library (doubtful)?

如果这不是导致错误的原因,则需要进一步研究.在xcode中,右键单击错误行,然后选择以抄本文本文件打开这些最新结果".这应该给您真正的错误日志.在其中搜索您的错误编号,然后发布错误信息.

If this isn't the cause of the error, you will need to dig further. In xcode, right click the error line and choose "Open These Latest Results as Transcript Text File". This should give you the true error log. Search in there for your error number and post the error information.

这篇关于SDL帮助. Xcode.生成并运行错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆