mapnik-ios-framework
mapnik-ios-framework copied to clipboard
Not able to compile with XCode
HI, I'm trying to compile mapnik library with Xcode 4.6.2 and I'm having an error. Please notice that what I'm doing is to compile the mapnik library with Xcode and not with the cross-compilation as described in this project and I'm trying to compile with XCode only Mapnik whereas (for the moment) I'm keeping all the ausiliary library as in this project.
Below you can find the details of the problem, what I see at a first glance is that I'm using "clang" whereas the cross-compile make uses the "clang++" but I have not found where in XCode to force the use of "clang++" (not also sure this is the key issue).
The error I'm having is the following:
In file included from /Users/utente/Work/NWP/MapnikIOS/mapnik/src/expression_grammar.cpp:23:
In file included from mapnik/include/mapnik/expression_grammar.hpp:27:
In file included from mapnik/include/mapnik/value.hpp:29:
In file included from mapnik/include/mapnik/util/conversions.hpp:40:
In file included from include/boost/spirit/include/karma.hpp:16:
In file included from include/boost/spirit/home/karma.hpp:13:
In file included from include/boost/spirit/home/karma/char.hpp:13:
In file included from include/boost/spirit/home/karma/char/char.hpp:14:
In file included from include/boost/spirit/home/support/common_terminals.hpp:15:
In file included from include/boost/spirit/home/support/terminal.hpp:16:
In file included from include/boost/spirit/include/phoenix_core.hpp:14:
In file included from include/boost/spirit/home/phoenix/core.hpp:11:
In file included from include/boost/spirit/home/phoenix/core/limits.hpp:73:
In file included from include/boost/fusion/include/vector.hpp:10:
In file included from include/boost/fusion/container/vector.hpp:12:
In file included from include/boost/fusion/container/vector/vector10.hpp:13:
In file included from include/boost/fusion/iterator/next.hpp:10:
In file included from include/boost/fusion/support/tag_of.hpp:13:
In file included from include/boost/fusion/support/detail/is_mpl_sequence.hpp:12:
In file included from include/boost/mpl/is_sequence.hpp:19:
In file included from include/boost/mpl/begin_end.hpp:18:
In file included from include/boost/mpl/aux_/begin_end_impl.hpp:20:
include/boost/mpl/eval_if.hpp:38:26: error: no type named 'type' in 'boost::result_ofboost::phoenix::actor<boost::spirit::attribute<0 > (boost::spirit::unused_type, boost::spirit::context<boost::fusion::cons<boost::variant<mapnik::value_adl_barrier::value, mapnik::attribute, mapnik::geometry_type_attribute, boost::recursive_wrapper<mapnik::unary_nodemapnik::tags::negate >, boost::recursive_wrappermapnik::binary_node<mapnik::tags::plus >, boost::recursive_wrappermapnik::binary_node<mapnik::tags::minus >, boost::recursive_wrappermapnik::binary_node<mapnik::tags::mult >, boost::recursive_wrappermapnik::binary_node<mapnik::tags::div >, boost::recursive_wrappermapnik::binary_node<mapnik::tags::mod >, boost::recursive_wrappermapnik::binary_node<mapnik::tags::less >, boost::recursive_wrappermapnik::binary_node<mapnik::tags::less_equal >, boost::recursive_wrappermapnik::binary_node<mapnik::tags::greater >, boost::recursive_wrappermapnik::binary_node<mapnik::tags::greater_equal >, boost::recursive_wrappermapnik::binary_node<mapnik::tags::equal_to >, boost::recursive_wrappermapnik::binary_node<mapnik::tags::not_equal_to >, boost::recursive_wrappermapnik::unary_node<mapnik::tags::logical_not >, boost::recursive_wrappermapnik::binary_node<mapnik::tags::logical_and >, boost::recursive_wrappermapnik::binary_node<mapnik::tags::logical_or >, boost::recursive_wrappermapnik::regex_match_node, boost::recursive_wrappermapnik::regex_replace_node > &, boost::fusion::nil>, boost::fusion::vector0
and the current compilation call is:
CompileC /Users/utente/Library/Developer/Xcode/DerivedData/Mapnik-fdgqzzxwtjmrxgfjzarefiqwqfav/Build/Intermediates/Mapnik.build/Release-iphoneos/Mapnik.build/Objects-normal/armv7/expression_grammar.o mapnik/src/expression_grammar.cpp normal armv7 c++ com.apple.compilers.llvm.clang.1_0.compiler cd /Users/utente/Work/NWP/MapnikIOS setenv LANG en_US.US-ASCII setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c++ -arch armv7 -fmessage-length=0 -std=c++11 -stdlib=libc++ -Wno-trigraphs -fpascal-strings -Os -mdynamic-no-pic -Wno-missing-field-initializers -Wno-missing-prototypes -Wreturn-type -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wformat -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-enum-conversion -Wno-shorten-64-to-32 -Wno-newline-eof -Wno-c++11-extensions -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk -fno-strict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -g -fvisibility=hidden -fvisibility-inlines-hidden -Wno-sign-conversion -miphoneos-version-min=5.0 -iquote /Users/utente/Library/Developer/Xcode/DerivedData/Mapnik-fdgqzzxwtjmrxgfjzarefiqwqfav/Build/Intermediates/Mapnik.build/Release-iphoneos/Mapnik.build/Mapnik-generated-files.hmap -I/Users/utente/Library/Developer/Xcode/DerivedData/Mapnik-fdgqzzxwtjmrxgfjzarefiqwqfav/Build/Intermediates/Mapnik.build/Release-iphoneos/Mapnik.build/Mapnik-own-target-headers.hmap -I/Users/utente/Library/Developer/Xcode/DerivedData/Mapnik-fdgqzzxwtjmrxgfjzarefiqwqfav/Build/Intermediates/Mapnik.build/Release-iphoneos/Mapnik.build/Mapnik-all-target-headers.hmap -iquote /Users/utente/Library/Developer/Xcode/DerivedData/Mapnik-fdgqzzxwtjmrxgfjzarefiqwqfav/Build/Intermediates/Mapnik.build/Release-iphoneos/Mapnik.build/Mapnik-project-headers.hmap -I/Users/utente/Library/Developer/Xcode/DerivedData/Mapnik-fdgqzzxwtjmrxgfjzarefiqwqfav/Build/Products/Release-iphoneos/include -Iinclude/cairomm-1.0 -Ilib/cairomm-1.0/include -Iinclude/cairo -Iinclude/sigc++-2.0 -Ilib/sigc++-2.0/include -Iinclude/pixman-1 -Imapnik/deps/agg/include -Imapnik -Imapnik/include -Iinclude -Iinclude/freetype2 -I/Users/utente/Library/Developer/Xcode/DerivedData/Mapnik-fdgqzzxwtjmrxgfjzarefiqwqfav/Build/Intermediates/Mapnik.build/Release-iphoneos/Mapnik.build/DerivedSources/armv7 -I/Users/utente/Library/Developer/Xcode/DerivedData/Mapnik-fdgqzzxwtjmrxgfjzarefiqwqfav/Build/Intermediates/Mapnik.build/Release-iphoneos/Mapnik.build/DerivedSources -F/Users/utente/Library/Developer/Xcode/DerivedData/Mapnik-fdgqzzxwtjmrxgfjzarefiqwqfav/Build/Products/Release-iphoneos -ftemplate-depth-300 -finline-functions -fPIC -include /Users/utente/Library/Developer/Xcode/DerivedData/Mapnik-fdgqzzxwtjmrxgfjzarefiqwqfav/Build/Intermediates/PrecompiledHeaders/Mapnik_Prefix-cnggaobdrroludfxvqtfswlfrqyl/Mapnik_Prefix.pch -MMD -MT dependencies -MF /Users/utente/Library/Developer/Xcode/DerivedData/Mapnik-fdgqzzxwtjmrxgfjzarefiqwqfav/Build/Intermediates/Mapnik.build/Release-iphoneos/Mapnik.build/Objects-normal/armv7/expression_grammar.d --serialize-diagnostics /Users/utente/Library/Developer/Xcode/DerivedData/Mapnik-fdgqzzxwtjmrxgfjzarefiqwqfav/Build/Intermediates/Mapnik.build/Release-iphoneos/Mapnik.build/Objects-normal/armv7/expression_grammar.dia -c /Users/utente/Work/NWP/MapnikIOS/mapnik/src/expression_grammar.cpp -o /Users/utente/Library/Developer/Xcode/DerivedData/Mapnik-fdgqzzxwtjmrxgfjzarefiqwqfav/Build/Intermediates/Mapnik.build/Release-iphoneos/Mapnik.build/Objects-normal/armv7/expression_grammar.o
Thanks
Can't build the project in Xcode either, I get the following:
/Users/calin/Documents/Xcode/Libraries/mapnik-ios-framework/Mapnik-Example/Prefix.pch:20:9: fatal error: 'mapnik/graphics.hpp' file not found #import <mapnik/graphics.hpp> ^ 1 error generated.
The mapnik library is not in the project. Also some other frameworks appear to be missing.

I don't know how to help with the original post but the second post can be solved by running the Makefile. All missing libraries are generated by the Makefile. Be aware that it is a very long and fragile build process. Cross-compilation experience is adviced here.
Thanks for the reply. It certainly helped, however after like 10 minutes it stopped at this screen:

I'll try to debug this myself. Thanks!
I think you need to install autoconf.
I add the libraries to the git.