1

我很绝望:(我尝试了各种脚本,但都没有。我的系统是 xCode4.3.2 on Lion (10.7.4) 和 iOS-SDK v5.1

使用脚本:

#!/bin/sh
# For iPhoneOS, see http://clang.llvm.org/ for options
export DEV_iOS=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer
# was /Developer/Platforms/iPhoneOS.platform/Developer
export SDK_iOS=${DEV_iOS}/SDKs/iPhoneOS5.1.sdk
export COMPILER_iOS=${DEV_iOS}/usr/bin
export CC=${COMPILER_iOS}/clang
export CXX=${COMPILER_iOS}/clang++
export LDFLAGS="-arch armv7 -pipe -Os -gdwarf-2 -mthumb -isysroot ${SDK_iOS}"
export CFLAGS="${LDFLAGS}"
export OBJCFLAGS="${LDFLAGS}"
export CXXFLAGS="${LDFLAGS} -fvisibility-inlines-hidden"
export LD=${COMPILER_iOS}/ld
export CPP=${COMPILER_iOS}/clang
export AR=${COMPILER_iOS}/ar
export AS=${COMPILER_iOS}/as
export NM=${COMPILER_iOS}/nm
export CXXCPP="${COMPILER_iOS}/clang++"
export OBJC=${COMPILER_iOS}/clang
export RANLIB=${COMPILER_iOS}/ranlib

./configure \
    --build=arm-apple-darwin11 \
    --host=arm-apple-darwin11 \
    --disable-dependency-tracking \
    --enable-shared=no \
    --enable-static=yes \
    --enable-ltdl=no \
    --enable-swig=no \
    --enable-tcl=no \
    --srcdir=${GVROOT} \
    --with-codegens=no \
    --with-cgraph=no \
    --with-graph=yes \
    --with-expat=no \
    --with-fontconfig=no \
    --with-freetype2=no \
    --with-ipsepcola=yes \
    --with-libgd=no \
    --with-quartz=yes \
    --with-visio=yes \
    --with-x=no

我得到错误:

checking build system type... arm-apple-darwin11
checking host system type... arm-apple-darwin11
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... config/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for arm-apple-darwin11-gcc... /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/clang
checking whether the C compiler works... no
configure: error: in `/Users/xaviersantamaribech/Developer/graphviz-2.28.0':
configure: error: C compiler cannot create executables
See `config.log' for more details.

谁能告诉我我可以在我的系统中使用什么脚本(XCode4.3.2 - iPhoneSDK5.1 - Lion 10.7.4)来获取IOS的静态库Graphviz。

非常感谢。

4

1 回答 1

0

尚不支持在 iOS 中运行 Graphviz

于 2012-11-14T13:18:32.613 回答