473,414 Members | 1,937 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

Can't seem to build python against custom tcl/tk

I'm trying to build a non-framework python on MacOS X 10.5 using a
custom tcl/tk that lives in an arbitrary directory. (For complicated
reasons we don't want the system tcl/tk). It is easy to build an X11
tcl/tk this way (and we are content with X11) so I did that.

Unfortunately I can't seem to build Python in such a way that it sees
this tcl/tk.

The only documented way to do this I found was to edit Modules/Setup or
Setup.local, so I did the following:
$ /configure --prefix=/Users/rowen/TestBuild/pythonroot/
--disable-framework
Edit Modules/Setup.local to add this text (based on comments in
Modules/Setup):
_tkinter _tkinter.c tkappinit.c -DWITH_APPINIT \
-L/Users/rowen/TestBuild/tcltkroot/lib \
-I/Users/rowen/TestBuild/tcltkroot/include \
-ltk8.4 -ltcl8.4 \
-I/usr/X11R6/include \
-L/usr/X11R6/lib \
-lX11
$ make
$ make install

This builds, but the resulting python is missing the _tkinter library.

I tried setting CFLAGS:
$ export CFLAGS="-I/Users/rowen/TestBuild/tcltkroot/include
-L/Users/rowen/TestBuild/tcltkroot/bin"
before running configure, but that didn't help.

So...any advice? Any obvious mistake? (I did double-check each path in
the text I added to Setup.local) Is there some way to convince configure
to use my tcl/tk (that would potentially be simpler than editing
Modules/Setup.local).

-- Russell
Aug 13 '08 #1
0 801

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Skip Montanaro | last post by:
I'm trying to build the released version of Python 2.3 on Solaris 8 for the first time. It has problems when building _ssl.so. The command generated is gcc -shared...
1
by: Grzegorz Dostatni | last post by:
Cheers. More questions. Let's say I'm trying to extend python with a c module. That module cannot be dynamically loaded (for reasons outside my control). I have to create a custom python...
0
by: matt okeson-harlow | last post by:
i am getting errors trying to build MySQLdb on solaris 8, i have tried changing the libs, no joy, anyone have any ideas? Python 2.3.4 gcc -v Reading specs from...
0
by: OpenMacNews | last post by:
hi all, i've successfully built Python-2.4.1 from src on OSX 10.3.8 as a framework install with: ./configure \ --enable-framework \ --with-threads \ --with-cxx=g++ \ --enable-ipv6 \
2
by: Steve Juranich | last post by:
I'm running into problems where Python and VTK both ship with their own distribution of the Expat parser. As long as you never use the Python XML package, everything is fine. But if you try using...
6
by: Paul | last post by:
Hello everyone: I am developing a VB.Net Windows Application and I am now ready to create the deployment project for it. This application needs to be installable on a different number of users...
2
by: Ryan | last post by:
I have a very complex XDR schema that uses namespaces: xmlns="urn:schemas-microsoft-com:xml-data" xmlns:b="urn:schemas-microsoft-com:BizTalkServer" xmlns:d="urn:schemas-microsoft-com:datatypes"...
35
by: erikwickstrom | last post by:
Hi all, I'm sorry about the newbie question, but I've been searching all afternoon and can't find the answer! I'm trying to get this bit of code to work without triggering the IndexError. ...
9
by: cendrizzi | last post by:
Hi all, I've read some stuff on this but can't seem to come up with a solution that works right. I have a semi-mature (yet very large and robust) internal web application that currently only...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.