[Ves] Compiling VES on iOS

Alessandro Dal Grande adgror at gmail.com
Thu May 22 17:44:39 EDT 2014


I think I can live without the simulator build, as I cannot test on it anyway, based on my app requirements ;)

Another strange thing that happens is I get warnings like this one:

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: for architecture: armv7 file: ./CMakeExternals/Install/vtk-ios-device/lib/libvtklibxml2-6.0.a(debugXML.c.o) has no symbols

Is it fine, am I missing something? 

-- 
Alessandro Dal Grande


On Thursday, 22 May 2014 at 14:30, Casey Goodlett wrote:

> 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 (mailto: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 (mailto: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 (tel:%28919%29%20969-6990%20x310) 
> > 
> 
> 
> 
> -- 
> Casey B. Goodlett, Ph.D.
> Technical Leader
> Kitware, Inc. - North Carolina Office
> http://www.kitware.com
> (919) 969-6990 x310 (tel:%28919%29%20969-6990%20x310) 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/ves/attachments/20140522/0cbe88d4/attachment-0003.html>


More information about the Ves mailing list