刚刚升级到Snow Leopard,安装了Xcode 3.2,然后安装了适用于SL的iPhone SDK 3.
在一个项目中,我现在在构建时遇到以下错误:
ld:未找到库-lcrt1.10.6.o
我在网上搜索过,但没有找到任何帮助.
我正在使用GNU工具链构建一个项目,一切正常,直到我链接它,链接器抱怨它丢失/无法找到crti.o.这不是我的目标文件之一,它似乎与libc有关但我无法理解为什么它需要这个crti.o,它不会使用库文件,例如libc.a?
我正在为手臂平台进行交叉编译.我在工具链中有该文件,但如何让链接器包含它?
crti.o在一个'库'搜索路径上,但是它应该.o在库路径上查找文件吗?
在搜索路径同样为gcc和ld?
我正在尝试为Graphviz构建静态库,将它们包含在iOS应用程序中,但我无法让它工作.这是我到目前为止所做的,使用graphviz 2.28.0],Xcode 4.1,OSX 10.7,我的目标是iOS模拟器.
我找到了Glen Low的配置说明,并通过一些明智的猜测将这些更新为:
./configure --build=i486-apple-darwin --host=arm-apple-darwin9 --disable-dependency-tracking --enable-shared=no --enable-static=yes --enable-ltdl-install=no --enable-ltdl=no --enable-swig=no --enable-tcl=no --with-codegens=no --with-fontconfig=no --with-freetype2=no --with-ipsepcola=yes --with-libgd=no --with-quartz=yes --with-visio=yes --with-x=no --with-cgraph=no CC="/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2" CPP="/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 -E" CXX="/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/g++-4.2" CXXCPP="/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/g++-4.2 -E" OBJC="/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2" LD="/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ld" CPPFLAGS="-arch armv6 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk -miphoneos-version-min=4.0" CXXCPPFLAGS="-arch armv6 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk -miphoneos-version-min=4.0"
Run Code Online (Sandbox Code Playgroud)
这有效,但随后"make"会运行一段时间并出现错误:
Making all in gvpr
CCLD mkdefs
ld: warning: ignoring file mkdefs.o, file was built for armv6 which is not the architecture being linked (i386)
ld: warning: ignoring file /usr/local/lib/libSystem.dylib, missing required architecture i386 in …Run Code Online (Sandbox Code Playgroud)