From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6349 invoked by alias); 19 Jun 2010 03:11:48 -0000 Received: (qmail 6299 invoked by uid 22791); 19 Jun 2010 03:11:47 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,TW_DB,TW_SM X-Spam-Check-By: sourceware.org Received: from mail-pv0-f169.google.com (HELO mail-pv0-f169.google.com) (74.125.83.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 19 Jun 2010 03:11:40 +0000 Received: by pvg16 with SMTP id 16so1045149pvg.0 for ; Fri, 18 Jun 2010 20:11:39 -0700 (PDT) Received: by 10.115.20.18 with SMTP id x18mr1560679wai.50.1276917099249; Fri, 18 Jun 2010 20:11:39 -0700 (PDT) Received: from [172.16.146.80] ([60.12.143.27]) by mx.google.com with ESMTPS id 33sm4139203wad.8.2010.06.18.20.11.35 (version=SSLv3 cipher=RC4-MD5); Fri, 18 Jun 2010 20:11:38 -0700 (PDT) Message-ID: <4C1C3580.4000704@gmail.com> Date: Sat, 19 Jun 2010 03:11:00 -0000 From: asmwarrior User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.10) Gecko/20100512 Thunderbird/3.0.5 MIME-Version: 1.0 To: Doug Evans CC: tromey@redhat.com, gdb@sourceware.org Subject: Re: issue about building windows version of gdb with python support References: <4C162783.4010706@gmail.com> <4C1ABF28.4020504@gmail.com> In-Reply-To: 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/msg00075.txt.bz2 On 2010-6-18 21:09, Doug Evans wrote: > On Thu, Jun 17, 2010 at 5:34 PM, asmwarrior wrote: > >> On 2010-6-17 1:36, Tom Tromey wrote: >> >>> Hmm, I would have thought that the python-config.py stuff (in >>> gdb/python/) would do the right thing here. >>> >>> What is the output on your machine when you run that with --ldflags? >>> >>> >> Thanks for your reply. Infact, I'm quite new to "Python", so I even don't >> know what does "--ldflags" means... Sorry. I have tried the snapshot 0616, >> but build process failed due to some errors related to python. I guess you >> have change the python-configure related code. >> > In the gdb source tree, run > > python python/python-config.py --ldflags > Thanks, I have download the latest snapshot then, run this command, here is the command log output E:\code\cb\gdb_python\gdb-7.1.50.20100619\gdb-7.1.50.20100619\gdb\python>python- config.py --ldflags Traceback (most recent call last): File "E:\code\cb\gdb_python\gdb-7.1.50.20100619\gdb-7.1.50.20100619\gdb\python \python-config.py", line 47, in libs = getvar('LIBS').split() + getvar('SYSLIBS').split() AttributeError: 'NoneType' object has no attribute 'split' E:\code\cb\gdb_python\gdb-7.1.50.20100619\gdb-7.1.50.20100619\gdb\python> Python2.6.5 was installed in E:\code\python265 The include header was: E:\code\python265\include (all the xxxx.h files) the lib was: E:\code\python265\libs (all the xxxx.lib and libpython26.a ) So, I think these information can help you to solve the python issue on Windows. Thanks asmwarrior ollydbg from codeblocks forum.