[Insight-users] Re: WrapITK: more windows build errors

Zachary Pincus zpincus at stanford.edu
Wed Feb 15 10:20:28 EST 2006


> My Linux build was successful, with ITK-2-4-1 ITK, ITK-2-4 CableSwig
> and CMake 2.2.3 on Ubuntu 5.04 x86 (g++ 3.3.5), darcs WrapITK (no
> modifications).

Great! I'm glad something is working.

>   The install does fail however:
>
> Running cmake script file cmake_install.cmake
> -- Installing /usr/local/share/CMake/Modules/FindWrapITK.cmake
> CMake Error: Error in cmake code at
> /home/cpbotha/build/WrapITK-gcc/CustomInstall.cmake:2:
> FILE cannot copy file: /home/cpbotha/build/WrapITK-gcc/InstallOnly/ 
> FindWrapITK.c
> make to directory : /usr/local/share/CMake/Modules.
> make: *** [install] Error 255

Hmm, that's odd. That directory is probably owned by root, so did you  
'sudo make install'? Or perhaps the directory doesn't exist? It  
should, since we got the path from CMake itself, so it should be valid.

> If I set up LD_LIBRARY_PATH and PYTHONPATH to point directly to the
> correct places in the BUILD dir, the new-style wrappings seem to work!

I'm glad it works. Our plan was that setting PYTHONPATH and  
LD_LIBRARY_PATH shouldn't be needed. If you cd to WrapITK-bin/Python/  
and then run python from that directory (or just add that directory  
to the pythonpath), 'import itk' *should* take care of everything  
behind the scenes. Does this not work?

Once you get the install working, then a 'WrapITK.pth' file will be  
installed in your python site-packages folder, so 'import itk' should  
work from anywhere, with absolutely nothing added to the pythonpath.

Thanks for your helpful bug reports!

Zach


More information about the Insight-users mailing list