Re: [hugin-ptx] Building Hugin with debugging symbols

2012-07-09 Thread Lukáš Jirkovský
On 10 July 2012 08:27, Greg 'groggy' Lehey  wrote:
> On Tuesday, 10 July 2012 at  7:53:26 +0200, Luk?? Jirkovsk wrote:
>> On 10 July 2012 02:18, Terry Duell  wrote:
>>>
>>> Whoops...that's not right. If building in the topmost dir of a hugin
>>> repository, and running cmake at that level;
>>>
>>> " cmake . -DDebug=1"
>>
>> It should be "cmake -DCMAKE_BUILD_TYPE=Debug"
>
> Thanks, but that's not what I'm looking for.  That enables debugging
> code in the source.  I'm looking for something that tells the
> Makefiles to build the object files with debugging symbols (the -g
> option to gcc) so that I can investigate what's going on with gdb.
>
> Greg

This option passes the -g compiler option automatically, so you will
get debugging symbols. This is the standard way to create a debug
build using CMake. If you really do not want other debug information,
just set up CFLAGS & CXXFLAGS appropriately before running cmake. Oh,
and for both options to work you need to do a clean build (especially
there must not be a CMakeCache file before you run cmake).

Lukas

-- 
You received this message because you are subscribed to the Google Groups 
"Hugin and other free panoramic software" group.
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
To post to this group, send email to hugin-ptx@googlegroups.com
To unsubscribe from this group, send email to 
hugin-ptx+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/hugin-ptx


Re: [hugin-ptx] Building Hugin with debugging symbols

2012-07-09 Thread Greg 'groggy' Lehey
On Tuesday, 10 July 2012 at  7:53:26 +0200, Luk?? Jirkovsk wrote:
> On 10 July 2012 02:18, Terry Duell  wrote:
>>
>> Whoops...that's not right. If building in the topmost dir of a hugin
>> repository, and running cmake at that level;
>>
>> " cmake . -DDebug=1"
>
> It should be "cmake -DCMAKE_BUILD_TYPE=Debug"

Thanks, but that's not what I'm looking for.  That enables debugging
code in the source.  I'm looking for something that tells the
Makefiles to build the object files with debugging symbols (the -g
option to gcc) so that I can investigate what's going on with gdb.

Greg
--
Sent from my desktop computer.
Finger g...@freebsd.org for PGP public key.
See complete headers for address and phone numbers.
This message is digitally signed.  If your Microsoft MUA reports
problems, please read http://tinyurl.com/broken-mua


pgpDYDTk6uAQo.pgp
Description: PGP signature


Re: [hugin-ptx] Building Hugin with debugging symbols

2012-07-09 Thread Terry Duell
On Tue, 10 Jul 2012 15:53:26 +1000, Lukáš Jirkovský  
 wrote:




It should be "cmake -DCMAKE_BUILD_TYPE=Debug"


Yes, you are right.
Sorry, I should have checked the CMakeLists.txt for the specific  
definition and not assumed it would be as per the one example in my  
rpmbuild spec file.


Cheers,
--
Regards,
Terry Duell

--
You received this message because you are subscribed to the Google Groups "Hugin and 
other free panoramic software" group.
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
To post to this group, send email to hugin-ptx@googlegroups.com
To unsubscribe from this group, send email to 
hugin-ptx+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/hugin-ptx


Re: [hugin-ptx] Building Hugin with debugging symbols

2012-07-09 Thread Lukáš Jirkovský
On 10 July 2012 02:18, Terry Duell  wrote:
> On Tue, 10 Jul 2012 09:29:23 +1000, Terry Duell  wrote:
>
> [snip]
>
>
>> " cmake -DDebug=1"
>>
>> without the "" of course and prepending with ./ if necessary.
>
>
> Whoops...that's not right. If building in the topmost dir of a hugin
> repository, and running cmake at that level;
>
> " cmake . -DDebug=1"
>
>
> Cheers,
> --
> Regards,
> Terry Duell
>

It should be "cmake -DCMAKE_BUILD_TYPE=Debug"

Lukas

-- 
You received this message because you are subscribed to the Google Groups 
"Hugin and other free panoramic software" group.
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
To post to this group, send email to hugin-ptx@googlegroups.com
To unsubscribe from this group, send email to 
hugin-ptx+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/hugin-ptx


Re: [hugin-ptx] Building Hugin with debugging symbols

2012-07-09 Thread Terry Duell
On Tue, 10 Jul 2012 09:29:23 +1000, Terry Duell   
wrote:


[snip]


" cmake -DDebug=1"

without the "" of course and prepending with ./ if necessary.


Whoops...that's not right. If building in the topmost dir of a hugin  
repository, and running cmake at that level;


" cmake . -DDebug=1"

Cheers,
--
Regards,
Terry Duell

--
You received this message because you are subscribed to the Google Groups "Hugin and 
other free panoramic software" group.
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
To post to this group, send email to hugin-ptx@googlegroups.com
To unsubscribe from this group, send email to 
hugin-ptx+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/hugin-ptx


Re: [hugin-ptx] Building Hugin with debugging symbols

2012-07-09 Thread Terry Duell

Hullo Greg,

On Mon, 09 Jul 2012 18:00:30 +1000, Greg 'groggy' Lehey  
 wrote:



As you may have noticed, I'm currently having difficulty with the 64
bit version of Hugin under FreeBSD.  I'd like to look around inside
with gdb, but I don't do cmake, and I can't work out how to compile
with debugging symbols.  Can anybody help?


A quick snoop about makes me think that if you use cmake like this it will  
include the debug...


" cmake -DDebug=1"

without the "" of course and prepending with ./ if necessary.
I might have this wrong, as I'm no expert on cmake (or anything else for  
that matter), but this looks to be the way cmake is invoked from within  
the Fedora rpmbuild spec file.



It would also be
interesting to be able to specify which compiler to use.


Don't know about that one.

Cheers,
--
Regards,
Terry Duell

--
You received this message because you are subscribed to the Google Groups "Hugin and 
other free panoramic software" group.
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
To post to this group, send email to hugin-ptx@googlegroups.com
To unsubscribe from this group, send email to 
hugin-ptx+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/hugin-ptx


[hugin-ptx] Building Hugin with debugging symbols

2012-07-09 Thread Greg 'groggy' Lehey
As you may have noticed, I'm currently having difficulty with the 64
bit version of Hugin under FreeBSD.  I'd like to look around inside
with gdb, but I don't do cmake, and I can't work out how to compile
with debugging symbols.  Can anybody help?  It would also be
interesting to be able to specify which compiler to use.

Greg
--
Sent from my desktop computer.
Finger g...@freebsd.org for PGP public key.
See complete headers for address and phone numbers.
This message is digitally signed.  If your Microsoft MUA reports
problems, please read http://tinyurl.com/broken-mua


pgpQKljmWm3Uc.pgp
Description: PGP signature