Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Failed tkinter Compile In Custom 3.7.2 Build Using Custom Tcl/Tk Build

I spent a few hours working on a custom Python 3.7.2 build using a custom (and successful) Tcl/Tk 8.6.9 build/install that continually failed to correctly compile the tkinter module. Here are the relevant details:

Red Hat Enterprise Linux Workstation release 7.6 (Maipo)
Python 3.7.2 source
Tcl/Tk 8.6.9 source
OS-provided Tcl/Tk packages not installed

I added the destinations of both the Python and Tcl/Tk builds to /etc/ and executed /sbin/ldconfig.

The autoconf command I used is:

./configure --prefix=<python-prefix> --with-tcltk-includes=-I<tcl-prefix>/include --with-tcltk-libs="-L<tcl-prefix>/lib -ltcl8.6 -ltk8.6"

The Python build succeeded but the tkinter module failed to build. The config.log output indicated that it could not find tcl.h, but it (and the other header files) exists in <tcl-prefix>/include. Out of curiosity, I progressively created symlinks in /usr/include to tcl.h, tk.h, tclDecls.h, and tclPlatDecls.h until the errors stopped appearing in config.log and the tkinter module successfully compiled and indicated that it was using the expected version of Tcl/Tk.

It appears to me that the autoconf execution is not honoring the --with-tcltk-includes value. I attempted the same steps using Python 3.6.8 with similar results.

micseydel likes this post

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  How to compile all relevant code and then execute the program Mocap 2 148 Jul-26-2019, 06:45 PM
Last Post: nilamo
  configuring python at build time Skaperen 2 152 Jul-03-2019, 11:33 PM
Last Post: Skaperen
  Distributing custom version of Python touc82 1 235 Mar-23-2019, 03:23 PM
Last Post: Larz60+
  has anyone here created their own custom codec? Skaperen 0 568 Jan-30-2018, 06:48 AM
Last Post: Skaperen
  [cx_Freeze] Build .exe they get more .py files, help needed ! JamieVanCadsand 3 2,526 Oct-02-2017, 10:19 AM
Last Post: snippsat

Forum Jump:

Users browsing this thread: 1 Guest(s)