https://public.kitware.com/Wiki/index.php?title=ITK/GDBPretty/Installation/Linux/DebianSqueeze&feed=atom&action=history
ITK/GDBPretty/Installation/Linux/DebianSqueeze - Revision history
2024-03-28T16:36:14Z
Revision history for this page on the wiki
MediaWiki 1.38.6
https://public.kitware.com/Wiki/index.php?title=ITK/GDBPretty/Installation/Linux/DebianSqueeze&diff=36763&oldid=prev
Arnaudgelas: /* itkCompareProject printer */
2011-01-25T18:30:17Z
<p><span dir="auto"><span class="autocomment">itkCompareProject printer</span></span></p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 18:30, 25 January 2011</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l152">Line 152:</td>
<td colspan="2" class="diff-lineno">Line 152:</td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> less readme.rst</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> less readme.rst</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>=== <del style="font-weight: bold; text-decoration: none;">itkCompareProject </del>printer ===</div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>=== <ins style="font-weight: bold; text-decoration: none;">QGoImageCompare </ins>printer ===</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> cd ~/gdb/gdb-pretty</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> cd ~/gdb/gdb-pretty</div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div> git clone https://github.com/<del style="font-weight: bold; text-decoration: none;">antonin07130</del>/<del style="font-weight: bold; text-decoration: none;">itkCompareProject</del>.git</div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div> git clone https://github.com/<ins style="font-weight: bold; text-decoration: none;">gofigure2</ins>/<ins style="font-weight: bold; text-decoration: none;">QGoImageCompare</ins>.git</div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div> mkdir <del style="font-weight: bold; text-decoration: none;">itkCompareProject</del>/build</div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div> mkdir <ins style="font-weight: bold; text-decoration: none;">QGoImageCompare</ins>/build</div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div> cd <del style="font-weight: bold; text-decoration: none;">itkCompareProject</del>/build</div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div> cd <ins style="font-weight: bold; text-decoration: none;">QGoImageCompare</ins>/build</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> cmake -DITK_DIR=~/InsightToolkit-3.20.0/build/ -DVTK_DIR=~/VTK/build/ -DBUILD_GDB_PRETTY=ON -DICPGUI_INSTALL_LOCATION=/home/user/gdb/install/share/gdb/python/ -DBUILD_EXAMPLES=ON -DBUILD_TESTING=ON ..</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> cmake -DITK_DIR=~/InsightToolkit-3.20.0/build/ -DVTK_DIR=~/VTK/build/ -DBUILD_GDB_PRETTY=ON -DICPGUI_INSTALL_LOCATION=/home/user/gdb/install/share/gdb/python/ -DBUILD_EXAMPLES=ON -DBUILD_TESTING=ON ..</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> make</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> make</div></td></tr>
</table>
Arnaudgelas
https://public.kitware.com/Wiki/index.php?title=ITK/GDBPretty/Installation/Linux/DebianSqueeze&diff=34726&oldid=prev
Thewtex: Created page with "= Debian Squeeze = == Install basic package dependencies == aptitude install build-essential git texinfo flex bison libncurses5-dev python-dev == Build custom GDB == === Bui..."
2010-11-20T20:09:34Z
<p>Created page with "= Debian Squeeze = == Install basic package dependencies == aptitude install build-essential git texinfo flex bison libncurses5-dev python-dev == Build custom GDB == === Bui..."</p>
<p><b>New page</b></p><div>= Debian Squeeze =<br />
<br />
== Install basic package dependencies ==<br />
<br />
aptitude install build-essential git texinfo flex bison libncurses5-dev python-dev<br />
<br />
== Build custom GDB ==<br />
<br />
=== Build it ===<br />
<br />
cd ~<br />
mkdir gdb<br />
cd gdb<br />
git clone git://gitorious.org/~thewtex/gdb-python/archer-thewtex-python.git source<br />
mkdir build install<br />
cd build<br />
../source/configure --prefix=$(cd ../install && pwd)<br />
make -j2 all<br />
make install<br />
<br />
=== Put it at the top of the system PATH ===<br />
<br />
su -<br />
cd /usr/local/bin<br />
ln -s /home/user/gdb/install/bin/gdb<br />
exit<br />
<br />
Replace ''user'' with your username.<br />
<br />
== Install custom pretty-printers ==<br />
<br />
=== Basic pretty-printers ===<br />
<br />
aptitude install python-matplotlib cmake ipython<br />
<br />
Place the following in ''~/.gdbinit''<br />
<pre><br />
#<br />
# C++ related beautifiers (optional)<br />
#<br />
set print pretty on<br />
set print object on<br />
set print static-members on<br />
set print vtbl on<br />
set print demangle on<br />
set demangle-style gnu-v3<br />
set print sevenbit-strings off<br />
set multiple-symbols ask<br />
# working with arrays<br />
set print array on<br />
set print elements 70<br />
<br />
#<br />
# gdb-pretty<br />
#<br />
python<br />
import sys<br />
sys.path.insert( 0, '/home/user/gdb/gdb-pretty' )<br />
sys.path.insert( 0, '/home/user/gdb/gdb-pretty/itk/source' )<br />
import gdb.pretty<br />
gdb.pretty.register( 'libstdcxx.v6.printers', None )<br />
end<br />
<br />
require command view<br />
require command alias<br />
</pre><br />
<br />
Replace ''user'' with your username.<br />
<br />
mkdir ~/gdb/gdb-pretty<br />
<br />
=== ''libstdcxx'' pretty-printers ===<br />
<br />
cd ~/gdb/gdb-pretty<br />
git clone http://git.gitorious.org/gdb-pretty/gdb-pretty-libstdcxx.git libstdcxx<br />
<br />
Try running the example<br />
<br />
cd libstdcxx/examples<br />
less readme.rst<br />
...<br />
<br />
=== Science related pretty-printers ===<br />
<br />
==== Pretty printers in the Debian repository ====<br />
<br />
aptitude install mayavi2 paraview<br />
<br />
==== Install VV ====<br />
<br />
Install dependencies,<br />
<br />
aptitude install gengetopt libxt-dev<br />
<br />
Build VTK 5.6 from source.<br />
<br />
cd ~/<br />
wget http://www.vtk.org/files/release/5.6/vtk-5.6.1.tar.gz<br />
tar xvzf vtk-5.6.1.tar.gz<br />
mkdir VTK/build<br />
cd VTK/build<br />
cmake -DVTK_USE_QT=ON -DBUILD_TESTING=OFF ..<br />
make -j2<br />
<br />
Build ITK from source.<br />
<br />
cd ~/<br />
wget http://voxel.dl.sourceforge.net/sourceforge/itk/InsightToolkit-3.20.0.tar.gz<br />
tar xvzf InsightToolkit-3.20.0.tar.gz<br />
cd InsightToolkit-3.20.0<br />
mkdir build<br />
cd build<br />
cmake -DBUILD_TESTING=OFF -DBUILD_EXAMPLES=OFF -DITK_USE_REVIEW=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo -DITK_USE_REVIEW_STATISTICS=ON ..<br />
make -j2<br />
<br />
Download vvSource-1.1.tar.gz from the [http://www.creatis.insa-lyon.fr/rio/vv VV homepage].<br />
<br />
cd ~/<br />
mv ~/Documents/vvSource-1.1.tar.gz ~/<br />
tar xvzf vvSource-1.1.tar.gz<br />
cd vv-src/build<br />
cmake -DITK_DIR=~/InsightToolkit-3.20.0/build -DVTK_DIR=~/VTK/build ..<br />
make -j2<br />
<br />
Copy the executable to the system PATH, e.g.<br />
<br />
su -<br />
cd /usr/local/bin<br />
ln -s /home/user/vv-src/build/bin/vv<br />
exit<br />
<br />
Replace ''user'' with your username.<br />
<br />
==== GDB setup ====<br />
<br />
cd ~/gdb/gdb-pretty<br />
git clone http://git.gitorious.org/gdb-pretty/gdb-pretty-science.git science<br />
cd science<br />
mkdir build<br />
cd build<br />
cmake -DCMAKE_INSTALL_PREFIX=~/gdb/install ..<br />
make install<br />
<br />
=== ITK pretty-printers ===<br />
<br />
cd ~/gdb/gdb-pretty<br />
git clone git://gitorious.org/gdb-pretty/gdb-pretty-itk.git itk<br />
<br />
Try running the example<br />
<br />
cd itk/examples<br />
less readme.rst<br />
<br />
=== itkCompareProject printer ===<br />
<br />
cd ~/gdb/gdb-pretty<br />
git clone https://github.com/antonin07130/itkCompareProject.git<br />
mkdir itkCompareProject/build<br />
cd itkCompareProject/build<br />
cmake -DITK_DIR=~/InsightToolkit-3.20.0/build/ -DVTK_DIR=~/VTK/build/ -DBUILD_GDB_PRETTY=ON -DICPGUI_INSTALL_LOCATION=/home/user/gdb/install/share/gdb/python/ -DBUILD_EXAMPLES=ON -DBUILD_TESTING=ON ..<br />
make<br />
<br />
<br />
{{ITK/Template/Footer}}</div>
Thewtex