[Ves] Compiling VES on iOS

Casey Goodlett casey.goodlett at kitware.com
Thu May 22 17:14:33 EDT 2014


Yes you are using a separate compiler here for the simulator and device
builds.

Try commenting out both uses of find_program at the start of the simulator
toolchain.  In newer xcode I think we should ignore this emebbeded g++
executable, buts its needed on old versions of xcode.





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

> Yes, I actually have installed gcc 4.9 with Homebrew. I actually just saw
> this, when using VERBOSE=1 with make:
>
> cd
> /Users/ale/Desktop/projects/nifty/KiwiWebinar/Build/CMakeExternals/Build/vtk-ios-simulator/Common/Misc
> &&
> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/g++
>   -DVTK_IN_VTK -fvisibility=hidden -fvisibility-inlines-hidden
> -mios-simulator-version-min=5.0 -fvisibility=hidden
> -fvisibility-inlines-hidden -mios-simulator-version-min=5.0  -g -arch i386
> -isysroot
> /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk
> -I/Users/ale/Desktop/projects/nifty/KiwiWebinar/Build/CMakeExternals/Build/vtk-ios-simulator/Common/Math
> -I/Users/ale/Desktop/projects/nifty/KiwiWebinar/Build/CMakeExternals/Source/vtk/Common/Math
> -I/Users/ale/Desktop/projects/nifty/KiwiWebinar/Build/CMakeExternals/Build/vtk-ios-simulator/Common/Core
> -I/Users/ale/Desktop/projects/nifty/KiwiWebinar/Build/CMakeExternals/Source/vtk/Common/Core
> -I/Users/ale/Desktop/projects/nifty/KiwiWebinar/Build/CMakeExternals/Build/vtk-ios-simulator/Utilities/KWSys
> -I/Users/ale/Desktop/projects/nifty/KiwiWebinar/Build/CMakeExternals/Source/vtk/Utilities/KWSys
> -I/Users/ale/Desktop/projects/nifty/KiwiWebinar/Build/CMakeExternals/Build/vtk-ios-simulator/Common/Misc
> -I/Users/ale/Desktop/projects/nifty/KiwiWebinar/Build/CMakeExternals/Source/vtk/Common/Misc
>    -o CMakeFiles/vtkCommonMisc.dir/vtkHeap.cxx.o -c
> /Users/ale/Desktop/projects/nifty/KiwiWebinar/Build/CMakeExternals/Source/vtk/Common/Misc/vtkHeap.cxx
> /usr/local/Cellar/cmake/2.8.12.2/bin/cmake -E cmake_progress_report
> /Users/ale/Desktop/projects/nifty/KiwiWebinar/Build/CMakeExternals/Build/vtk-ios-device/CMakeFile
>
> cd
> /Users/ale/Desktop/projects/nifty/KiwiWebinar/Build/CMakeExternals/Build/vtk-ios-device/Common/Core
> && /usr/bin/c++   -DVTK_IN_VTK -miphoneos-version-min=5.0
> -fvisibility=hidden -fvisibility-inlines-hidden -miphoneos-version-min=5.0
> -fvisibility=hidden -fvisibility-inlines-hidden  -g -arch armv7 -arch
> armv7s -isysroot
> /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk
> -I/Users/ale/Desktop/projects/nifty/KiwiWebinar/Build/CMakeExternals/Source/vtk/ThirdParty/utf8/source
> -I/Users/ale/Desktop/projects/nifty/KiwiWebinar/Build/CMakeExternals/Build/vtk-ios-device/Common/DataModel
> -I/Users/ale/Desktop/projects/nifty/KiwiWebinar/Build/CMakeExternals/Build/vtk-ios-device/Utilities/KWSys
> -I/Users/ale/Desktop/projects/nifty/KiwiWebinar/Build/CMakeExternals/Source/vtk/Utilities/KWSys
> -I/Users/ale/Desktop/projects/nifty/KiwiWebinar/Build/CMakeExternals/Build/vtk-ios-device/Common/Core
> -I/Users/ale/Desktop/projects/nifty/KiwiWebinar/Build/CMakeExternals/Source/vtk/Common/Core
>    -o CMakeFiles/vtkCommonCore.dir/vtkReferenceCount.cxx.o -c
> /Users/ale/Desktop/projects/nifty/KiwiWebinar/Build/CMakeExternals/Source/vtk/Common/Core/vtkReferenceCount.cxx
>
> Does that mean it’s using two different compilers or is it just because of
> the architectures?
>
> Thanks
>
> --
> Alessandro Dal Grande
>
> On Thursday, 22 May 2014 at 14:03, Casey Goodlett wrote:
>
> yes my experience was that if cmake finds g++ as your compiler it
> implicitly uses libstdc++ and if it finds c++ you get libc++
>
> Being explicit as you have done is probably better.
>
> I have not tested with -std=c++11 so let us know if you have any trouble.
>
>
> On Thu, May 22, 2014 at 5:00 PM, Alessandro Dal Grande <adgror at gmail.com>wrote:
>
> I believe the toolchain is currently using Clang + libstdc++, could that
> be possible? I managed to compile the frameworks yesterday, but then when
> linking to my iOS project (that uses libc++) it was complaining about ios_*
> stuff missing.
>
> Now I am recompiling the frameworks after I added this to the top
> CMakeLists.txt:
>
> set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -stdlib=libc++”)
>
> Thanks
>
> --
> Alessandro Dal Grande
>
> On Thursday, 22 May 2014 at 13:55, Casey Goodlett wrote:
>
> Alessandro,
>
> I use libc++ in xcode 5.1
>
> I usually make sure that the c++ compiler is configured as c++ not g++.
> This will ensure that libc++ is used.  I've forgotten if this is explicit
> in the current toolchain file.
>
>
> On Thu, May 22, 2014 at 4:51 PM, Alessandro Dal Grande <adgror at gmail.com>wrote:
>
> Hi Casey, I’m trying again right now, so I’ll let you know in a few
> minutes. A related question: did you compile and link against libstdc++ or
> libc++?
>
> Thanks
>
> --
> Alessandro Dal Grande
>
> On Thursday, 22 May 2014 at 13:49, Casey Goodlett wrote:
>
> Alessandro,
>
> The most recent master should compile on XCode 5.1.  I have built with
> success on xcode 5.1.
>
> What is your error message?
>
>
> On Thu, May 22, 2014 at 4:03 PM, Alessandro Dal Grande <adgror at gmail.com>wrote:
>
>  Hi,
>
> do you have any recent version of VES universal framework (Kiwi/VTK) that
> would work with XCode 5.1?
> I’m trying to compile it since 3 days ago, but I get errors both on master
> and next branch. Is it an abandoned project or still supported?
>
>  Thanks
> --
> Alessandro Dal Grande
>
>
> _______________________________________________
> Ves mailing list
> Ves at public.kitware.com
> http://public.kitware.com/cgi-bin/mailman/listinfo/ves
>
>
>
>
> --
> 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
>
>
>
>
>
> --
> 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/a33b9c1a/attachment-0002.html>


More information about the Ves mailing list