I am trying to create static libraries for Graphviz to include them in an iOS application, but I cannot get it to work. Here is what I have done so far using graphviz 2.28.0], Xcode 4.1, OSX 10.7, and I am aiming for an iOS simulator.
I found instructions for setting up Glen Low and with some informed guesses updated them to:
./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"
This works, but then "make" works for a while, and the errors are:
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 file ld: warning: symbol dyld_stub_binder not found, normally in libSystem.dylib Undefined symbols for architecture i386: "_exit", referenced from: start in crt1.10.6.o "_main", referenced from: start in crt1.10.6.o ld: symbol(s) not found for architecture i386 collect2: ld returned 1 exit status make[3]: *** [mkdefs] Error 1 make[2]: *** [all-recursive] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2
I donβt quite understand all the specifications of the architecture, so any help to get this to work is welcome.
ios objective-c ios4 graphviz
beno1604 Aug 28 2018-11-11T00: 00Z
source share