2010-12-04 102 views
1

我下载了一个项目,我想尝试一下,但是当我试图编译它,我总是得到这个错误:GCC-4.2失败,退出代码1个错误

Build TuneIn Radio of project TuneInRadio with configuration Release 

Ld "build/Release-iphonesimulator/TuneIn Radio.app/TuneIn Radio" normal i386 
cd /Users/marco/Downloads/projects 
setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" 
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.2.sdk -L/Users/marco/Downloads/projects/build/Release-iphonesimulator -L/Users/marco/Downloads/projects -L/Users/marco/Downloads/projects/TuneInRadio-iphonesimulator -L/Users/marco/Downloads/projects/MMS/build/Release-iphonesimulator -L/Users/marco/Downloads/projects/ffmpeg/build/Release-iphonesimulator -F/Users/marco/Downloads/projects/build/Release-iphonesimulator -F/Users/marco/Downloads/projects -filelist "/Users/marco/Downloads/projects/build/TuneInRadio.build/Release-iphonesimulator/TuneIn Radio.build/Objects-normal/i386/TuneIn Radio.LinkFileList" -lTuneInRadio -llibmms -lffmpegLib -ObjC -Xlinker -objc_abi_version -Xlinker 2 -framework Foundation -framework CoreGraphics -framework QuartzCore -framework CoreFoundation -framework AudioToolbox -framework MediaPlayer -framework CoreLocation -framework UIKit -lz.1 -framework SystemConfiguration -framework MapKit -o "/Users/marco/Downloads/projects/build/Release-iphonesimulator/TuneIn Radio.app/TuneIn Radio" 

ld: warning: directory '/Users/marco/Downloads/projects/TuneInRadio-iphonesimulator' following -L not found 
ld: warning: directory '/Users/marco/Downloads/projects/MMS/build/Release-iphonesimulator' following -L not found 
ld: library not found for -lTuneInRadio 
collect2: ld returned 1 exit status 
Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1 

上什么样的任何意见步骤我可以按照以达到错误?

感谢的

+2

...您是否尝试**阅读**错误信息?它在那里说,“目录​​”找不到。通常,这是因为有问题的目录实际上不存在。如果无法找到您的文件,它就无法编译您的代码,如果找不到您声称所在的文件夹,则无法找到您的文件。检查路径。你知道你正在运行的命令实际上在做什么吗? – 2010-12-04 11:04:35

回答

0

错误指示问题:

LD:库找不到-lTuneInRadio

,这意味着您的构建/ make是试图找到一个库(称为libTuneInRadio)编译你正在尝试构建的这个程序,但是它无法在路径中找到它(默认的+ gcc调用中的'-L'选项所描述的那些)。

不知道更多关于你正在编译/编译的内容,不能准确地说出发生了什么,除了你错过了这个库。

鉴于库的名称,它听起来应该是您正在尝试构建的项目的一部分(或者可能存在相关的TuneInRadio-lib项目),因此我建议您阅读自述文件或BUILDING或类似命名的文件可能与该项目一起来确定如何成功编译该程序。

0

我有同样的问题编译iOS模拟器的项目,问题是你下载的源代码不包含TuneInRadio-iphonesimulator的libTuneRadio.a库,所以首先创建该文件夹,然后移动libTuneRadio.a从TuneInRadio-iphoneos到最近创建的文件夹。这应该可以做到。

我的应用程序编译成功,但它崩溃,因为它无法找到任何CasseteAudioPlayer类,所以我想还是有问题。

相关问题