[Xcircuit-dev] Something must be missing

Philip silvermaple at usermail.com
Sun Jul 16 22:02:33 PDT 2006


For the sake of the archive and those lurking, here is the solution to
my problem...

> I decided to try to complile XCircuit on Debian i386 testing.

The packages I had to install were, tcl8.4-dev, tc8.4-dev, and I had
to tell make where to find tclConfig.sh.

"$ ./configure --with-tcl=/usr/lib/tcl8.4"

> I typed "xcircuit" and after a moment a shell opened. The label in
> the window menu bar is "tkcon 2.3" and in the console it says:
> 
> error in slave eval:
> image type "xpm" doesn't exist
> Main console display active (Tcl8.4.12 / Tk8.4.12)
> (user) 3 % 
> 
>  - but there is no xcircuit!!
> 
> Did I miss something? Or skip a step? 

Tim emailed me directly and with his info I got it working. It seem
that there were some xpm calls where it should have been gif.

~~~~~~~~~~~~~~~~~~~
Editing the file:

   /usr/local/lib/xcircuit-3.6/wrapper.tcl

 * changing line 1528 from:
    image create xpm img_${bname} -file ${XCIRCUIT_LIB_DIR}/pixmaps/${bname}.xpm
        to:
    image create photo img_${bname} -file ${XCIRCUIT_LIB_DIR}/pixmaps/${bname}.gif


 * around line 1760, there are 3 instances where "image create xpm"
should be replaced with the corresponding "image create photo" line.
There's really no need for the XPM code at all in the Tcl/Tk
version...


That will make use of the GIF format files instead of the XPM files,
and xcircuit should just come up and run.

~~~~~~~~~~~~~~

And it works!! Thanks again to Tim for his most excellent program!

--   Philip




More information about the Xcircuit-dev mailing list