Sketch build/install problem

Bernhard Herzog bh at intevation.de
Thu Aug 16 15:35:51 EDT 2001


grante at visi.com (Grant Edwards) writes:

> I joined the sketch mailing list yesterday and sent this -- but
> haven't seen anything from the mailing list other than the
> request for a subcribe confirmation.  
> 
> Since the sketch mailing seems to be incommunicado, I thought
> maybe somebody here might have an idea...

Well, today (16th) at least the mailing list worked.

> I just upgraded sketch to 1.6.12 (1.6.8 had been working but I

I think you mean 0.6.x, unless you've borrowed Guido's time machine :)

> broke it when I upgraded Python to 2.1).

Yes, Sketch 0.6.8 doesn't work with Python 2.1

> The configure/build/install worked without a problem, but when
> try to run sketch I get an undefined symblol error:
[...]
>    ImportError: /usr/local/bin/../lib/sketch-0.6.12/Sketch/../Lib/paxtkinter.so: undefined symbol: XDestroyWindow
[...] 
> But, paxtkinter.so doesn't pull in libX11.so.  
> 
> Any ideas what I did wrong?

It's probably a bug in Sketch's setup.py. I modified it to work with
Python 2.1 and it may well be that it doesn't work correctly on your
platform. 

In fact, looking at setup.py, I wonder why it works for me.
paxtkinter.so doesn't get linked with libX11.so even on my system, but
ldd and import find it just fine.

Here's a patch:

*** setup.py.~9~	Thu Jul  5 15:02:25 2001
--- setup.py	Thu Aug 16 21:29:09 2001
***************
*** 315,320 ****
--- 315,323 ----
          config.inc_dirs.append('-I/usr/X11/include')
          config.lib_dirs.append('-L/usr/X11/lib')
  
+     # Finally, link with the X11 libraries
+     config.libraries.append('-lX11')
+ 
  
  def configure(dirs, flags, setup):
      if not flags['sketch'].has_key('imaging-include'):



Bernhard

-- 
Intevation GmbH                                 http://intevation.de/
Sketch                                 http://sketch.sourceforge.net/
MapIt!                                               http://mapit.de/



More information about the Python-list mailing list