← Back to team overview

kicad-developers team mailing list archive

linking against debug wxwidgets libraries?

 

Hello,

has anyone been able to link & run with the debug versions of wxwidgets?
I'm using the following in libs.linux:

ifdef DEBUG
WXSYSLIB= `wx-config --debug --libs std`
WXSYSLIB_WITH_GL= `wx-config --debug --libs std,gl`
else
WXSYSLIB= `wx-config --libs std`
WXSYSLIB_WITH_GL= `wx-config --libs std,gl`
endif

and in makefile.gtk:

ifdef DEBUG
CPPFLAGS = -Wall -g `wx-config --debug --cxxflags`
LDFLAGS = -g -v
else
CPPFLAGS = -Wall -O2 `wx-config --cxxflags`
LDFLAGS = -s -v
endif

when i complile then 'gdb pcbnew', it says 'Failed to read a valid object file image from memory'

I really would prefer to see the contents of wxStrings and the like for debugging, but apparently can't with the release libraries. This is on Debian stable with the packages libwxbase2.6-dbg and libwxgtk2.6-dbg

thanks!
Tim






Follow ups