Re: [Inkscape-devel] Can't get the SWF output working anymore

On Thu, 2008-06-05 at 11:05 +0300, Juho Viitasalo wrote:
I can't find any extension-errors.log. I'm using windows xp and I have Inkscape 0.46 that I normally downloaded from Inkscape.org. Is there some kind of developer version with errorlogs?
No, the normal version writes out this file, but Windows puts things in funny places. Someone else on the -devel list may be able to help out here.
Saving as PDF works great. Also pdf2swf.cmd works great with drag'n'drop and with command line. So the problems seems to be why pdf2swf.exe isn't receiving the pdf file.
This is probably something to do with how the command line is handled. It's be nice to see what is actually being called. Does someone know ho to do "strace" on Windows?
--Ted

-----Original Message----- From: inkscape-devel-bounces@lists.sourceforge.net [mailto:inkscape-devel-bounces@lists.sourceforge.net] On Behalf Of Ted Gould Sent: vrijdag 6 juni 2008 18:15 To: Juho Viitasalo Cc: Inkscape Devel List Subject: Re: [Inkscape-devel] Can't get the SWF output working anymore
On Thu, 2008-06-05 at 11:05 +0300, Juho Viitasalo wrote:
I can't find any extension-errors.log. I'm using windows xp
and I have
Inkscape 0.46 that I normally downloaded from Inkscape.org.
Is there some kind of developer version with errorlogs?
No, the normal version writes out this file, but Windows puts things in funny places. Someone else on the -devel list may be able to help out here.
Inkscape puts its files in the usual Application Data dir in Windows, for me for example: C:\Documents and Settings\Johan\Application Data\Inkscape
Saving as PDF works great. Also pdf2swf.cmd works great with drag'n'drop and with command line. So the problems seems to
be why pdf2swf.exe isn't receiving the pdf file.
This is probably something to do with how the command line is handled. It's be nice to see what is actually being called. Does someone know ho to do "strace" on Windows?
Maybe you can try using profiling? I think it gives a call trace as well, but not sure. http://wiki.inkscape.org/wiki/index.php/Profiling (This also works on windows)
Cheers, Johan

This is probably something to do with how the command line is handled. It's be nice to see what is actually being called. Does someone know ho to do "strace" on Windows?
AFAIK, this should be possible with process monitor from the sysinternals
tools[1]...
/Simon
[1] http://technet.microsoft.com/en-us/sysinternals/0e18b180-9b7a-4c49-8120-c47c...

Quoting Ted Gould <ted@...11...>:
I can't find any extension-errors.log.
check the directory : C:\Documents and Settings\user name\Application Data\Inkscape
------[ This message was sent using Vaxxine Webmail ]------ www.vaxxine.com - Niagara's Premier Internet Service Provider

Ok. I found the extension-errors.log, but it doesn't mention pdf or swf extensions.
I'll try that Sysinternals tool. Thanks.
Extension-errors.log --------------------------------------------------------------------------- Extension "AI 8.0 Output" failed to load because a dependency was not met. Dependency: type: executable location: path string: gs
Extension "Corel DRAW Input" failed to load because a dependency was not met. Dependency: type: executable location: path string: uniconv
Extension "Dia Input" failed to load because a dependency was not met. Dependency: type: executable location: path string: dia description: In order to import Dia files, Dia itself must be installed. You can get Dia at http://live.gnome.org/Dia
Extension "DXF Input" failed to load because a dependency was not met. Dependency: type: executable location: path string: dxf2svg description: dxf2svg may come with Inkscape, but is also at http://dxf-svg-convert.sourceforge.net/
Extension "XFIG Input" failed to load because a dependency was not met. Dependency: type: executable location: path string: fig2dev
Extension "GIMP XCF" failed to load because a dependency was not met. Dependency: type: executable location: path string: gimp
Extension "Random Point" failed to load because a dependency was not met. Dependency: type: plugin location: path string: randompnt
Extension "Random Position" failed to load because a dependency was not met. Dependency: type: plugin location: path string: randompos
Extension "Sketch Input" failed to load because a dependency was not met. Dependency: type: executable location: path string: skconvert
Extension "Windows Metafile Input" failed to load because a dependency was not met. Dependency: type: executable location: path string: uniconv

SysInternals did the trick.
Inkscape converts swf files in temp directory. For example: E:\Documents and Settings\Juho\Local Settings\Temp\ink_ext_XXXXXXKR52BU.swf
But it won't save this file to desktop with the name I give it in saving dialog. Inkscape creates new empty file with that name and puts it to desktop.
pdf2swf is called like this: pdf2swf.exe E:\DOCUME~1\Juho\LOCALS~1\Temp\ink_ext_XXXXXXKR52BU "E:\DOCUME~1\Juho\LOCALS~1\Temp\ink_ext_XXXXXXKR52BU.swf"
When the command I use is this: pdf2swf.exe %1 "%~dp1%~n1.swf"
Temporary file name is passed to this command like this, I think. gspawn-win32-helper.exe 19 20 z 14 17 "E:\Program Files\Inkscape" y y - "E:\Program Files\Inkscape\share\extensions\pdf2swf.cmd" E:\DOCUME~1\Juho\LOCALS~1\Temp\ink_ext_XXXXXXKR52BU
How could I pass the save dialog name to second argument?
gspawn-win32-helper.exe ... - "E:\Program Files\Inkscape\share\extensions\pdf2swf.cmd" E:\DOCUME~1\Juho\LOCALS~1\Temp\ink_ext_XXXXXXKR52BU <SAVE DIALOG NAME>
-Juho-
Juho Viitasalo kirjoitti:
Ok. I found the extension-errors.log, but it doesn't mention pdf or swf extensions.
I'll try that Sysinternals tool. Thanks.

On Sat, 2008-06-07 at 10:19 +0300, Juho Viitasalo wrote:
Inkscape converts swf files in temp directory. For example: E:\Documents and Settings\Juho\Local Settings\Temp\ink_ext_XXXXXXKR52BU.swf
But it won't save this file to desktop with the name I give it in saving dialog. Inkscape creates new empty file with that name and puts it to desktop.
The way that this is supposed to work is that the utility should output the final file to STDOUT and then Inkscape will put it in a file. This is done so that Inkscape can handle more file destinations than the local filesystem.
I don't know DOS, but the script should look roughly like this:
$ docommand <file passed in> localtemp $ cat localtemp $ rm localtemp
There is probably a problem in the .cmd file you have in that it doesn't do those last two steps.
--Ted
participants (5)
-
unknown@example.com
-
Alvin Penner
-
Juho Viitasalo
-
Simon Dahlbacka
-
Ted Gould