SDL 帮助。 Xcode。构建并运行错误
我已经放弃这个教程了 http://www.noquarterarcade.com/xcode-sdl-development-setup
因此,我已经下载了 SDL 运行时库和 SDL 开发库,并将它们的内容放在指定的文件夹中。我已确保正确遵循了这些步骤。
但是,当我单击构建并运行时,我收到一个错误和 2 个警告。
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
你的想法是什么?
I have been going off of this tutorial
http://www.noquarterarcade.com/xcode-sdl-development-setup
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.
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
it says this warning twice
Here is my buildlog:
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
what are your thought?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好的,我在这里看到的是您有一个不同的用户名。您的 buidlog 引用了用户 nickcarver,而您的警告引用了 RustyShackleford。难道您指向了错误的库文件夹?如果没有,您正在运行的用户是否有权访问其他用户的库(值得怀疑)?
如果这不是错误的原因,您将需要进一步挖掘。在 xcode 中,右键单击错误行并选择“以转录文本文件形式打开这些最新结果”。这应该会给你真正的错误日志。在那里搜索您的错误号并发布错误信息。
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)?
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.