Yacine Alami
2017-11-21 18:56:13 UTC
Hi guys,
I'm currently working on an iOS app that would require the integration of
capnp.
I'm used to use CMake to cross compile c++ libraries for iOS using an iOS
toolchain.
However, for Capnp I'm stuck on some errors and not even able to generate
the Xcode project to compile it using the command line.
I'm trying to cross compile capnp as a static lib that I can link and call
into my iOS app using an Obj-c++ wrapper to be able to call it from SWIFT.
I use this toolchain (https://github.com/cristeab/ios-cmake) and CMake 9.3,
I'm on high Sierra 10.13.1 and the lastest Xcode 9.1.
I'm targeting iOS 10.3 not 11 yet.
Anyone ever managed to compile it on iOS ? Any help would be greatly
appreciated!
To give more insight of my problems those are the errors that I get :
CMake Error at c++/src/kj/CMakeLists.txt:63 (target_compile_features):
target_compile_features no known features for CXX compiler
"Clang"
version 9.0.0.9000038.
CMake Error at c++/src/capnp/CMakeLists.txt:182 (install):
install TARGETS given no BUNDLE DESTINATION for MACOSX_BUNDLE executable
target "capnp_tool".
I did include the right c++11 flags for iOS (-stdlib=libc++) and add some
Apple specific Cmake instruction.
I use AppleClang 9.0.0.9000038 to compile it.
Thanks a lot for your time guys!
Yacine
I'm currently working on an iOS app that would require the integration of
capnp.
I'm used to use CMake to cross compile c++ libraries for iOS using an iOS
toolchain.
However, for Capnp I'm stuck on some errors and not even able to generate
the Xcode project to compile it using the command line.
I'm trying to cross compile capnp as a static lib that I can link and call
into my iOS app using an Obj-c++ wrapper to be able to call it from SWIFT.
I use this toolchain (https://github.com/cristeab/ios-cmake) and CMake 9.3,
I'm on high Sierra 10.13.1 and the lastest Xcode 9.1.
I'm targeting iOS 10.3 not 11 yet.
Anyone ever managed to compile it on iOS ? Any help would be greatly
appreciated!
To give more insight of my problems those are the errors that I get :
CMake Error at c++/src/kj/CMakeLists.txt:63 (target_compile_features):
target_compile_features no known features for CXX compiler
"Clang"
version 9.0.0.9000038.
CMake Error at c++/src/capnp/CMakeLists.txt:182 (install):
install TARGETS given no BUNDLE DESTINATION for MACOSX_BUNDLE executable
target "capnp_tool".
I did include the right c++11 flags for iOS (-stdlib=libc++) and add some
Apple specific Cmake instruction.
I use AppleClang 9.0.0.9000038 to compile it.
Thanks a lot for your time guys!
Yacine
--
You received this message because you are subscribed to the Google Groups "Cap'n Proto" group.
To unsubscribe from this group and stop receiving emails from it, send an email to capnproto+***@googlegroups.com.
Visit this group at https://groups.google.com/group/capnproto.
You received this message because you are subscribed to the Google Groups "Cap'n Proto" group.
To unsubscribe from this group and stop receiving emails from it, send an email to capnproto+***@googlegroups.com.
Visit this group at https://groups.google.com/group/capnproto.