[mkgmap-dev] How to solve/debug weird problem
From Johannes Formann johannes at formann.de on Sat Jan 22 14:21:47 GMT 2011
WanMil <wmgcnfg at web.de> wrote: > Am 22.01.2011 14:22, schrieb Johannes Formann: > > WanMil<wmgcnfg at web.de> wrote: > >>> The full output from the whole build process is copied to a logfile: > >>> http://pastebin.com/jUQpzvYz > > > >> --- > >> line 3800ff: [javac] > >> /home/osm/build/mkgmap/trunk/src/uk/me/parabola/imgfmt/app/Writeable.ja > >> va:5: warning: unmappable character for encoding ASCII > >> > >> You seem to compile with encoding ASCII. In case there are some non > >> ASCII characters in the code you will get problems. > > > > How shall I change that? setting the LC enviroment variables to something > > fitting? > > > >> --- > >> line 1101ff: [copy] trunk/.classpath added as trunk/.classpath doesn't > >> exist. > >> > >> There are hundres of such messages in the logfile. Some parts of the > >> build script seem not to work. Maybe this causes that not the latest > >> mkgmap version is used? > > > > I'm quite shure, this comes from copying betwen the persitent dir and > > the build dir (so it has only to update the sources, no full re download > > every time) > > > >> --- > >> line 1051ff: > >> There are several error message in the patching section. > >> #patch_patches: > >> #Skipped because property 'isWindows' not set. > >> #patch_patches: duration 0 seconds > >> > >> Are you sure that your patches are applied? > > > > Yes, the debug patch is applied the same way. > > > >> I haven't read most of your other emails where you checked Markos > >> proposals. So I don't know if you have tried to run a clean mkgmap build > >> downloaded from the mkgmap website using your splitted files and your > >> arguments. If you haven't done right now please do so and check if the > >> error still occurs. > > > > > > Here is a (I think) clean build): > > > > # delete everything related to mkgmap > > osm at kalium:~/build$ rm -r mkgmap* > > # do a checkout > > osm at kalium:~/build$ mkdir mkgmap > > osm at kalium:~/build$ cd mkgmap/ > > osm at kalium:~/build/mkgmap$ svn co http://svn.parabola.me.uk/mkgmap/trunk > > A trunk/test > > A trunk/test/uk > > A trunk/test/uk/me > > A trunk/test/uk/me/parabola > > A trunk/test/uk/me/parabola/imgfmt > > ... > > A trunk/Makefile > > U trunk > > Checked out revision 1792. > > > > # apply the debug patch > > cd trunk/src/ > > osm at kalium:~/build/mkgmap/trunk/src$ patch > > -p1</home/osm/radkarte/debug.patch patching file > > uk/me/parabola/imgfmt/app/trergn/Polyline.java > > > > # build > > osm at kalium:~/build/mkgmap/trunk/src$ cd .. > > osm at kalium:~/build/mkgmap/trunk$ ant dist > > Buildfile: build.xml > > > > prepare: > > [mkdir] Created dir: /home/osm/build/mkgmap/trunk/build/classes > > > > compile: > > [javac] Compiling 352 source files to > > /home/osm/build/mkgmap/trunk/build/classes > > [javac] > > /home/osm/build/mkgmap/trunk/src/uk/me/parabola/imgfmt/app/Writeable.jav > > a:5: warning: unmappable character for encoding ASCII > > [javac] * @author Thomas Lu??nig > > [javac] ^ > > [javac] ... > > [javac] Note: Some input files use unchecked or unsafe operations. > > [javac] Note: Recompile with -Xlint:unchecked for details. > > [javac] 26 warnings > > > > compile-pbf: > > [echo] Protobuf binary format support > > [javac] Compiling 3 source files to > > /home/osm/build/mkgmap/trunk/build/classes > > > > build: > > [copy] Copying 391 files to /home/osm/build/mkgmap/trunk/build/classes > > > > dist: > > [mkdir] Created dir: /home/osm/build/mkgmap/trunk/dist > > [mkdir] Created dir: /home/osm/build/mkgmap/trunk/dist/doc/api > > [jar] Building jar: /home/osm/build/mkgmap/trunk/dist/mkgmap.jar > > [copy] Copying 18 files to /home/osm/build/mkgmap/trunk/dist/doc > > [copy] Copying 4 files to /home/osm/build/mkgmap/trunk/dist > > [mkdir] Created dir: /home/osm/build/mkgmap/trunk/dist/examples > > [copy] Copying 11 files to /home/osm/build/mkgmap/trunk/dist/examples > > > > BUILD SUCCESSFUL > > Total time: 6 seconds > > > > # copy it > > osm at kalium:~/build/mkgmap/trunk$ cp dist/mkgmap.jar ../../ > > > > #run it > > osm at kalium:~/build/mkgmap/trunk$ cd ../../ > > osm at kalium:~/build$ java -Xms256m -Xmx2560m -ea -jar mkgmap.jar --max-jobs=1 > > --latin1 --code-page=1252 --add-pois-to-areas --adjust-turn-headings > > --drive-on-right --check-roundabouts --remove-short-arcs=3.3 --gmapsupp > > --tdbfile --index M0001736.TYP -c /home/osm/build/template.args ... > > at java.lang.Thread.run(Thread.java:662) > > Exiting - if you want to carry on regardless, use the --keep-going option > > > > > > Got exception. > > > > greetings > > > > Johannes > > > > 1. Is it correct that debug.patch is the patch posted by Steve (original > name allow-assert.patch)? Yes, it is. > 2. Do you use the Sun or OpenJDK? There have been several reports with > some obscure errors when using OpenJDK. sun jre. osm at kalium:~$ java -version java version "1.6.0_22" Java(TM) SE Runtime Environment (build 1.6.0_22-b04) Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03, mixed mode) > 3. The ASCII errors should not happen. I have run a build and did not > see any of those errors. But I don't know what to do... I'll try setting and exporting the enviroment, maybe javac is guessing from that. Or shall I try adding "-encoding UTF-8" as javac Argument in the mkgmap build.xml? greetings Johannes
- Previous message: [mkgmap-dev] How to solve/debug weird problem
- Next message: [mkgmap-dev] How to solve/debug weird problem
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the mkgmap-dev mailing list