build instructions and protobuf

I'm glad to see pbf support in mkgmap, but doing an svn checkout and 'ant dist' fails, or at least prints an error. The README does not explain where to find the apparently missing jar files, or how to check them out and build them. Ideally, it would look in the system standard paths, so that one could install the jar with a 3rd-party package manager, and also look in ../protobuf/dist/protobuf.jar so that a parallel build of the other packages would get picked up. I can write a patch for README if someone sends a few hints, or I may get to searching. (sorry if I missed a mailinglist post, but this belongs in the sources. also I didn't find anhything on the buidling page of the wiki)

El 19/10/10 00:40, Greg Troxel escribió:
I'm glad to see pbf support in mkgmap, but doing an svn checkout and 'ant dist' fails, or at least prints an error. The README does not explain where to find the apparently missing jar files, or how to check them out and build them.
Ideally, it would look in the system standard paths, so that one could install the jar with a 3rd-party package manager, and also look in ../protobuf/dist/protobuf.jar so that a parallel build of the other packages would get picked up.
I can write a patch for README if someone sends a few hints, or I may get to searching.
(sorry if I missed a mailinglist post, but this belongs in the sources. also I didn't find anhything on the buidling page of the wiki) I can tell you what I did in order to get mkgmap working with pbf files, but I'm getting strange routing results (see my next post), so I may have done something wrong: 1-Download osmosis 0.37 [1] and open it. Under lib/default/ you will find a lot of jar files, including the necessary ones to build mkgmap with pbf support. 2-Copy osmbin-xxx.jar to mkgmap/opt/jars/osmprotobuf/osmprotobuf.jar (*) 3-Copy protobuf-java-2.3.0.jar to mkgmap/opt/jars/protobuf-2.3.0/protobuf.jar (*) (*) according to mkgmap/external.properties both jar files are looked for under /opt/jars but I think it must be an error, so I edited it to point to (mkgmap/)opt/jars 4- ant dist
[1] http://dev.openstreetmap.org/~bretth/osmosis-build/osmosis-latest.tgz

Hi Sorry this is kind of replying to two people at once.. On 19/10/10 15:57, Carlos Dávila wrote:
El 19/10/10 00:40, Greg Troxel escribió:
I'm glad to see pbf support in mkgmap, but doing an svn checkout and 'ant dist' fails, or at least prints an error. The README does not
Could you send me any errors that you get. It should either find the jars and build in protobuf support, or not find them and omit the support.
explain where to find the apparently missing jar files, or how to check them out and build them.
Currently you have to get them from elsewhere, for example from osmosis, but I will probably have them checked into the mgkmap tree at some point or have the build file download them.
3-Copy protobuf-java-2.3.0.jar to mkgmap/opt/jars/protobuf-2.3.0/protobuf.jar (*) (*) according to mkgmap/external.properties both jar files are looked for under /opt/jars but I think it must be an error, so I edited it to point to (mkgmap/)opt/jars
Well I put them in /opt/jars/... you can put them wherever you like as long as you modify external.properties to match (or copy to local.properties and change there). In the future I expect that the libraries will be downloaded or checked into (mkgmap)/lib ..Steve

I had the same thing yesterday after of doing a checking out the lastest version, first one for about 2 weeks, the build failed because it could not find protobuf.jar On Wed, Oct 20, 2010 at 7:37 AM, Steve Ratcliffe <steve@parabola.me.uk> wrote:
Hi
Sorry this is kind of replying to two people at once..
On 19/10/10 15:57, Carlos Dávila wrote:
El 19/10/10 00:40, Greg Troxel escribió:
I'm glad to see pbf support in mkgmap, but doing an svn checkout and 'ant dist' fails, or at least prints an error. The README does not
Could you send me any errors that you get.
It should either find the jars and build in protobuf support, or not find them and omit the support.
explain where to find the apparently missing jar files, or how to check them out and build them.
Currently you have to get them from elsewhere, for example from osmosis, but I will probably have them checked into the mgkmap tree at some point or have the build file download them.
3-Copy protobuf-java-2.3.0.jar to mkgmap/opt/jars/protobuf-2.3.0/protobuf.jar (*) (*) according to mkgmap/external.properties both jar files are looked for under /opt/jars but I think it must be an error, so I edited it to point to (mkgmap/)opt/jars
Well I put them in /opt/jars/... you can put them wherever you like as long as you modify external.properties to match (or copy to local.properties and change there).
In the future I expect that the libraries will be downloaded or checked into (mkgmap)/lib
..Steve _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Hi Steve. that stooped the error but the jar file is still not built even though no errors: Buildfile: build.xml prepare: compile: compile-pbf: build: dist: [copy] Warning: Could not find file C:\opt\jars\osmprotobuf\osmprotobuf.jar to copy. [copy] Warning: Could not find file C:\opt\jars\protobuf-2.3.0\protobuf.jar to copy. [copy] Copying 10 files to C:\osm\mkgmap\dist\examples BUILD SUCCESSFUL Total time: 15 seconds On Wed, Oct 20, 2010 at 8:09 AM, Steve Ratcliffe <steve@parabola.me.uk> wrote:
On 19/10/10 21:50, Peter & Suzie wrote:
I had the same thing yesterday after of doing a checking out the lastest version, first one for about 2 weeks, the build failed because it could not find protobuf.jar
OK I see, I've committed a temporary fix for that.
..Steve _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

It worked after I did a clean first, it does now tell me "Invalid option: 'tdb-v4'" , has this been dropped? On Wed, Oct 20, 2010 at 7:43 PM, Peter & Suzie <pslowater@gmail.com> wrote:
Hi Steve. that stooped the error but the jar file is still not built even though no errors: Buildfile: build.xml
prepare:
compile:
compile-pbf:
build:
dist: [copy] Warning: Could not find file C:\opt\jars\osmprotobuf\osmprotobuf.jar to copy. [copy] Warning: Could not find file C:\opt\jars\protobuf-2.3.0\protobuf.jar to copy. [copy] Copying 10 files to C:\osm\mkgmap\dist\examples
BUILD SUCCESSFUL Total time: 15 seconds
On Wed, Oct 20, 2010 at 8:09 AM, Steve Ratcliffe <steve@parabola.me.uk> wrote:
On 19/10/10 21:50, Peter & Suzie wrote:
I had the same thing yesterday after of doing a checking out the lastest version, first one for about 2 weeks, the build failed because it could not find protobuf.jar
OK I see, I've committed a temporary fix for that.
..Steve _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

On 20/10/10 12:11, Peter & Suzie wrote:
It worked after I did a clean first, it does now tell me "Invalid option: 'tdb-v4'" , has this been dropped?
I don't think it ever existed - just now you get warnings for invalid options. version 4 is the default for tdbfile so no option is needed. ..Steve

I did have to use the option when I first started using it or the files generated crashed mapsource. Yes was only this latest build that the error started but I cannot see anything in the change logs, removng the option does fix it. On Wed, Oct 20, 2010 at 10:19 PM, Steve Ratcliffe <steve@parabola.me.uk> wrote:
On 20/10/10 12:11, Peter & Suzie wrote:
It worked after I did a clean first, it does now tell me "Invalid option: 'tdb-v4'" , has this been dropped?
I don't think it ever existed - just now you get warnings for invalid options.
version 4 is the default for tdbfile so no option is needed.
..Steve _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
participants (4)
-
Carlos Dávila
-
Greg Troxel
-
Peter & Suzie
-
Steve Ratcliffe