No subject


Thu May 27 11:52:52 EDT 2010


<br>
1) VM configuration.<br>
VM configurator on my laptop annoyingly sends complaints<br>
about &quot;requested memory exceeds the limit...&quot;<br>
so I changed parameters from Luis&#39; 2 GB down to 768 MB and<br>
I also increased Video Memory up to 64 MB.<br>
<br></blockquote><div><br><br>Good point, I hesitated a lot with how much <=
br>RAM to allocate for the appliance.=C2=A0 I guess<br>that starting with a=
 small RAM makes more<br>sense (and maybe adding a prominent notice<br>lett=
ing users know where they can increase<br>
the RAM in the Virtual Box setup).<br><br>Question: It is reasonable to exp=
ect that users<br>of the Virtual Appliance already know how to<br>configure=
 its parameters (RAM, video... etc) ?<br><br>=C2=A0</div><blockquote class=
=3D"gmail_quote" style=3D"margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid=
 rgb(204, 204, 204); padding-left: 1ex;">

2) Host-Guest integration.<br>
Since I am a quite lazy man, I prefer Host-Guest<br>
full/partial integration that makes my life easier.<br>
<br>
Because Luis has installed dkms anyway, it&#39;s very easy<br>
to make one step further and install &quot;Guest Additions&quot;.<br>
<br>
Make sure, however, you do not have any vbox* drivers<br>
already installed.<br>
<br>
itkuser at ITK-VirtualBox:~$ sudo rm /etc/init.d/vboxadd*<br>
itkuser at ITK-VirtualBox:~$ sudo rm /lib/modules/2.6.35-22-generic/updates/vb=
ox*<br>
<br>
And now you can mount &quot;Guest Additions&quot; iso and install them.<br>
<br>
itkuser at ITK-VirtualBox:~$ cd /media/VBOXADDITIONS_3.2.10_66523/<br>
itkuser at ITK-VirtualBox:/media/VBOXADDITIONS_3.2.10_66523$ sudo sh VBoxLinux=
Additions-x86.run<br>
<br></blockquote><div><br><br>Nice<br><br>=C2=A0<br></div><blockquote class=
=3D"gmail_quote" style=3D"margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid=
 rgb(204, 204, 204); padding-left: 1ex;">
<br>
4) &quot;Security First&quot;.<br>
It immediately boots into Ubuntu session which I do not like at all.<br>
Thus, I disabled &quot;Autologin&quot;.<br>
<br></blockquote><div><br><br>I thought on leaving auto login as a matter o=
f convenience,<br>but I see your point here.<br><br>=C2=A0</div><blockquote=
 class=3D"gmail_quote" style=3D"margin: 0pt 0pt 0pt 0.8ex; border-left: 1px=
 solid rgb(204, 204, 204); padding-left: 1ex;">

5) ITK Manual and README.<br>
It&#39;s nice to see the ITK handy info which sits right in front of you.<b=
r>
<br>
itkuser at ITK-VirtualBox:~$ more README.txt<br>
<br>
<br>
6) Clean the system.<br>
itkuser at ITK-VirtualBox:~$ sudo apt-get clean<br>
<br></blockquote><div><br><br>I&#39;m curious about this step.<br>Did it re=
duced the size of the appliance ?<br><br>I confess that I have never done &=
quot;sudo apt-get clean&quot;<br>so, it was interesting reading about it.<b=
r>
<br>=C2=A0<br></div><blockquote class=3D"gmail_quote" style=3D"margin: 0pt =
0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex=
;">
7) Ready for the very first test?<br>
<br>
itkuser at ITK-VirtualBox:~$ mkdir ITK_test &amp;&amp; cd ITK_test<br>
itkuser at ITK-VirtualBox:~/ITK_test$ mkdir BUILD &amp;&amp; mkdir Src<br>
itkuser at ITK-VirtualBox:~/ITK_test$ cd Src &amp;&amp; touch CMakeLists.txt<b=
r>
itkuser at ITK-VirtualBox:~/ITK_test/Src$ locate ImageReadRegionOfInterestWrit=
e<br>
<br>
/home/itkuser/src/ITK/Examples/IO/ImageReadRegionOfInterestWrite.cxx<br>
<br>
itkuser at ITK-VirtualBox:~/ITK_test/Src$ cp /home/itkuser/src/ITK/Examples/IO=
/ImageReadRegionOfInterestWrite.cxx ./<br>
<br>
itkuser at ITK-VirtualBox:~/ITK_test/Src$ ls<br>
CMakeLists.txt =C2=A0ImageReadRegionOfInterestWrite.cxx<br>
<br>
Almost ready! Lets create a simple CMakeLists.txt file.<br>
<br>
######################<br>
#<br>
# Example on the use of ImageReadRegionOfInterestWrite<br>
#<br>
<br>
cmake_minimum_required(VERSION 2.8)<br>
<br>
PROJECT(Region)<br>
<br>
# Find ITK.<br>
FIND_PACKAGE(ITK REQUIRED)<br>
INCLUDE(${ITK_USE_FILE})<br>
<br>
ADD_EXECUTABLE(<br>
ImageReadRegionOfInterestWrite<br>
ImageReadRegionOfInterestWrite.cxx )<br>
<br>
TARGET_LINK_LIBRARIES(<br>
ImageReadRegionOfInterestWrite<br>
ITKIO<br>
ITKBasicFilters<br>
)<br>
#########################<br>
<br></blockquote><div><br><br>Excellent,<br>this is a nice first test.<br><=
br><br>=C2=A0</div><blockquote class=3D"gmail_quote" style=3D"margin: 0pt 0=
pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;=
">
Nice! Lets try compiling...<br>
<br>
8) First example compilation.<br>
<br>
itkuser at ITK-VirtualBox:~/ITK_test/Src$ cd ~/ITK_test/BUILD<br>
itkuser at ITK-VirtualBox:~/ITK_test/BUILD$ ccmake ../Src/<br>
<br>
Ooops!!!<br>
<br>
****************<br>
CMake Warning at /usr/lib/InsightToolkit/UseITK.cmake:98 (FIND_PACKAGE):<br=
>
 =C2=A0Could not find module FindGDCM.cmake or a configuration file for pac=
