building and running with Qt Creator

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

building and running with Qt Creator

ravas
I can build using 'Qt 5.4 for desktop' (command line);
however, I want to use Qt Creator to run LibreCad so I can debug a crash.

I recently found http://wiki.librecad.org/index.php/How_to_built_LibreCAD_(master_branch)_on_Windows.
I followed the steps regarding installing and building muparser, because this was new to me.
However building in Qt creator results in the same errors I originally had:

collect2.exe: error: ld returned 1 exit status
mingw32-make[3]: *** [release\plotequation1.dll] Error 1
mingw32-make[2]: *** [release] Error 2
mingw32-make[3]: Leaving directory 'C:/1B/librecad/plugins/plotequation'
Makefile:34: recipe for target 'release' failed
mingw32-make[2]: Leaving directory 'C:/1B/librecad/plugins/plotequation'
Makefile:194: recipe for target 'sub-plotequation-make_first' failed
mingw32-make[1]: Leaving directory 'C:/1B/librecad/plugins'
makefile:127: recipe for target 'sub-plugins-make_first-ordered' failed
mingw32-make[1]: *** [sub-plotequation-make_first] Error 2
mingw32-make: *** [sub-plugins-make_first-ordered] Error 2
11:47:08: The process "C:\Qt\Tools\mingw491_32\bin\mingw32-make.exe" exited with code 2.
Error while building/deploying project librecad (kit: Desktop Qt 5.4.1 MinGW 32bit)
When executing step "Make"


What is collect2.exe and why don't I have it?
Any ideas on what I might try?
Reply | Threaded
Open this post in threaded view
|

Re: building and running with Qt Creator

dxli
it should using the bundled muparser instead.

basically, you don't need to build your own muparser separately.

I think I should force it to use muparser by removing the option to use a system muparser.
Reply | Threaded
Open this post in threaded view
|

Re: building and running with Qt Creator

ravas
Oh I see... thanks.

PS. The link I originally posted is missing a period at the end,
and therefore links to a different page. >_<

http://wiki.librecad.org/index.php/How_to_built_LibreCAD_(master_branch)_on_Windows.
Reply | Threaded
Open this post in threaded view
|

Re: building and running with Qt Creator

dxli
Reply | Threaded
Open this post in threaded view
|

Re: building and running with Qt Creator

ravas
Nice... that fixed it.

Here is the output for the spline crash:

Starting C:\1B\librecad\windows\LibreCAD.exe...
RS_DEBUG::setLevel(3)
RS_DEBUG: Critical
RS_DEBUG: Errors
RS_DEBUG: Warnings
QG_CadToolBar::showPreviousToolBar():begin  0
QG_CadToolBar::showPreviousToolBar():begin  7
QG_CadToolBar::showPreviousToolBar():end  0
QG_CadToolBar::showPreviousToolBar():begin  0
QG_CadToolBar::showPreviousToolBar():begin  7
QG_CadToolBar::showPreviousToolBar():end  0
The program has unexpectedly finished.
C:\1B\librecad\windows\LibreCAD.exe crashed

Debugging starts
RS_DEBUG::setLevel(3)
RS_DEBUG: Critical
RS_DEBUG: Errors
RS_DEBUG: Warnings
QG_CadToolBar::showPreviousToolBar():begin  0
QG_CadToolBar::showPreviousToolBar():begin  7
QG_CadToolBar::showPreviousToolBar():end  0
HEAP[LibreCAD.exe]:
Heap block at 033D96B0 modified at 033D9838 past requested size of 180
Reply | Threaded
Open this post in threaded view
|

Re: building and running with Qt Creator

ravas
In reply to this post by dxli
Reply | Threaded
Open this post in threaded view
|

Re: building and running with Qt Creator

ravas
In reply to this post by dxli
I pressed continue a few times:

continued from last post...
HEAP[LibreCAD.exe]:
Invalid address specified to RtlFreeHeap( 017D0000, 033D96B8 )
HEAP[LibreCAD.exe]:
Heap block at 0499B0E0 modified at 0499B268 past requested size of 180
HEAP[LibreCAD.exe]:
Invalid address specified to RtlFreeHeap( 017D0000, 0499B0E8 )
HEAP[LibreCAD.exe]:
Heap block at 04A58A18 modified at 04A58BA0 past requested size of 180
HEAP[LibreCAD.exe]:
Invalid address specified to RtlFreeHeap( 017D0000, 04A58A20
Reply | Threaded
Open this post in threaded view
|

Re: building and running with Qt Creator

ravas
Is Build->Rebuild All the only way to ensure all changes (in Qt Creator)?
Reply | Threaded
Open this post in threaded view
|

Re: building and running with Qt Creator

dxli
yes, but if changes are limited to existing c++ files, it's safe to just do "build"

ravas wrote
Is Build->Rebuild All the only way to ensure all changes (in Qt Creator)?