Re: Segmentation fault in RS_EntityContainer::optimizeContours()
Posted by
R. van Twisk on
Apr 23, 2012; 1:44pm
URL: https://forum.librecad.org/Segmentation-fault-in-RS-EntityContainer-optimizeContours-tp5651061p5659439.html
Eric,
the best we to work with LibreCAD if you are not familiar with Qt is to fire up Qt Creator.
It has options to generate debug and release code where you can step easily through
the code from the IDE.
Simple set at the bottom left of the IDE the project to Debug and to a full build.
Then you can set your breakpoints and all that to stop at the right
line and inspect variables.
Ries
On Apr 23, 2012, at 8:07 AM, Erik [via LibreCAD] wrote:
Hi Dongxu,
I'm sure we can work together. At the moment I've no experience with Qt and only very less experience with c++, but good experience with c.
Because of a strong accident round about 10 years ago I'm not able to work again as a development engineer with focus on embedded systems. But I think there are some things I can do to help the librecad team.
I don't find any possibility to build a debug version. I don't know if there is a direct possibility with qmake.
For me I changed the the common.pro
from
QMAKE_CXXFLAGS += -std=c++0x
to
QMAKE_CXXFLAGS += -std=c++0x -g
There must be a better way to build a debugger version.
Because of the algorithm, I hope I've a little bit time in the next few days, to understand and have a look on it.
Best Regards,
Erik
(from Germany)