Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python3 can't detect Tcl/Tk 8.6.1 #66086

Closed
joedborg mannequin opened this issue Jun 30, 2014 · 2 comments
Closed

Python3 can't detect Tcl/Tk 8.6.1 #66086

joedborg mannequin opened this issue Jun 30, 2014 · 2 comments
Labels
build The build process and cross-build

Comments

@joedborg
Copy link
Mannequin

joedborg mannequin commented Jun 30, 2014

BPO 21887
Nosy @ned-deily, @joedborg

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2014-06-30.18:23:49.635>
created_at = <Date 2014-06-30.15:11:14.434>
labels = ['build']
title = "Python3 can't detect Tcl/Tk 8.6.1"
updated_at = <Date 2014-06-30.18:23:49.633>
user = 'https://github.com/joedborg'

bugs.python.org fields:

activity = <Date 2014-06-30.18:23:49.633>
actor = 'ned.deily'
assignee = 'none'
closed = True
closed_date = <Date 2014-06-30.18:23:49.635>
closer = 'ned.deily'
components = ['Build']
creation = <Date 2014-06-30.15:11:14.434>
creator = 'Joe.Borg'
dependencies = []
files = []
hgrepos = []
issue_num = 21887
keywords = []
message_count = 2.0
messages = ['221964', '221974']
nosy_count = 2.0
nosy_names = ['ned.deily', 'Joe.Borg']
pr_nums = []
priority = 'normal'
resolution = 'works for me'
stage = 'resolved'
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue21887'
versions = ['Python 3.4']

@joedborg
Copy link
Mannequin Author

joedborg mannequin commented Jun 30, 2014

Trying to configure 3.4.1 on Cent OS 6.4. I have built Tcl and Tk, using the prefix /scratch/root. I can confirm the builds with:

$ find /scratch/root/ -name "tcl.h"
/scratch/root/include/tcl.h

$ find /scratch/root/ -name "tk.h"
/scratch/root/include/tk.h

But, when configuring Python, they aren't picked up:

$ ./configure --prefix=/scratch/root --with-tcltk-includes=/scratch/root/include --with-tcltk-libs=/scratch/root/lib | grep tcl
checking for --with-tcltk-includes... /scratch/root/include
checking for --with-tcltk-libs... /scratch/root/lib
checking for UCS-4 tcl... no

I've tried to make install with this, but then get the usual exception from _tkinter.

@joedborg joedborg mannequin added the build The build process and cross-build label Jun 30, 2014
@joedborg joedborg mannequin changed the title Python3 can't detect Tcl Python3 can't detect Tcl/Tk 8.6.1 Jun 30, 2014
@ned-deily
Copy link
Member

for the --with-tcltk-includes and -libs options, you need to pass the same cc options that would go on CFLAGS and LDFLAGS.

./configure --help
[...]
--with-tcltk-includes='-I...'
override search for Tcl and Tk include files
--with-tcltk-libs='-L...'
override search for Tcl and Tk libs

So your values should likely look something like:

--with-tcltk-includes="-I/scratch/root/include"
--with-tcltk-libs="-L/scratch/root/lib -ltcl8.6 -ltk8.6"

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build The build process and cross-build
Projects
None yet
Development

No branches or pull requests

1 participant