Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/iphone/41.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/c/65.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Iphone gcc-4.2失败,退出代码为1错误_Iphone_C_Gcc_Build - Fatal编程技术网

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

Iphone gcc-4.2失败,退出代码为1错误,iphone,c,gcc,build,Iphone,C,Gcc,Build,我下载了一个项目,我想尝试一下,但当我试图编译它时,总是会出现以下错误: 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/Platfor

我下载了一个项目,我想尝试一下,但当我试图编译它时,总是会出现以下错误:

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
关于我可以采取什么样的步骤来达到错误,有什么建议吗


Thank's

错误表明问题:

ld:找不到-lTuneInRadio的库

这意味着您的build/make正在试图找到一个库(称为libtuneradio)来编译您试图构建的程序,但在路径中找不到它(默认路径+gcc调用中的“-L”选项所描述的路径)

由于不知道您正在编译/构建的内容,因此无法准确说出发生了什么,除非您错过了此库


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

我在为iOS模拟器编译该项目时也遇到同样的问题,问题是,您下载的源代码不包含libTuneRadio.a库(用于TuneInRadio iphonesimulator),因此请首先创建该文件夹,然后将libTuneRadio.a从TuneInRadio iphoneos移动到最近创建的文件夹。这应该可以了


我的应用程序编译成功,但它崩溃了,因为它找不到任何CassetAudioPlayer类,所以我猜还是有问题。

。。。您是否尝试读取错误消息?上面写着“目录”找不到。通常,这是因为所讨论的目录实际上并不存在。如果找不到您的文件,它将无法编译您的代码;如果找不到您声称文件所在的文件夹,它将无法找到您的文件。检查路径。你知道你正在运行的命令实际上是做什么的吗?试着清除所有目标。应该会有帮助的。--“谢谢。。。事实上,在项目内部,文件夹名是Release iphoneos,而不是Release iphonesimulator。修复它,不,我有另一个错误,但没有连接到gcc。谢谢,就这些