[Buildroot] How can I install tkinter for python3 in Buildroot 2018.11.x ?

Thomas Petazzoni thomas.petazzoni at bootlin.com
Mon Feb 4 09:23:49 UTC 2019


Hello,

On Wed, 30 Jan 2019 09:22:12 +0100
Fame Castle <famecastle at gmail.com> wrote:

> I already enabled the tk and tcl packages inside "make menuconfig"
> but had no luck with it. When I was using buildroot 2018.05.x, I used
> this patch:
> https://sourceforge.net/p/armadeus/code/ci/master/tree/patches/buildroot/2017.02/012-armadeus-add-tkinter-support-to-python.patch
> in order to add a configuration option to python 3 which enables me
> to include Tkinter into python3. This patch, however, has no effect
> anymore on buildroot 2018.11.x . (I already tried changing
> PYTHON_DEPENDENCIES to PYTHON3_DEPENDENCIES in the patch).
> 
> I have no idea what I should do now. Can you help me?

I have tried to solve your issue using the below patch. Unfortunately,
it triggers a circular dependency, which I'm not sure how to solve at
this point:

Recursion detected for  : fontconfig
which is a dependency of: xlib_libXft
which is a dependency of: tk
which is a dependency of: python3
which is a dependency of: util-linux
which is a dependency of: fontconfig

We've already been bitten by this sort of circular dependencies in the
past, where the dependency of util-linux on python was a problem.

Here is the patch I have used:

  https://git.bootlin.com/users/thomas-petazzoni/buildroot/commit/?h=python-tkinter&id=7698e98b592bbd724903b8f657b672ee58ef8d11

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com


More information about the buildroot mailing list