Problem with python bindings

Derek Atkins warlord at MIT.EDU
Tue Apr 7 13:20:30 EDT 2009


Quoting Phil Longstaff <plongstaff at rogers.com>:

> On April 7, 2009 10:01:45 am you wrote:
>> Phil Longstaff <plongstaff at rogers.com> writes:
>> >> What do you get from: pkg-config --cflags tcl
>> >>
>> >> > Phil
>> >>
>> >> -derek
>> >
>> > phil at phil-laptop:~/gnucash2/trunk/src/optional/python-bindings$
>> > pkg-config --cflags tcl
>> > Package tcl was not found in the pkg-config search path.
>> > Perhaps you should add the directory containing `tcl.pc'
>> > to the PKG_CONFIG_PATH environment variable
>> > No package 'tcl' found
>> >
>> > My tcl8.4-dev package doesn't have a .pc file.
>>
>> Hmm.. Is there a "python-config" or "tcl-config" program?
>
> There is /usr/lib/tcl8.5/tclConfig.sh which defines lots of stuff.

That's not what I asked.  but to answer my own question there IS a
python-config program (I don't have tcl installed).

# which python-config
/usr/bin/python-config
#
python-config --cflags
-I/usr/include/python2.5 -I/usr/include/python2.5 -fno-strict-aliasing 
-DNDEBUG
-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic
-fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC

So...  We should use this in configure to get the PYTHON_CFLAGS  (and we
should use --libs to get PYTHON_LIBS).

> Phil

-derek

-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord at MIT.EDU                        PGP key available



More information about the gnucash-devel mailing list