Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* issue about building windows version of gdb with python support
@ 2010-06-14 12:58 asmwarrior
  2010-06-16 17:37 ` Tom Tromey
  0 siblings, 1 reply; 7+ messages in thread
From: asmwarrior @ 2010-06-14 12:58 UTC (permalink / raw)
  To: gdb

Hi, all.

Today, I have build a gdb.exe with python support under windows(i'm 
using TDMMinGW 4.5 dw2 version, I use the latest gdb snapshot 7.1.5 
20100613, python 2.6.5).

I have released in Codeblocks'forum, I love the "pretty print" function 
supplied by python.
http://forums.codeblocks.org/index.php/topic,11301.msg86240.html#msg86240

But I found that the build configuration has some problems when linking 
to python header files and libs.

By the default, the configuration step will test if python can be used. 
It expect that the python header file was under some folders like

For searching python header files, it use some folder path like:
The test python code has some code like:
#include "python2.6/include"
For searching lib files, it will search some path like:
python_folder/lib/libpython2.6.a

But, In fact, when I install the python2.6.5 in windows, the folder 
structure was like below:

E:\XXXX\python this is the root folder.
Then E:\XXXX\python\include, this is the header directory.
Then, the lib foldee was: E:\XXXX\python\libs        (please note that 
the path name is"libs" not lib.)
Also, the library file is E:\XXXX\python\libs\libpython26.a (please note 
that, there is no "dot" between the number 2 and 6.


To solve this mismatch, I just change the lib name and copy a header 
file to make the configure happy (otherwize, I can't pass the python 
test in the configuration step).

But I think this is not a good way, I would like suggestion you can 
solve the configuration issue.( mostly, I think some thing in the 
automake script).

thanks

asmwarrior (ollydbg from codeblocks' forum)




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-06-19  3:18 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-14 12:58 issue about building windows version of gdb with python support asmwarrior
2010-06-16 17:37 ` Tom Tromey
2010-06-16 18:09   ` Doug Evans
2010-06-18  0:34   ` asmwarrior
2010-06-18 13:09     ` Doug Evans
2010-06-19  3:11       ` asmwarrior
2010-06-19  3:18         ` Doug Evans

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox