From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16954 invoked by alias); 14 Jun 2010 12:58:31 -0000 Received: (qmail 16941 invoked by uid 22791); 14 Jun 2010 12:58:30 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-px0-f169.google.com (HELO mail-px0-f169.google.com) (209.85.212.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 14 Jun 2010 12:58:24 +0000 Received: by pxi1 with SMTP id 1so5937436pxi.0 for ; Mon, 14 Jun 2010 05:58:23 -0700 (PDT) Received: by 10.114.186.40 with SMTP id j40mr4488601waf.93.1276520302958; Mon, 14 Jun 2010 05:58:22 -0700 (PDT) Received: from [172.16.144.109] ([60.191.99.16]) by mx.google.com with ESMTPS id n32sm54792604wae.10.2010.06.14.05.58.21 (version=SSLv3 cipher=RC4-MD5); Mon, 14 Jun 2010 05:58:22 -0700 (PDT) Message-ID: <4C162783.4010706@gmail.com> Date: Mon, 14 Jun 2010 12:58:00 -0000 From: asmwarrior User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 MIME-Version: 1.0 To: gdb@sourceware.org Subject: issue about building windows version of gdb with python support Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2010-06/txt/msg00049.txt.bz2 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)