这次失败让我头疼了3天。所以,我在寻求你的帮助。
我构建了必备的libs:libffi.a&代理的libintl。
配置步骤运行完成。我将此问题用作我的向导a link。
这些是我得到的错误:
/bin/sh ../libtool --tag=CC --mode=link /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -Wall -Wstrict-prototypes -Werror=declaration-after-statement -Werror=missing-prototypes -Werror=implicit-function-declaration -Werror=pointer-arith -Werror=init-self -Werror=format-security -Werror=format=2 -Werror=missing-include-dirs -I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/usr/lib -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk -miphoneos-version-min=7.0 -g -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/usr/lib -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk -Wl,-iphoneos_version_min,7.0 -o gobject-query gobject-query.o ./libgobject-2.0.la ../glib/libglib-2.0.la -lintl
libtool:link:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -Wall -Wstrict-prototypes -Werror = declaration-after-statement -Werror = missing-prototypes - Werror = implicit-function-declaration -Werror = pointer-arith -Werror = init-self -Werror = format-security -Werror = format = 2 -Werror = missing-include-dirs -I / Applications / Xcode.app / Contents /开发人员/平台/ iPhoneOS.platform / Developer / SDKs / iPhoneOS7.1.sdk / usr / lib -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1 .sdk -miphoneos-version-min = 7.0 -g -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk -Wl,-iphoneos_version_min -Wl ,7.0 -o gobject-query gobject-query.o -L / Applications / Xcode.app / Contents / Developer / Platforms / iPhoneOS.platform / Developer / SDKs / iPhoneOS7.1.sdk / usr / lib ./.libs/libgobject -2.0.a -L / Users / maat / Projects / PrebuiltCustomFrameworks / libffi / U. sers / maat / Projects / QEMU / libsForiOS / glib-2.40.0 / src / glib / .libs / libglib-2.0.a -l / Users / maat / Projects / PrebuiltCustomFrameworks / libffi / libffi.a ../glib/。 libs / libglib-2.0.a -liconv -lintl ld:找不到-l / Users / homey / Projects / PrebuiltCustomFrameworks / libffi / libffi.a的库 clang:错误:链接器命令失败,退出代码为1(使用-v查看调用)
我知道这个回声并不真实,因为路径上的ls给了我这个:
Minis-Mac:src homey $ ls -l /Users/homey/Projects/PrebuiltCustomFrameworks/libffi/libffi.a -rw-r - r-- 1 homey 501 107596 5月15日08:03 /Users/homey/Projects/PrebuiltCustomFrameworks/libffi/libffi.a
有什么建议吗?