kage<br>
 =C2=A0GDCM.<br>
<br></blockquote><div><br>mm,<br>I&#39;m surprised about this one.<br>I hav=
en&#39;t seen this error before,<br><br>The appliance had the Gaussian exam=
ple in<br><br>/home/itkuser/src/Example/<br><br>and it was build in <br>
<br>/home/itkuser/bin/Example<br><br>Note that this one is built against th=
e<br>ITKv4 (alpha) that is compiled in <br><br>/home/itkuser/bin/ITK/Releas=
e<br><br>Did you build your example against <br>the ITK 3.18 that is instal=
led ?<br>
<br><br>=C2=A0---------------------------------------</div><blockquote clas=
s=3D"gmail_quote" style=3D"margin: 0pt 0pt 0pt 0.8ex; border-left: 1px soli=
d rgb(204, 204, 204); padding-left: 1ex;">
 =C2=A0Adjust CMAKE_MODULE_PATH to find FindGDCM.cmake or set GDCM_DIR to t=
he<br>
 =C2=A0directory containing a CMake configuration file for GDCM. =C2=A0The =
file will<br>
 =C2=A0have one of the following names:<br>
<br>
 =C2=A0 =C2=A0GDCMConfig.cmake<br>
 =C2=A0 =C2=A0gdcm-config.cmake<br>
<br>
Call Stack (most recent call first):<br>
 =C2=A0CMakeLists.txt:11 (INCLUDE)<br>
<br>
Errors occurred during the last pass =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0CMake Version 2.8.2<br>
Press [e] to exit help<br>
*************<br>
<br></blockquote><div><br><br>=C2=A0</div><blockquote class=3D"gmail_quote"=
 style=3D"margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 2=
04); padding-left: 1ex;">
<br>
9) Which version has been installed?<br>
Is that from Ubuntu repository or compiled by Luis?<br>
<br>
Lets clean the system and make sure that the version<br>
compiled by Luis gets installed.<br>
<br>
itkuser at ITK-VirtualBox:~$ apt-cache search insighttoolkit<br>
itkuser at ITK-VirtualBox:~$ sudo apt-get purge insighttoolkit*<br>
itkuser at ITK-VirtualBox:~$ cd ~/bin/ITK/Release/<br>
itkuser at ITK-VirtualBox:~/bin/ITK/Release$ sudo make install<br>
<br></blockquote><div><br>mm, <br>I intentionally didn&#39;t installed this=
 one,<br>so we could have both...<br><br>We have now prepared a modificatio=
n,<br>to make possible to have two versions<br>of ITK installed without con=
flict.=C2=A0 We <br>
will have to update the virtual appliance<br>to reflect this.<br><br>=C2=A0=
</div><blockquote class=3D"gmail_quote" style=3D"margin: 0pt 0pt 0pt 0.8ex;=
 border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
10) Now lets try compiling again.<br>
<br>
itkuser at ITK-VirtualBox:~$ cd ~/ITK_test/BUILD<br>
itkuser at ITK-VirtualBox:~/ITK_test/BUILD$ ccmake ../Src/<br>
itkuser at ITK-VirtualBox:~/ITK_test/BUILD$ make<br>
Scanning dependencies of target ImageReadRegionOfInterestWrite<br>
[100%] Building CXX object CMakeFiles/ImageReadRegionOfInterestWrite.dir/Im=
ageReadRegionOfInterestWrite.cxx.o<br>
Linking CXX executable ImageReadRegionOfInterestWrite<br>
[100%] Built target ImageReadRegionOfInterestWrite<br>
<br>
Full success!!!<br>
<br></blockquote><div><br>I guess that answers the question,...<br>(I&#39;m=
 still unclear of why the build against<br>the pre-installed ITK 3.18 faile=
d. It should<br>have worked.=C2=A0 I&#39;ll have to try again in the<br>ori=
ginal appliance).<br>
<br>=C2=A0</div><blockquote class=3D"gmail_quote" style=3D"margin: 0pt 0pt =
0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Kudos Luis Ibanez,<br>
the creator of a Virtual Appliance with a pre-installed ITK!<br>
<br>
The system is fully operational and very easy to use.<br>
<br>
Thanks for this Virtual Appliance,<br>
<br>
Alex<br>
<br></blockquote><div><br><br>Thanks a lot to you for suggesting the idea,<=
br>and for giving it a try.<br><br>It looks like we can improve a couple of=
 <br>things on the installation side of ITK.<br><br><br>=C2=A0=C2=A0=C2=A0 =
Regards,<br>
<br><br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Luis<br><br>=
<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 <br></div></div>

--001636a45186c222620493658e02--


More information about the Insight-users mailing list