Saturday, March 24, 2007, 12:18:41 AM, Gail wrote:
Today I was working on getting set up for my SoC bug fixes, and I wanted to figure out the same thing. So far, Eclipse/CDT is looking promising. I can get it to build within in Eclipse, as well as run/debug.
I follow you, and install Eclipse/CDT. After a sleepless night, I cannot report a success :-(. At the moment, my goal is only the debugging. The bulid come later. So I use the build snapshot from http://inkscape.modevia.com/win32. Thanks to Bob Jamison!
---------------------------------------------------------------------- @Bob: I wonder that the link from http://wiki.inkscape.org/wiki/index.php/Win32Port to the gtk libraries no longer work. I use now gtk210-070110.7z.
By the way, the link from http://inkscape.modevia.com/win32libs/ labeled "here" to http://inkscape.org/win32/win32buildnotes.html is broken (maybe temporarily or outdated).
@? Another trivia: The build.xml has on line 391 two syntax errors (wrong blanks): < include name="inkviewres.o"/ > ^ ^ The btool.exe tolerated this, but all my XML editors and the browser (e.g. Firefox) show only the errors.
--------------------------------------------------------------------- @all, return to the subject: Here is what I did: - Unpack Inkscape0703232054.7z and Inkscape0703232054-dbg.7z into the same directory (R:\a\svn\inkscape). - In Eclipse File|Import... -- Select site choose C/C++ | Executable click Next Button -- Import Executable site Select binary parser: PE Windows Parser Select executable: R:\a\svn\inkscape\inkscape.exe click Next Button -- Choose Project New project name: Debug inkscape.exe Create a Launch Configuration: C/C++ Local Application Name:Debug inkscape.exe click Finish Button - In Debug Dialog click Debug Button A error occurs: Error stopping at main. Reason: Target request failed: No symbol table is loaded. Use the "file" command.. Continue? I think this is the error what Gail see too. First I have try to add inkscape.dbg file to the project: - In Eclipse File|Import... -- Select site choose General | File System click Next Button -- Import site From Directory: R:\a\svn\inkscape file list: select inkscape.dbg
Inkscape.dbg is now in the project, but the error still occurs. Next, I go to Run|Debug...|Debug-tab |input field "GDB command file:" and change the text from ".gdbinit" to ".gdbinit -s inkscape.dbg". After that, the debugger start without a error message, but stop not at main. The option "Stop on startup at: main" is checked. I think that the symbol table is not set correct. If I expand the inkscape.dbg project entry, I see a long list of source files. Each has a "Expand Plus" [+], but this disappears if I click on it. All files that not in the working directory has a absolut path. These are wrong, e.g.: /home/rjamison/gcc/gcc-4.1.2/gcc/unwind-pe.h R:/libstdc++-v3/src/list.cc
The relativ paths are correct e.g.: src/desktop.h
Next, I did checkout from Subversion: svn co https://inkscape.svn.sourceforge.net/svnroot/inkscape/inkscape/trunk inkscape Revision 14596
Then I edit the build.xml, set FLAGS to -Wall -O0 -g -mms-bitfields
and build from the command line. The build works, but if I start the debugger in eclipse, the above error occurs once again.
Now I'm helpless, has someone a hint for me? Bernd