<p>The problem is that the path is quoted in one place (in tilesgen.pl) but not in another (<a href="http://tahconfig.pm">tahconfig.pm</a>). To use it with spaces, the code needs to be fixed in one of those places.<br><br>
If you specify it in tilesathome.conf without quotes as <br><font color="#999999">Inkscape=c:\Program Files\inkscape\inkscape<br></font>you'll need to change one line in <a href="http://tahconfig.pm">tahconfig.pm</a> from:
<br><font color="#999999">tahconfig.pm(line157): my $InkscapeV = `$Config->{Inkscape} --version`;<br></font><font color="#000000">to</font><font color="#999999"><br>tahconfig.pm(line157): my $InkscapeV = `"$Config->{Inkscape}" --version`;
</font><br><br>Cheers,<br>Bjorn<br></p><br><div><span class="gmail_quote">On 11/28/07, <b class="gmail_sendername">Milenko</b> <<a href="mailto:milenko@king-nerd.com">milenko@king-nerd.com</a>> wrote:</span><blockquote class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex">
My fix for all this was to change the entries in tilesathome.conf to their<br>8.3 counterparts. So c:\program files\inkscape\ becomes<br>c:\progra~1\inkscape\.<br><br>If there aren't any spaces in the directory structure, then you don't need
<br>any quotes so you could install the necessary programs into directories that<br>don't contain spaces as well.<br><br>-Jeremy<br><br><br>----- Original Message -----<br>From: "Rob Reid" <<a href="mailto:rob@robreid.co.nz">
rob@robreid.co.nz</a>><br>To: <<a href="mailto:tilesathome@openstreetmap.org">tilesathome@openstreetmap.org</a>><br>Sent: Wednesday, November 28, 2007 6:49 PM<br>Subject: [Tilesathome] Possible inconsistency in handling of double quotes
<br>in tilesAtHome.conf on windows.<br><br><br>> When recently installing tiles@home on Win XP, I encountered the<br>> following problem with the handling of double quotes on the Inkscape<br>> configuration setting in
tilesATHome.conf.<br>><br>> My Inkscape install is located in C:\Program Files\Inkscape\.<br>><br>> From what I can work out with my non existent perl skills is that the<br>> 'Inkscape=' conf setting is referenced twice.
<br>><br>> - Firstly in <a href="http://tahconfig.pm">tahconfig.pm</a> where its making sure Inkscape is available<br>> and outputing the version info:<br>><br>> tahconfig.pm(154): my $InkscapeV = `$Config->{Inkscape} --version`;
<br>><br>> In this case if your Inkscape path contains spaces you need to use<br>> double quotes in the conf setting (e.g Inkscape="C:\Program<br>> Files\Inkscape\inkscape.exe"). If you don't you get the error message
<br>><br>> 'C:\Program' is not recognized as an internal or external<br>> command,operable program or batch file.<br>> Can't find inkscape (using "C:\Program Files\Inkscape\inkscape.exe")
<br>><br>> - Secondly in tilesGen.pl where it constructs the command line to call<br>> Inkscape to do it's thing:<br>><br>> tilesGen.pl(1201): $Config{Inkscape},<br>><br>> In this case you can't use double quotes in the conf setting (
e.g<br>> Inkscape=C:\Program Files\Inkscape\inkscape.exe) or you get the<br>> following error<br>><br>> The following command produced an error message:<br>> ""C:\Program Files\Inkscape\inkscape.exe"" -z -w 256 -h 256
<br>> --export-area=0.000000:0.000000:878.9<br>> 10000:874.412471<br>> --export-png="C:\tiles_at_home\temp\2772\2772_part-rHMP44.png"<br>> "C:\tiles_at_home\te<br>> mp\output-2772-z12.svg
" > C:\tiles_at_home\temp\2772-cSW3RD.stdout<br>> Debug output follows:<br>> | '""C:\Program' is not recognized as an internal or external<br>> command,<br>> | operable program or batch file.
<br>><br>> My quick dirty work around to get myself rendering was to create a 2nd<br>> Inkscape entry in the conf file (eg Inkscape1), have one with double<br>> quotes and one without and reference them where required.
<br>><br>> I'm afraid my perl skills are not up to fixing this.<br>><br>> In terms of the other conf settings that contain paths under windows,<br>> what's working for me is no double quotes on the working dir and double
<br>> quotes on everything else but not all my paths have spaces in them so<br>> have not tested all possibilities. I can do if someone wants me to.<br>><br>> Sorry if I'm posting to the wrong place, was not sure if I should be
<br>> going to trac somewhere or the Usability Reports page in the wiki. Let<br>> me know and I will cross-post if required.<br>><br>> Cheers<br>> rcr<br>><br>><br>><br>> _______________________________________________
<br>> Tilesathome mailing list<br>> <a href="mailto:Tilesathome@openstreetmap.org">Tilesathome@openstreetmap.org</a><br>> <a href="http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/tilesathome">http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/tilesathome
</a><br>><br>><br>> --<br>> No virus found in this incoming message.<br>> Checked by AVG Free Edition.<br>> Version: 7.5.503 / Virus Database: 269.16.9/1157 - Release Date:<br>> 11/28/2007 12:29 PM<br>
><br>><br><br><br><br>_______________________________________________<br>Tilesathome mailing list<br><a href="mailto:Tilesathome@openstreetmap.org">Tilesathome@openstreetmap.org</a><br><a href="http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/tilesathome">
http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/tilesathome</a><br></blockquote></div><br>