Great! Many thanks both work nicely on linux. I will test it on other OS and versions
Vasilis ________________________________________ From: Tkinter-discuss [tkinter-discuss-bounces+vasilis.vlachoudis=cern...@python.org] on behalf of E [emilianogavi...@gmail.com] Sent: Tuesday, October 15, 2019 19:52 To: tkinter-discuss@python.org Subject: Re: [Tkinter-discuss] Detecting tk/tcl include library path El 15/10/2019 a las 01:02 p. m., Vasilis Vlachoudis escribió: > Hi all, > > how can I detect in a makefile the path of the include C header files of > tk/tcl? Two ways. > There is no tk-config program to return it like other package. In the default configuration, both Tcl and Tk provides .pc files to use with pkg-config, who became the de-facto standard for registering package configuration and compilation options. Try $ pkg-config --cflags tk -I/usr/local/include The other option is to use the information recorded in the Tcl binary. $ echo 'puts [tcl::pkgconfig get includedir,install] | tclsh' /usr/local/include since both Tcl and Tk are usually installed in the same --prefix Regards Emiliano > I see that every system puts the C header files in a different location like > /usr/include/tk > /usr/include/tk8.6 > /sw/include/tcl8.6 > /opt/local/include > > Thanks in advance > Vasilis > > _______________________________________________ > Tkinter-discuss mailing list > Tkinter-discuss@python.org > https://mail.python.org/mailman/listinfo/tkinter-discuss > _______________________________________________ Tkinter-discuss mailing list Tkinter-discuss@python.org https://mail.python.org/mailman/listinfo/tkinter-discuss _______________________________________________ Tkinter-discuss mailing list Tkinter-discuss@python.org https://mail.python.org/mailman/listinfo/tkinter-discuss