Ed Gatzke <[EMAIL PROTECTED]> writes:

> > Are you using a native windows version of LyX? Are you using cygwin tools?
> > Specifically, is your imagemagick a cygwin version?
> 
> I am using the new 1.4.2 version on Windows.  I am not sure how they compiled
> it, but I assume they used cygwin.  

No, that is a native version.

> I am running lyx.exe from a cygwin shell (which has tgif in the path).  

But you don't have tgif in the windows system PATH, right?

> Same error occurs if I use the desktop shortcut, but I don't get the error
> message in the terminal:
> 
> convert.exe: unable to open image `tgif:c:/gatzke/test.obj': Invalid argument.
> convert.exe: missing an image filename `ppm:c:/Documents and
> Settings/gatzke/Local Settings/Temp/lyx_tmpdir2752a01764/test2752a01764.ppm'.
> c:/Program Files/LyX142/Resources/scripts/convertDefault.sh ERROR
> Execution of "convert" failed.

This happens because you should have tgif in the PATH when you reconfigure
LyX. Try adding the path to tgif in "PATH prefix" under
Tools->Preferences->Paths and then reconfigure (I am not sure if you need
to restart LyX or if the change to PATH prefix takes effect immediately).

> So it looks like it is calling the convertDefaul.sh in the new Lyx 1.4.2
> /Resources/scripts directory.  That convert script appears to just call
> convert.exe, not tgif.
> 
> tgif itself generates ppm etc called from my command line just fine.  tgif is
> never getting called.

It works perfectly for me. I can include .obj files in the graphics inset
and they get displayed in LyX. Remember to start the X server as tgif needs
it even for simply converting .obj files to other formats.

If tgif is in your PATH, after reconfiguring you should see converters
from TGIF to EPS, PPM, PNG and PDF in Preferences->Coverters.

-- 
Enrico


Reply via email to