Re: Detecting tk/tcl include library path
E <[email protected]> Tue, 15 Oct 2019 14:52:32 -0300
| Newsgroups | gmane.comp.python.tkinter |
|---|---|
| Message-ID | <[email protected]> |
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 > [email protected] > https://mail.python.org/mailman/listinfo/tkinter-discuss >