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:
cmake -DCMAKE_BUILT_TYPE=Debug -G "Eclipse CDT4 - Unix Makefiles" ../libpano13 -DCMAKE_INSTALL_PREFIX=/usr/local -DCPACK_BINARY_DEB:BOOL=ON -DCPACK_BINARY_NSIS:BOOL=OFF \
-DCPACK_BINARY_RPM:BOOL=OFF -DCPACK_BINARY_STGZ:BOOL=OFF -DCPACK_BINARY_TBZ2:BOOL=OFF \
-DCPACK_BINARY_TGZ:BOOL=OFF -DCPACK_BINARY_TZ:BOOL=OFF

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).

-Dev

[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

--
Kornel Benko
Kornel.Benko@berlin.de

------------------------------------------------------------------------------
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.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
PanoTools-devel mailing list
PanoTools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/panotools-devel