Re: [mkgmap-dev] splitter build fails on mac

2009-08-08 Thread Chris Miller
> On Thu, Aug 6, 2009 at 6:26 PM, Greg Troxel wrote:
> 
>> Another mystery - after 'ant' I don't find dist/splitter.jar.  Do I
>> need to do something special to get a jar file?  The mkgmap ant build
>> seems to create this automatically.
>> 
> Try "ant dist". "dist" is the default for mkgmap, but not for
> splitter. (The default for splitter is just "build".)

This is now fixed, dist is the default.



___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


Re: [mkgmap-dev] splitter build fails on mac

2009-08-06 Thread Chris Miller
Sounds like I should change the splitter build.xml so it does a dist by default 
too, to bring it in line with mkgmap. If anyone has an objection please shout, 
otherwise I'll make the change in a day or two.


> On Thu, Aug 6, 2009 at 6:26 PM, Greg Troxel wrote:
> 
>> Another mystery - after 'ant' I don't find dist/splitter.jar.  Do I
>> need to do something special to get a jar file?  The mkgmap ant build
>> seems to create this automatically.
>> 
> Try "ant dist". "dist" is the default for mkgmap, but not for
> splitter. (The default for splitter is just "build".)
> 



___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


Re: [mkgmap-dev] splitter build fails on mac

2009-08-06 Thread Clinton Gladstone
On Thu, Aug 6, 2009 at 6:26 PM, Greg Troxel wrote:
>
> Another mystery - after 'ant' I don't find dist/splitter.jar.  Do I need
> to do something special to get a jar file?  The mkgmap ant build seems
> to create this automatically.

Try "ant dist". "dist" is the default for mkgmap, but not for
splitter. (The default for splitter is just "build".)
___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


Re: [mkgmap-dev] splitter build fails on mac

2009-08-06 Thread Greg Troxel

Clinton Gladstone  writes:

>> I am trying to build the splitter on a mac (10.5.7 with java 1.6.0_13,
>> 64-bit server VM), and failing.  I have successfully built mkgmap and
>> run it, so my java setup is mostly ok.
>
> I regularly build splitter in a similar environment to yours. I have
> to be very careful to make sure that I use the 1.6 Java compiler (not
> just the JRE) when I do this. If you have just adjusted the symbolic
> link to java 1.6, this will not be sufficient to compile with 1.6
>
> I don't have my Mac in front of me right now, but I believe I set the
> JAVA_ROOT (or similar) environment variable to the 1.6 framework.

Thanks -- that was the problem.

I have installed the 1.6 JDK, and used "Java Preferences" to set it as
the default.  "java -version" and "javac -version" both report 1.6.
But, ant searches for various java implementations and finds first or
prefers the 1.5.  After setting JAVA_HOME I can run ant successfully on
splitter.  I have a patch to mkgmap/doc/README.java to explain this.
While it's perhaps overly tutorial, it's probably helpful to new people
who are only running java because of OSM.

Another mystery - after 'ant' I don't find dist/splitter.jar.  Do I need
to do something special to get a jar file?  The mkgmap ant build seems
to create this automatically.


pgpisxRM5bQbC.pgp
Description: PGP signature
___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Re: [mkgmap-dev] splitter build fails on mac

