SDL Help. Xcode. Build and Run Error

穿精又带淫゛_ 提交于 2019-12-23 03:38:14

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/5918932/sdl-help-xcode-build-and-run-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!