Login  Register

Re: Segmentation fault in RS_EntityContainer::optimizeContours()

Posted by R. van Twisk on Apr 23, 2012; 4:26pm
URL: https://forum.librecad.org/Segmentation-fault-in-RS-EntityContainer-optimizeContours-tp5651061p5659845.html


On Apr 23, 2012, at 11:08 AM, Rallaz [via LibreCAD] wrote:

dxli wrote
make sure I add CXXFLAGS="-g" and not stripe the binary after compiling. I
run gdb manually to debug after that.
CONFIG += debug
simply add -g -O0 -Wall
and CONFIG += release  -O2

I wouldn't add -O2 because this depends a bit on the compiler and how good it can optimize.
so just leave that as CONFIG += release -O2 will properly be added for your environment.

Better yet, just do that one the command line like this: qmake librecad.pro -r CONFIG+=release

You can see what qmake is doing by checking you mkspec files within the Qt installation.

Qt Creator does a pretty nice job and as a IDE it might not be the best,
but it does have code completion, debugging and all that to get you started.

Ries

I may have to learn how to debug in qtcreator. I use qtcreator only as an
editor (class viewer) with fakevim mode.

Dongxu
see the screenshot attached by Ries:
the first green arrow are run, the second (with a "bug") are debug and
the hammer are build.

Set config in debug for a "normal debug", in release are assembler debug :-D

Check menu "tools->git" for git integration options.

Rallaz


If you reply to this email, your message will be added to the discussion below:
http://forum.librecad.org/Segmentation-fault-in-RS-EntityContainer-optimizeContours-tp5651061p5659783.html
To start a new topic under LibreCAD, email [hidden email]
To unsubscribe from LibreCAD, click here.
NAML