首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >gcc-4.2失败,退出代码为1错误

gcc-4.2失败,退出代码为1错误
EN

Stack Overflow用户
提问于 2010-12-04 19:00:15
回答 2查看 1.9K关注 0票数 1

我下载了一个项目,我想试一试,但当我试图编译它时,我总是得到这样的错误:

代码语言:javascript
复制
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

有什么建议我可以按照什么样的步骤来解决这个错误呢?

感谢‘s

EN

回答 2

Stack Overflow用户

发布于 2011-05-13 00:40:05

该错误指示问题:

ld:找不到-lTuneInRadio的库

这意味着您的构建/生成正在尝试找到一个库(名为libTuneInRadio)来编译您正在尝试构建的程序,但它在路径(默认路径+ gcc调用中的'-L‘选项所描述的路径)中找不到它。

如果不了解您正在编译/构建的内容,除了错过这个库之外,就不可能准确地说出正在发生的事情。

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

票数 0
EN

Stack Overflow用户

发布于 2013-05-17 02:27:32

我在编译iOS模拟器的项目时也遇到了同样的问题,问题是您下载的源代码中没有包含用于TuneInRadio-iphonesimulator的libTuneRadio.a库,所以首先创建该文件夹,然后将libTuneRadio.a从TuneInRadio-iphoneos移动到最近创建的文件夹中。这应该会成功的。

我的应用程序编译成功,但由于找不到任何CasseteAudioPlayer类而崩溃,所以我猜还是有问题。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/4353180

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档