2009-08-05 Thread Thilo Hannemann
There is an application called "Java-Einstellungen" (probably "Java- 
Setup" in English) that is part of MacOS 10.5 (or the Xcode tools,  
don't know). I just changed the setting there and everything worked  
fine. No need to fiddle with frameworks and environment variables.

Regards
Thilo

Am 05.08.2009 um 11:06 schrieb Clinton Gladstone:

> On Wed, Aug 5, 2009 at 2:24 AM, Greg Troxel wrote:
>>
>> (This is also splitter-dev I think.)
>>
>> I am trying to build the splitter on a mac (10.5.7 with java  
>> 1.6.0_13,
>> 64-bit server VM), and failing.  I have successfully built mkgmap and
>> run it, so my java setup is mostly ok.
>
> I regularly build splitter in a similar environment to yours. I have
> to be very careful to make sure that I use the 1.6 Java compiler (not
> just the JRE) when I do this. If you have just adjusted the symbolic
> link to java 1.6, this will not be sufficient to compile with 1.6
>
> I don't have my Mac in front of me right now, but I believe I set the
> JAVA_ROOT (or similar) environment variable to the 1.6 framework.
>
> As Chris also mentioned, I'm almost certain that you're compiling  
> with 1.5.
>
> Cheers.
> ___
> mkgmap-dev mailing list
> mkgmap-dev@lists.mkgmap.org.uk
> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


Re: [mkgmap-dev] splitter build fails on mac

2009-08-05 Thread Clinton Gladstone
On Wed, Aug 5, 2009 at 2:24 AM, Greg Troxel wrote:
>
> (This is also splitter-dev I think.)
>
> I am trying to build the splitter on a mac (10.5.7 with java 1.6.0_13,
> 64-bit server VM), and failing.  I have successfully built mkgmap and
> run it, so my java setup is mostly ok.

I regularly build splitter in a similar environment to yours. I have
to be very careful to make sure that I use the 1.6 Java compiler (not
just the JRE) when I do this. If you have just adjusted the symbolic
link to java 1.6, this will not be sufficient to compile with 1.6

I don't have my Mac in front of me right now, but I believe I set the
JAVA_ROOT (or similar) environment variable to the 1.6 framework.

As Chris also mentioned, I'm almost certain that you're compiling with 1.5.

Cheers.
___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


Re: [mkgmap-dev] splitter build fails on mac

2009-08-04 Thread Chris Miller
Locale.ROOT is new in JDK 1.6. Are you absolutely sure you're using Java 
1.6 to compile?

> --=-=-=
> 
> (This is also splitter-dev I think.)
> 
> I am trying to build the splitter on a mac (10.5.7 with java 1.6.0_13,
> 64-bit server VM), and failing.  I have successfully built mkgmap and
> run it, so my java setup is mostly ok.
> 
> Buildfile: build.xml
> 
> prepare:
> 
> compile:
> [javac] Compiling 17 source files to
> /Users/gdt/SOFTWARE/OPENSTREETMAP/splitter/build/classes
> [javac]
> /Users/gdt/SOFTWARE/OPENSTREETMAP/splitter/src/uk/me/parabola/splitter
> /AreaList.java:73: cannot find symbol
> [javac] symbol  : variable ROOT
> [javac] location: class java.util.Locale
> [javac]   pw.format(Locale.ROOT, "%d: %d,%d to 
> %d,%d\n",



___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


[mkgmap-dev] splitter build fails on mac

2009-08-04 Thread Greg Troxel

(This is also splitter-dev I think.)

I am trying to build the splitter on a mac (10.5.7 with java 1.6.0_13,
64-bit server VM), and failing.  I have successfully built mkgmap and
run it, so my java setup is mostly ok.





Buildfile: build.xml

prepare:

compile:
[javac] Compiling 17 source files to 
/Users/gdt/SOFTWARE/OPENSTREETMAP/splitter/build/classes
[javac] 
/Users/gdt/SOFTWARE/OPENSTREETMAP/splitter/src/uk/me/parabola/splitter/AreaList.java:73:
 cannot find symbol
[javac] symbol  : variable ROOT
[javac] location: class java.util.Locale
[javac] pw.format(Locale.ROOT, "%d: %d,%d to 
%d,%d\n",
[javac] ^
[javac] 
/Users/gdt/SOFTWARE/OPENSTREETMAP/splitter/src/uk/me/parabola/splitter/AreaList.java:77:
 cannot find symbol
[javac] symbol  : variable ROOT
[javac] location: class java.util.Locale
[javac] pw.format(Locale.ROOT, "#   : %f,%f 
to %f,%f\n",
[javac] ^
[javac] 
/Users/gdt/SOFTWARE/OPENSTREETMAP/splitter/src/uk/me/parabola/splitter/AreaList.java:110:
 cannot find symbol
[javac] symbol  : method isEmpty()
[javac] location: class java.lang.String
[javac] if (line.isEmpty() || line.charAt(0) == 
'#')
[javac] ^
[javac] 
/Users/gdt/SOFTWARE/OPENSTREETMAP/splitter/src/uk/me/parabola/splitter/SubArea.java:93:
 cannot find symbol
[javac] symbol  : variable ROOT
[javac] location: class java.util.Locale
[javac] String filename = new Formatter().format(Locale.ROOT, 
"%08d.osm.gz", mapid).toString();
[javac]^
[javac] 4 errors

BUILD FAILED
/Users/gdt/SOFTWARE/OPENSTREETMAP/splitter/build.xml:49: Compile failed; see 
the compiler error output for details.

Total time: 0 seconds


pgpJz8XCfbVoS.pgp
Description: PGP signature
___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev