
bulia byak wrote:
Our efforts to make Inkscape's Windows port not output errors on the console have been way too successful. Now it never ouputs ANYTHING to the console, ever. Not even if I redirect it to file (> file).
Sounds like bug #1282541 - Windows: commandline args don't display anything http://sourceforge.net/tracker/index.php?func=detail&aid=1282541&gro...
Windows command prompt doesn't bind stdin/stdout of gui application to anything useful, doesn't wait for them to terminate and thus cannot show you any output from them (unless you use redirects or pipes. strange that that didn't work for you).
Now, however, I have a project that critically depends on querying SVG files with Inkscape using --query* command line options. Worst of all, this must run on Windows.
So my question is, is there any simple fix I can do to make this work (I don't mind to run a custom version of Inkscape for this project)?
You can make a custom version which is a console application instead of a gui application by simply changing -mwindows into -mconsole in Makefile.mingw.common. But since Inkscape really is a gui application you will now have to explicitly link some libraries, -lgdi32 and -lcomdlg32 seems to do it for me.