<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hello,</div><div><br></div>What version of Xcode and CMake are you running? Have you tried building with shared libraries? Currently on the ITK cdash dashboard I have Xcode 3.0 and Cmake ctest2.4-patch 8, both with shared libraries. What happens if you try to build ITK from the command line with "<span class="Apple-style-span" style="font-family: -webkit-monospace; font-size: 14px; white-space: pre; ">xcodebuild -target ALL_BUILD -configuration Debug"</span><div><br></div><div>-Brad</div><div><br><div><div>On Jul 2, 2008, at 7:11 AM, Brice Thurin wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi Luis,<br><br>1) I am running GCC 4.0.<br><br>2) I have just succeeded in building it with the Makefile CMake generator, but still fail to do the same with the xcode generator. Nevertheless i managed to use the cmake xode generator to build the helloworld example.<br><br>3)<br>Building target “libitkv3p_netlib.a” of project “ITK” with configuration “Debug”<br><span class="Apple-tab-span" style="white-space:pre">        </span> cd /Developer/ITK2<br> /Developer/usr/bin/gcc-4.0 -x c++ -arch i386 -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -O0 -DCMAKE_INTDIR="Debug" -fmessage-length=0 -gdwarf-2 -Wmost -Wno-four-char-constants -Wno-unknown-pragmas -O0 -F/Developer/ITK2/bin/Debug -I/Developer/ITK2/bin/Debug/include -I/Developer/ITK2 -I/Users/peter/Downloads/InsightToolkit-3.6.0/Code/Algorithms -I/Users/peter/Downloads/InsightToolkit-3.6.0/Code/BasicFilters -I/Users/peter/Downloads/InsightToolkit-3.6.0/Code/Common -I/Users/peter/Downloads/InsightToolkit-3.6.0/Code/Numerics -I/Users/peter/Downloads/InsightToolkit-3.6.0/Code/IO -I/Users/peter/Downloads/InsightToolkit-3.6.0/Code/Numerics/FEM -I/Users/peter/Downloads/InsightToolkit-3.6.0/Code/Numerics/Statistics -I/Users/peter/Downloads/InsightToolkit-3.6.0/Code/Numerics/NeuralNetworks -I/Users/peter/Downloads/InsightToolkit-3.6.0/Code/SpatialObject -I/Users/peter/Downloads/InsightToolkit-3.6.0/Utilities/MetaIO -I/Users/peter/Downloads/InsightToolkit-3.6.0/Utilities/NrrdIO -I/Developer/ITK2/Utilities/NrrdIO -I/Users/peter/Downloads/InsightToolkit-3.6.0/Utilities/DICOMParser -I/Developer/ITK2/Utilities/DICOMParser -I/Developer/ITK2/Utilities/expat -I/Users/peter/Downloads/InsightToolkit-3.6.0/Utilities/expat -I/Users/peter/Downloads/InsightToolkit-3.6.0/Utilities/nifti/niftilib -I/Users/peter/Downloads/InsightToolkit-3.6.0/Utilities/nifti/znzlib -I/Users/peter/Downloads/InsightToolkit-3.6.0/Utilities/itkExtHdrs -I/Developer/ITK2/Utilities -I/Users/peter/Downloads/InsightToolkit-3.6.0/Utilities -I/Users/peter/Downloads/InsightToolkit-3.6.0/Utilities/vxl/v3p/netlib -I/Users/peter/Downloads/InsightToolkit-3.6.0/Utilities/vxl/vcl -I/Users/peter/Downloads/InsightToolkit-3.6.0/Utilities/vxl/core -I/Developer/ITK2/Utilities/vxl/v3p/netlib -I/Developer/ITK2/Utilities/vxl/vcl -I/Developer/ITK2/Utilities/vxl/core -I/Developer/ITK2/Utilities/gdcm -I/Users/peter/Downloads/InsightToolkit-3.6.0/Utilities/gdcm/src -I/Developer/ITK2/bin/ITK.build/Debug/libitkvnl.a.build/DerivedSources -ftemplate-depth-50 -no-cpp-precomp -Wno-long-double -w -c /Users/peter/Downloads/InsightToolkit-3.6.0/Utilities/vxl/core/vnl/vnl_matlab_write.cxx -o /Developer/ITK2/bin/ITK.build/Debug/libitkvnl.a.build/Objects-normal/i386/vnl_matlab_write.o<br>/Users/peter/Downloads/InsightToolkit-3.6.0/Utilities/vxl/core/vnl/vnl_matlab_header.h:16: error: variable or field 'type' declared void<br>/Users/peter/Downloads/InsightToolkit-3.6.0/Utilities/vxl/core/vnl/vnl_matlab_header.h:17: error: variable or field 'rows' declared void<br>/Users/peter/Downloads/InsightToolkit-3.6.0/Utilities/vxl/core/vnl/vnl_matlab_header.h:18: error: variable or field 'cols' declared void<br>/Users/peter/Downloads/InsightToolkit-3.6.0/Utilities/vxl/core/vnl/vnl_matlab_header.h:19: error: variable or field 'imag' declared void<br>/Users/peter/Downloads/InsightToolkit-3.6.0/Utilities/vxl/core/vnl/vnl_matlab_header.h:20: error: variable or field 'namlen' declared void<br><br> cd /Developer/ITK2<br> /Developer/usr/bin/gcc-4.0 -x c++ -arch i386 -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -O0 -DCMAKE_INTDIR="Debug" -fmessage-length=0 -gdwarf-2 -Wmost -Wno-four-char-constants -Wno-unknown-pragmas -O0 -F/Developer/ITK2/bin/Debug -I/Developer/ITK2/bin/Debug/include -I/Developer/ITK2 -I/Users/peter/Downloads/InsightToolkit-3.6.0/Code/Algorithms -I/Users/peter/Downloads/InsightToolkit-3.6.0/Code/BasicFilters -I/Users/peter/Downloads/InsightToolkit-3.6.0/Code/Common -I/Users/peter/Downloads/InsightToolkit-3.6.0/Code/Numerics -I/Users/peter/Downloads/InsightToolkit-3.6.0/Code/IO -I/Users/peter/Downloads/InsightToolkit-3.6.0/Code/Numerics/FEM -I/Users/peter/Downloads/InsightToolkit-3.6.0/Code/Numerics/Statistics -I/Users/peter/Downloads/InsightToolkit-3.6.0/Code/Numerics/NeuralNetworks -I/Users/peter/Downloads/InsightToolkit-3.6.0/Code/SpatialObject -I/Users/peter/Downloads/InsightToolkit-3.6.0/Utilities/MetaIO -I/Users/peter/Downloads/InsightToolkit-3.6.0/Utilities/NrrdIO -I/Developer/ITK2/Utilities/NrrdIO -I/Users/peter/Downloads/InsightToolkit-3.6.0/Utilities/DICOMParser -I/Developer/ITK2/Utilities/DICOMParser -I/Developer/ITK2/Utilities/expat -I/Users/peter/Downloads/InsightToolkit-3.6.0/Utilities/expat -I/Users/peter/Downloads/InsightToolkit-3.6.0/Utilities/nifti/niftilib -I/Users/peter/Downloads/InsightToolkit-3.6.0/Utilities/nifti/znzlib -I/Users/peter/Downloads/InsightToolkit-3.6.0/Utilities/itkExtHdrs -I/Developer/ITK2/Utilities -I/Users/peter/Downloads/InsightToolkit-3.6.0/Utilities -I/Users/peter/Downloads/InsightToolkit-3.6.0/Utilities/vxl/v3p/netlib -I/Users/peter/Downloads/InsightToolkit-3.6.0/Utilities/vxl/vcl -I/Users/peter/Downloads/InsightToolkit-3.6.0/Utilities/vxl/core -I/Developer/ITK2/Utilities/vxl/v3p/netlib -I/Developer/ITK2/Utilities/vxl/vcl -I/Developer/ITK2/Utilities/vxl/core -I/Developer/ITK2/Utilities/gdcm -I/Users/peter/Downloads/InsightToolkit-3.6.0/Utilities/gdcm/src -I/Developer/ITK2/bin/ITK.build/Debug/libitkvnl.a.build/DerivedSources -ftemplate-depth-50 -no-cpp-precomp -Wno-long-double -w -c /Users/peter/Downloads/InsightToolkit-3.6.0/Utilities/vxl/core/vnl/vnl_matlab_read.cxx -o /Developer/ITK2/bin/ITK.build/Debug/libitkvnl.a.build/Objects-normal/i386/vnl_matlab_read.o<br>/Users/peter/Downloads/InsightToolkit-3.6.0/Utilities/vxl/core/vnl/vnl_matlab_header.h:16: error: variable or field 'type' declared void<br>/Users/peter/Downloads/InsightToolkit-3.6.0/Utilities/vxl/core/vnl/vnl_matlab_header.h:17: error: variable or field 'rows' declared void<br>/Users/peter/Downloads/InsightToolkit-3.6.0/Utilities/vxl/core/vnl/vnl_matlab_header.h:18: error: variable or field 'cols' declared void<br>/Users/peter/Downloads/InsightToolkit-3.6.0/Utilities/vxl/core/vnl/vnl_matlab_header.h:19: error: variable or field 'imag' declared void<br>/Users/peter/Downloads/InsightToolkit-3.6.0/Utilities/vxl/core/vnl/vnl_matlab_header.h:20: error: variable or field 'namlen' declared void<br><br>....<br><br>Building target “libITKMetaIO.a” of project “ITK” with configuration “Debug”<br><br>Checking Dependencies<br>warning: no rule to process file '/Developer/ITK2/Utilities/itktiff/tif_fax3sm.c.rule' of type file for architecture i386<br><br>....<br><br>Building target “itkTestDriver” of project “ITK” with configuration “Debug”<br><br> cd /Developer/ITK2<br> /Developer/usr/bin/g++-4.0 -o /Developer/ITK2/bin/Debug/itkTestDriver -L/Developer/ITK2/bin/Debug -LDebug -L. -F/Developer/ITK2/bin/Debug -filelist /Developer/ITK2/bin/ITK.build/Debug/itkTestDriver.build/Objects-normal/i386/itkTestDriver.LinkFileList -arch i386 -Wl,-search_paths_first -headerpad_max_install_names /Developer/ITK2/bin/Debug/libITKIO.a /Developer/ITK2/bin/Debug/libITKSpatialObject.a /Developer/ITK2/bin/Debug/libITKCommon.a /Developer/ITK2/bin/Debug/libITKNrrdIO.a /Developer/ITK2/bin/Debug/libitkgdcm.a /Developer/ITK2/bin/Debug/libitktiff.a /Developer/ITK2/bin/Debug/libitkjpeg8.a /Developer/ITK2/bin/Debug/libitkjpeg12.a /Developer/ITK2/bin/Debug/libitkjpeg16.a /Developer/ITK2/bin/Debug/libitkpng.a /Developer/ITK2/bin/Debug/libITKMetaIO.a /Developer/ITK2/bin/Debug/libITKniftiio.a /Developer/ITK2/bin/Debug/libITKznz.a /Developer/ITK2/bin/Debug/libitkzlib.a /Developer/ITK2/bin/Debug/libITKDICOMParser.a /Developer/ITK2/bin/Debug/libITKEXPAT.a /Developer/ITK2/bin/Debug/libitkvnl_inst.a /Developer/ITK2/bin/Debug/libitksys.a -lpthread -lm /Developer/ITK2/bin/Debug/libitkopenjpeg.a /Developer/ITK2/bin/Debug/libitkvnl_algo.a /Developer/ITK2/bin/Debug/libitkvnl.a /Developer/ITK2/bin/Debug/libitkvcl.a /Developer/ITK2/bin/Debug/libitkv3p_netlib.a -lm<br>i686-apple-darwin9-g++-4.0.1: /Developer/ITK2/bin/Debug/libitkvnl.a: No such file or directory<br><br><br><br>Thank you very much for your help<br><br>Regards<br>Brice<br><br>On 1 Jul 2008, at 23:43, Luis Ibanez wrote:<br><br><blockquote type="cite">Hi Brice,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">1) What version of GCC are you running in this machine ?<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">2) Have you tried building ITK outside of xcode ?<br></blockquote><blockquote type="cite"> (e.g. by using the Makefile CMake generator)<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">3) Please post to the list the exact error messages<br></blockquote><blockquote type="cite"> that you get.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Please let us know,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> Thanks<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> Luis<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">-------------------<br></blockquote><blockquote type="cite">Brice Thurin wrote:<br></blockquote><blockquote type="cite"><blockquote type="cite">Good morning,<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">I tried to install ITK3.6 on MacBook Pro running MacOS 10.5 with xcode 3.0.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">I followed the instruction of the guide for configuring CMake2.6 and installing ITK everything run smoothly.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">However when it tried to build the xcode project generated for ITK (ITK.xcodeproj) , i end up with 10 errors:<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">all of them coming from<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">vnl_matlab_read and vnl_matlab_write : (for example)<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">variable or field "rows" declared void<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">all the errors are of this kind.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Any help would be very appreciated<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Regards<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Brice<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">------------------------------------------------------------------------<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">_______________________________________________<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Insight-users mailing list<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><a href="mailto:Insight-users@itk.org">Insight-users@itk.org</a><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><a href="http://www.itk.org/mailman/listinfo/insight-users">http://www.itk.org/mailman/listinfo/insight-users</a><br></blockquote></blockquote><br>_______________________________________________<br>Insight-users mailing list<br><a href="mailto:Insight-users@itk.org">Insight-users@itk.org</a><br>http://www.itk.org/mailman/listinfo/insight-users<br></blockquote></div><br><div apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="3" style="font: 12.0px Helvetica">========================================================</font></p><p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="3" style="font: 12.0px Helvetica">Bradley Lowekamp<span class="Apple-converted-space"> </span><span class="Apple-converted-space"> </span></font></p><p style="margin: 0.0px 0.0px 0.0px 0.0px"><font class="Apple-style-span" face="Arial"><span class="Apple-style-span" style="font-family: Arial; "><span class="Apple-style-span" style="font-family: Arial; ">Lockheed Martin </span></span></font><font face="Helvetica" size="3" style="font: 12.0px Helvetica">Contractor for</font></p><p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="3" style="font: 12.0px Helvetica">Office of High Performance Computing and Communications</font></p><p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="3" style="font: 12.0px Helvetica">National Library of Medicine<span class="Apple-converted-space"> </span></font></p><p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="3" style="font: 12.0px Helvetica"><a href="mailto:blowekamp@mail.nih.gov">blowekamp@mail.nih.gov</a></font></p><br class="Apple-interchange-newline"></span></div></span> </div><br></div></body></html>