<div><br></div><div>Yes, this is a MacPorts problem that I'm aware of, just haven't had time to fix it yet. Also, if it gets fixed in a revision of the Port, then all the ports currently installed will get an option to upgrade. It's not really an upgrade, just a minor bug fix and it only seems to apply to some systems, most systems (10.5, 10.6) will build/destroot/install OK.</div>
<div><br></div><div>For more about the MacPorts port for ITK, see</div><div><a href="http://www.cmake.org/Wiki/ITK_MacPorts_Package_Maintainers">http://www.cmake.org/Wiki/ITK_MacPorts_Package_Maintainers</a></div><div><br>
</div><div><div>When the current MacPort file was developed, it was based on cmake-2.6. Although an effort was made to create the port in a way that is a little independent of the cmake version, it seems to be failing on some systems. There is an assumption that cmake has been installed using MacPorts.</div>
<div><br></div></div><div>As a quick fix, try to first locate the Portfile, using</div><div><br></div><div>$ port file InsightToolkit</div><div><br></div><div>Then edit that file (may need sudo access)</div><div><br></div>
<div>$ sudo vim `port file InsightToolkit`</div><div><br></div><div>At line 135 we have:</div><div>copy ${findITK} ${destroot}${findITKbranch}</div><div><br></div><div>I believe this is a piece of tcl code to do a file copy. The destroot phase may be crashing because the command is not creating a new file in ${destroot}${findITKbranch}. It may be possible to force this with a -f option to the copy, like:</div>
<div><br></div><div><div>copy -force ${findITK} ${destroot}${findITKbranch}</div><div><br></div><div>See this tcl help page for details:</div><div><a href="http://www.tcl.tk/man/tcl8.0/TclCmd/file.htm">http://www.tcl.tk/man/tcl8.0/TclCmd/file.htm</a></div>
<div><br></div><div>If that doesn't solve the destroot problem, we can also try to first create the directory using xinstall (lines 176-177 have examples of this). However, this first requires a bit of code to extract the right cmake directory path. </div>
<div><br></div><div>When testing changes to the Portfile, it is VERY USEFUL to use port options that will not discard the previous build state, like -k and -o (the latter is most important).</div><div><br></div><div>I hope this helps, a little.</div>
<div><br></div><div>Take care,</div><div>Darren</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div><div><br></div><div><br></div><div><br></div><div><br></div>
<div><br></div><div><br></div><br><br><div class="gmail_quote">On Mon, Feb 15, 2010 at 10:49 AM, McCaughey, Michael J <span dir="ltr"><<a href="mailto:michael.j.mccaughey@vanderbilt.edu">michael.j.mccaughey@vanderbilt.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">No, the darwinports 3.16 error is this:<br>
<br>
Error: Target org.macports.destroot returned: error copying "/opt/local/share/cmake-2.8/Modules/FindITK.cmake" to "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_InsightToolkit/work/destroot/opt/local/share/cmake-2.8/Modules/FindITK-3.16.cmake": no such file or directory<br>
<br>
There's no cmake-2.8 directory under /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_InsightToolkit/work/destroot/opt/local/share.<br>
This has apparently been seen before (<a href="http://www.mail-archive.com/macports-users@lists.macosforge.org/msg18052.html" target="_blank">http://www.mail-archive.com/macports-users@lists.macosforge.org/msg18052.html</a>) but I haven't found a resolution. It's no doubt a macports issue, not a problem with ITK.<br>
<div class="im"><br>
Mike<br>
________________________________________<br>
From: Bill Lorensen [<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>]<br>
</div>Sent: Monday, February 15, 2010 12:37 PM<br>
To: McCaughey, Michael J<br>
Cc: Insight-Users<br>
<div><div></div><div class="h5">Subject: Re: [Insight-users] Build problem on Mac OS 10.6?<br>
<br>
You say you see the same error from 3.16?<br>
<br>
On Mon, Feb 15, 2010 at 12:25 PM, McCaughey, Michael J<br>
<<a href="mailto:michael.j.mccaughey@vanderbilt.edu">michael.j.mccaughey@vanderbilt.edu</a>> wrote:<br>
> No, no attachment to 2.0, it's just what was in fink. I tried it when I had trouble with a 3.16 build (the darwinports 3.16 build has an error too).<br>
> I'll have to try this from source.<br>
><br>
> Thanks,<br>
> Mike<br>
> ________________________________________<br>
> From: Bill Lorensen [<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>]<br>
> Sent: Monday, February 15, 2010 10:32 AM<br>
> To: McCaughey, Michael J<br>
> Cc: <a href="mailto:insight-users@itk.org">insight-users@itk.org</a><br>
> Subject: Re: [Insight-users] Build problem on Mac OS 10.6?<br>
><br>
> Michael,<br>
><br>
> itk 2.0 is a few years old. I suspect that we were not supporting gcc<br>
> 4.2 that long ago. Or maybe our Mac support was not that great back<br>
> then.<br>
><br>
> Do you have to use itk2.0?<br>
><br>
> Bill<br>
><br>
> On Mon, Feb 15, 2010 at 10:49 AM, McCaughey, Michael J<br>
> <<a href="mailto:michael.j.mccaughey@vanderbilt.edu">michael.j.mccaughey@vanderbilt.edu</a>> wrote:<br>
>> Hi!<br>
>> I'm trying to build version 2.0.1 on a Mac (OS/X 10.6.2/dual Quad-Core Xeon/16GB/gcc 4.2.1/cmake 2.6-2) and I'm getting the following error compiling Directory.cxx:<br>
>><br>
>> [ 5%] Building C object Utilities/kwsys/CMakeFiles/itksys.dir/Base64.o<br>
>> [ 5%] Building CXX object Utilities/kwsys/CMakeFiles/itksys.dir/Directory.o<br>
>> InsightToolkit-2.0.1/Utilities/kwsys/Directory.cxx:30: error: ISO C++ forbids declaration of ‘vector’ with no type<br>
>> InsightToolkit-2.0.1/Utilities/kwsys/Directory.cxx:30: error: invalid use of ‘::’<br>
>> InsightToolkit-2.0.1/Utilities/kwsys/Directory.cxx:30: error: expected ‘;’ before ‘<’ token<br>
>> InsightToolkit-2.0.1/Utilities/kwsys/Directory.cxx:33: error: ‘string’ in namespace ‘::’ does not name a type<br>
>> InsightToolkit-2.0.1/Utilities/kwsys/Directory.cxx: In member function ‘long unsigned int itksys::Directory::GetNumberOfFiles()’:<br>
>> InsightToolkit-2.0.1/Utilities/kwsys/Directory.cxx:51: error: ‘class itksys::DirectoryInternals’ has no member named ‘Files’<br>
>> Installs/InsightToolkit-2.0.1/Utilities/kwsys/Directory.cxx: In member function ‘const char* itksys::Directory::GetFile(long unsigned int)’:<br>
>> Installs/InsightToolkit-2.0.1/Utilities/kwsys/Directory.cxx:57: error: ‘class itksys::DirectoryInternals’ has no member named ‘Files’<br>
>> InsightToolkit-2.0.1/Utilities/kwsys/Directory.cxx:61: error: ‘class itksys::DirectoryInternals’ has no member named ‘Files’<br>
>> InsightToolkit-2.0.1/Utilities/kwsys/Directory.cxx: In member function ‘bool itksys::Directory::Load(const char*)’:<br>
>> InsightToolkit-2.0.1/Utilities/kwsys/Directory.cxx:145: error: ‘class itksys::DirectoryInternals’ has no member named ‘Files’<br>
>> InsightToolkit-2.0.1/Utilities/kwsys/Directory.cxx:147: error: ‘class itksys::DirectoryInternals’ has no member named ‘Path’<br>
>> make[2]: *** [Utilities/kwsys/CMakeFiles/itksys.dir/Directory.o] Error 1<br>
>> make[1]: *** [Utilities/kwsys/CMakeFiles/itksys.dir/all] Error 2<br>
>> make: *** [all] Error 2<br>
>><br>
>> Google has not been my friend so far, has anyone seen this error? Is it gcc's problem?<br>
>><br>
>> Thanks for suggestions.<br>
>><br>
>> Mike<br>
>> _____________________________________<br>
>> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
>><br>
>> Visit other Kitware open-source projects at<br>
>> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
>><br>
>> Kitware offers ITK Training Courses, for more information visit:<br>
>> <a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
>><br>
>> Please keep messages on-topic and check the ITK FAQ at:<br>
>> <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
>><br>
>> Follow this link to subscribe/unsubscribe:<br>
>> <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
>><br>
><br>
_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
</div></div></blockquote></div><br>