From: Tony L. <to...@me...> - 2001-10-17 03:20:51
|
Hi Jim, I'm trying to link Python's Tk interface with the new Tk/Aqua stuff. I can get everything to compile and link, but I don't like how I have to do it. I'm hoping you have some suggestions. This is how the compile step looks when it works: cc -g -O3 -Wall -Wstrict-prototypes -no-cpp-precomp -fno-common -dynamic -I. -I../Include -DHAVE_CONFIG_H -DWITH_APPINIT -I/Library/Frameworks/Tcl.framework/Headers/ -I/Library/Frameworks/Tcl.framework/Versions/Current/PrivateHeaders/ -I/Library/Frameworks/Tk.framework/Headers/ -I/Library/Frameworks/Tk.framework/Versions/Current/PrivateHeaders/ -c ../Modules/_tkinter.c -o Modules/_tkinter.o The -I that reaches into the framework seems necessary because when I use a -framework option on the compile step the compiler can't find tclPlatDefs.h, included from tcl.h. Apparently the files in PrivateHeaders aren't being found. Also, to compile against the frameworks I have to change the _tkinter.c sources to #include <Tcl/tcl.h> and <Tk/tk.h>, which is OK but not ideal - do you know of any magic compiler options to avoid that? Finally, tk.h requires X11/{X,Xlib}.h, which is not included in the snapshot. That also isn't being found when I compile with -framework Tcl and -framework Tk. FYI, here is the linking command: cc -Wl,-F. -Wl,-flat_namespace,-U,_environ -bundle -framework Python Modules/_tkinter.o Modules/tkappinit.o -framework Tcl -framework Tk -o Modules/_tkinter.so Thanks, -Tony -- |