I have been able to successfully debug Panotools after learning a bit more about Cmake and how it works with Eclipse.  I know many of you don't use Eclipse or other IDEs but here's the procedure in case it's useful for someone else:

0. Start with an empty build.libpano directory. (It should be a sibling to the source directory, libpano.)

1. cd build.libpano
Use CMake as given in [1] with the following modified flags:

This will create the required Eclipse .project and .cproject files in the build.libpano directory.

2. a) From Eclipse select File -> Import.  Select General -> Existing projects into Workspace. 
b) Select root directory to be build.libpano.  Leave "Copy project into workspace" unchecked. 
c) Project will have an "@" symbol.  Replace with an underscore using "rename project."

3. Set up a debug under Run -> Debug configurations.  Use standard create process launcher.  Set the C/C++ application to build.libpano/tools/PTmender (or whichever tool you wish to debug).


[1] http://wiki.panotools.org/Hugin_Compiling_Ubuntu#Building_Libpano13

2010/2/18 Kornel Benko <Kornel.Benko@berlin.de>
Am Thursday 18 February 2010 schrieb dev g:
> Hello everyone,
> I am trying to get my IDE (Eclipse) to allow me to debug Panotools and have
> followed an approach I found here:
> http://www.vtk.org/Wiki/Eclipse_CDT4_Generator
> to create Eclipse .project files from Cmake by adding some flags to the
> cmake commands given here:
> http://wiki.panotools.org/Hugin_Compiling_Ubuntu#Building_Libpano13
> >From the command line, there are 3 steps:
> 1. Cmake ...
> 2. make package
> 3. sudo dpkg -i libpano13-*-Linux.deb

Making it in source-tree? Not recomended.

> My approach does steps 1 and 2 from within Eclipse (creates the makefile and
> package) but does not do step 3.  Of course, the executables (such as
> PTmender, etc.) aren't created until the package is installed (with the
> command sudo dpkg -i libpano13-*-Linux.deb).  Is there any way to install
> the package by altering CMakeLists.txt?

I would not like it. It would be very platform dependant. But why is it not possible from eclipse?

> Has anyone had success in setting up Eclipse or another IDE to debug
> Panotools or a similar project?  Any advice would be appreciated.
> Thanks,
> Dev


Kornel Benko

Download Intel&reg; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
PanoTools-devel mailing list