[PYTHON IMAGE-SIG] PyImagingCore - TkImaging.c
Sun, 27 Oct 1996 06:19:01 -0700 (MST)
> I have been trying to use the tkinter to display images however the
> correct method to install TkImaging.c to get PyImagingcore recognized
> as a valid Imaging format in Tk seems to be eluding me. Any help would be
> appreciated. My last attempt was to compile it with _tkinter in the
> modules directory of Python1.4b3. Tkappinit was modified and included with
> the above compile. Pilview and my own program both fail with
> PyImagingCore not found.
> I can provide dumps if required of the error messages if additional info
> required. This is with the newsest Imaging modules.
Well, it seems I have answered my own question at about three in the morning here. For Linux2.0.6 with Caldera Preview 2 on top of Redhat 3.0.3 the Setup file
# *** ALWAYS enable this line:
# *** Enable *one* of the following lines:
# For Solaris:
#_tkinter _tkinter.c -I/usr/openwin/include -I/usr/local/include -L/usr/openwin/lib -L/usr/local/lib -ltk4.1 -ltcl7.5 -lX11
# For generic system (may have to add -I/-L options to find X11):
_tkinter _tkinter.c tkappinit.c tkImaging.c -I../Extensions/Imaging/libImaging -I/usr/include/tcl -DWITH_APPINIT -L/usr/X11R6/lib -L/usr/lib -ltk4.0 -ltcl7.4 -lX11
This assumes that tkImaging.c has been copied to the Modules directory.
Also it should be complied as a module which is not the default in
Modules Setup file as you get a lot more debugging information if your
includes are wrong.
Some of the problems to avoid are:
By default the makes required by Makefile.pre.in are not done for
shared libraries. If you change Setup do not forget to do a make Makefiles
to create a new Makefile.
Hopefully this will help some one else.
IMAGE-SIG - SIG on Image Processing with Python
send messages to: firstname.lastname@example.org
administrivia to: email@example.com