[Ves] Compiling VES on iOS

Casey Goodlett casey.goodlett at kitware.com
Thu May 22 17:30:40 EDT 2014


You can use the same compiler for both simulator and device builds with the
arch, sysroot, and ios-version-min flags set from the toolchain file.  In
other words the compiler is the same for both builds but the build options
are different.

The key flags are
-arch
-isysroot
-mios-simulator-version-min=5.0
or
-mios-iphoneos-version-min=5.0


Note the version min is key for the simulator build otherwise you may link
against host (OS X) libraries.


On Thu, May 22, 2014 at 5:24 PM, Alessandro Dal Grande <adgror at gmail.com>wrote:

> Yeah, I get the same:
>
> $ c++ -v
> Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
> Target: x86_64-apple-darwin13.1.0
> Thread model: posix
>
> This seems to be the compiler used for armv7/armv7s architectures though,
> so it should be working if I run the builds on my iDevice?
>
> Thanks
>
> --
> Alessandro Dal Grande
>
> On Thursday, 22 May 2014 at 14:21, Casey Goodlett wrote:
>
>
> On Thu, May 22, 2014 at 5:17 PM, Alessandro Dal Grande <adgror at gmail.com>wrote:
>
> Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr
> --with-gxx-include-dir=/usr/include/c++/4.2.1
>
>
> I believe that --with-gxx-include-dir line means you get libstdc++
>
> Compare with
> $ c++ -v
> Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
> Target: x86_64-apple-darwin13.2.0
> Thread model: posix
>
> --
> Casey B. Goodlett, Ph.D.
> Technical Leader
> Kitware, Inc. - North Carolina Office
> http://www.kitware.com
> (919) 969-6990 x310
>
>
>


-- 
Casey B. Goodlett, Ph.D.
Technical Leader
Kitware, Inc. - North Carolina Office
http://www.kitware.com
(919) 969-6990 x310
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/ves/attachments/20140522/f59275a1/attachment-0003.html>


More information about the Ves mailing list