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 \This will create the required Eclipse .project and .cproject files in the build.libpano directory.
-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
Am Thursday 18 February 2010 schrieb dev g:
> Hello everyone,Making it in source-tree? Not recomended.
>
> 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
> My approach does steps 1 and 2 from within Eclipse (creates the makefile andI would not like it. It would be very platform dependant. But why is it not possible from eclipse?
> 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?
> Has anyone had success in setting up Eclipse or another IDE to debugKornel
> Panotools or a similar project? Any advice would be appreciated.
>
> Thanks,
> Dev
>
--
Kornel Benko
Kornel.Benko@berlin.de
------------------------------------------------------------------------------
Download Intel® 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