为iPhoneOS构建静态库Graphviz。什么剧本?

时间:2012-06-12 16:27:51

标签: ios graphviz

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

使用脚本:

#!/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。

非常感谢。

1 个答案:

答案 0 :(得分:0)

目前还没有支持在iOS中运行Graphviz