<div dir="ltr"><div>Yes you are using a separate compiler here for the simulator and device builds.<br><br>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.<br>

<br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, May 22, 2014 at 5:10 PM, Alessandro Dal Grande <span dir="ltr"><<a href="mailto:adgror@gmail.com" target="_blank">adgror@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                <div style="font-family:Helvetica;font-size:13px">Yes, I actually have installed gcc 4.9 with Homebrew. I actually just saw this, when using VERBOSE=1 with make:<div><br></div><div><div>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</div>

<div>/usr/local/Cellar/cmake/<a href="http://2.8.12.2/bin/cmake" target="_blank">2.8.12.2/bin/cmake</a> -E cmake_progress_report /Users/ale/Desktop/projects/nifty/KiwiWebinar/Build/CMakeExternals/Build/vtk-ios-device/CMakeFile</div>

<div><br></div><div>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</div>

<div><br></div><div>Does that mean it’s using two different compilers or is it just because of the architectures?</div></div><div><br></div><div>Thanks</div></div><span class="HOEnZb"><font color="#888888">
                <div><div><br></div>-- <br>Alessandro Dal Grande<div><br></div></div></font></span><div class="HOEnZb"><div class="h5">
                 
                <p style="color:#a0a0a8">On Thursday, 22 May 2014 at 14:03, Casey Goodlett wrote:</p>
                <blockquote type="cite" style="border-left-style:solid;border-width:1px;margin-left:0px;padding-left:10px">
                    <span><div><div><div dir="ltr"><div>yes my experience was that if cmake finds g++ as your compiler it implicitly uses libstdc++ and if it finds c++ you get libc++<br><br>Being explicit as you have done is probably better.<br>

<br></div>I have not tested with -std=c++11 so let us know if you have any trouble.<br>

</div><div><br><br><div>On Thu, May 22, 2014 at 5:00 PM, Alessandro Dal Grande <span dir="ltr"><<a href="mailto:adgror@gmail.com" target="_blank">adgror@gmail.com</a>></span> wrote:<br><blockquote type="cite"><div>


                <div style="font-family:Helvetica;font-size:13px">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.<div>



<br></div><div>Now I am recompiling the frameworks after I added this to the top CMakeLists.txt:</div><div><br></div><div>set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -stdlib=libc++”)</div><div><br></div><div>


Thanks</div>
</div><span><font color="#888888">
                <div><div><br></div>-- <br>Alessandro Dal Grande<div><br></div></div></font></span><div><div>
                  
                <p style="color:#a0a0a8">On Thursday, 22 May 2014 at 13:55, Casey Goodlett wrote:</p><blockquote type="cite"><div>
                    <span><div><div><div dir="ltr"><div><div>Alessandro,<br><br></div>I use libc++ in xcode 5.1<br><br></div>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.<br>





</div><div><br><br><div>On Thu, May 22, 2014 at 4:51 PM, Alessandro Dal Grande <span dir="ltr"><<a href="mailto:adgror@gmail.com" target="_blank">adgror@gmail.com</a>></span> wrote:<br><blockquote type="cite"><div>




                <div style="font-family:Helvetica;font-size:13px">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++?<div>





<br></div><div>Thanks</div></div><span><font color="#888888">
                <div><div><br></div>-- <br>Alessandro Dal Grande<div><br></div></div></font></span><div><div>
                   
                <p style="color:#a0a0a8">On Thursday, 22 May 2014 at 13:49, Casey Goodlett wrote:</p><blockquote type="cite"><div>
                    <span><div><div><div dir="ltr"><div><div>Alessandro,<br><br></div>The most recent master should compile on XCode 5.1.  I have built with success on xcode 5.1.<br></div><div><br>What is your error message?<br>





</div></div><div>

<br><br><div>On Thu, May 22, 2014 at 4:03 PM, Alessandro Dal Grande <span dir="ltr"><<a href="mailto:adgror@gmail.com" target="_blank">adgror@gmail.com</a>></span> wrote:<br><blockquote type="cite"><div>


                <div>
                    <div>Hi,</div><div><br></div><div>do you have any recent version of VES universal framework (Kiwi/VTK) that would work with XCode 5.1?</div><div>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?</div>







<div><br></div>
                </div>
                <div><div>Thanks</div><span><font color="#888888">-- <br>Alessandro Dal Grande<div><br></div></font></span></div>
            <br>_______________________________________________<br>
Ves mailing list<br>
<a href="mailto:Ves@public.kitware.com" target="_blank">Ves@public.kitware.com</a><br>
<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/ves" target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/ves</a><br>
<br></div></blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr">Casey B. Goodlett, Ph.D.<br>Technical Leader<br>Kitware, Inc. - North Carolina Office<br><a href="http://www.kitware.com" target="_blank">http://www.kitware.com</a><br>







<a href="tel:%28919%29%20969-6990%20x310" value="+19199696990" target="_blank">(919) 969-6990 x310</a></div>
</div>
</div></div></span>
                   
                   
                   
                   
                </div></blockquote><div>
                    <br>
                </div>
            </div></div></div></blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr">Casey B. Goodlett, Ph.D.<br>Technical Leader<br>Kitware, Inc. - North Carolina Office<br><a href="http://www.kitware.com" target="_blank">http://www.kitware.com</a><br>





<a href="tel:%28919%29%20969-6990%20x310" value="+19199696990" target="_blank">(919) 969-6990 x310</a></div>
</div>
</div></div></span>
                  
                  
                  
                  
                </div></blockquote><div>
                    <br>
                </div>
            </div></div></div></blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr">Casey B. Goodlett, Ph.D.<br>Technical Leader<br>Kitware, Inc. - North Carolina Office<br><a href="http://www.kitware.com" target="_blank">http://www.kitware.com</a><br>



<a href="tel:%28919%29%20969-6990%20x310" value="+19199696990" target="_blank">(919) 969-6990 x310</a></div>
</div>
</div></div></span>
                 
                 
                 
                 
                </blockquote>
                 
                <div>
                    <br>
                </div>
            </div></div></blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr">Casey B. Goodlett, Ph.D.<br>Technical Leader<br>Kitware, Inc. - North Carolina Office<br><a href="http://www.kitware.com" target="_blank">http://www.kitware.com</a><br>

(919) 969-6990 x310</div>
</div>