Hi Felix,

no idea why display tool has a problem with a gmapsupp that was created by 
mkgmap. Please post a link to a small one that shows this problem. Or does it 
only happen with very large files?

The name "T3 pth" should not appear in Mdr 7 if both t3 and pth are given in 
--mdr7-del. In my test that worked well.
If the string "T3 pth" appears in Mdr 15 you have a POI with that name.

Gerd

________________________________________
Von: mkgmap-dev <mkgmap-dev-boun...@lists.mkgmap.org.uk> im Auftrag von Felix 
Hartmann <extremecar...@gmail.com>
Gesendet: Freitag, 3. Dezember 2021 16:58
An: Development list for mkgmap
Betreff: Re: [mkgmap-dev] Building display.jar fails

Hi Gerd,
gmapsupp.img created by Mapsource or my MapInstall work fine - those created by 
mkgmap (on my server) do not work - even though address search on device works 
the same (or at least mostly the same - didn*t find a difference).

But yeah I found out my list was more or less complete - just the problem that 
they are not removed if it is only called say "T3 pth".
Another improvement - it would be great if the display tool could say file does 
not exist vs could not open file. Right now the message is always could not 
open file.

On Thu, 2 Dec 2021 at 20:41, Gerd Petermann 
<gpetermann_muenc...@hotmail.com<mailto:gpetermann_muenc...@hotmail.com>> wrote:
Hi Felix,

the message "Could not open file: gmapsupp.img" comes from display tool, so at 
least the program was started.
MdrDisplay tries to open the MDR sub file in the gmapsupp. If that fails you 
may not have such a file in your gmapsupp.img (no index) or the file itself is 
corrupted or doesn't exist in the directory where you executed the command.

My understanding is that you want to print the string table (Mdr 15), this 
doesn't exist in the gmapsupp, only in the *mdr.img for the PC.

I think you have to use parameter --print=15 for this section, it is ommitted 
by default.

Gerd

________________________________________
Von: mkgmap-dev 
<mkgmap-dev-boun...@lists.mkgmap.org.uk<mailto:mkgmap-dev-boun...@lists.mkgmap.org.uk>>
 im Auftrag von Felix Hartmann 
<extremecar...@gmail.com<mailto:extremecar...@gmail.com>>
Gesendet: Donnerstag, 2. Dezember 2021 19:44
An: Development list for mkgmap
Betreff: Re: [mkgmap-dev] Building display.jar fails

thanks - but I still seem to be unable  - I copied your command and changed the 
pathes.:

C:\openmtbmap>java -ea -Xmx6800m -cp display.jar;mkgmap.jar 
test.display.MdrDisplay gmapsupp.img
Could not open file: gmapsupp.img

other tries:

C:\openmtbmap>java -ea -jar -Xmx6800m -cp display.jar;mkgmap.jar gmapsupp.img
Error: Invalid or corrupt jarfile gmapsupp.img

C:\openmtbmap>java -ea -Xmx6800m -cp display.jar;mkgmap.jar gmapsupp.img
Error: Could not find or load main class gmapsupp.img
Caused by: java.lang.ClassNotFoundException: gmapsupp.img

On Thu, 2 Dec 2021 at 17:50, Gerd Petermann 
<gpetermann_muenc...@hotmail.com<mailto:gpetermann_muenc...@hotmail.com><mailto:gpetermann_muenc...@hotmail.com<mailto:gpetermann_muenc...@hotmail.com>>>
 wrote:
Hi Felix,

display tool always needs mkgmap.jar for execution:
my command line looks like this:
java -ea  -Xmx6800m -cp d:\display\dist\display.jar;d:\mkgmap\dist\mkgmap.jar 
test.display.MdrDisplay gmapsupp.img

Gerd

________________________________________
Von: mkgmap-dev 
<mkgmap-dev-boun...@lists.mkgmap.org.uk<mailto:mkgmap-dev-boun...@lists.mkgmap.org.uk><mailto:mkgmap-dev-boun...@lists.mkgmap.org.uk<mailto:mkgmap-dev-boun...@lists.mkgmap.org.uk>>>
 im Auftrag von Felix Hartmann 
<extremecar...@gmail.com<mailto:extremecar...@gmail.com><mailto:extremecar...@gmail.com<mailto:extremecar...@gmail.com>>>
Gesendet: Donnerstag, 2. Dezember 2021 17:46
An: Development list for mkgmap
Betreff: Re: [mkgmap-dev] Building display.jar fails

still the same problem if I don't link the build folder of mkgmap_trunk but 
instead the mkgmap.jar in the basefolder:

C:\openmtbmap\mkgmap_display>ant dist
Buildfile: C:\openmtbmap\mkgmap_display\build.xml

prepare:
    [mkdir] Created dir: C:\openmtbmap\mkgmap_display\build\classes

ivy-availability:

download-ivy:

init-ivy:
[ivy:configure] :: Apache Ivy 2.5.0 - 20191020104435 :: 
https://ant.apache.org/ivy/ ::
[ivy:configure] :: loading settings :: file = 
C:\openmtbmap\mkgmap_display\ivysettings.xml

resolve-compile:

compile:
    [javac] Compiling 76 source files to 
C:\openmtbmap\mkgmap_display\build\classes
    [javac] C:\openmtbmap\mkgmap_display\src\test\check\CommonCheck.java:141: 
warning: [deprecation] newInstance() in Class has been deprecated
    [javac]                             CommonCheck check = cls.newInstance();
    [javac]                                                    ^
    [javac]   where T is a type-variable:
    [javac]     T extends Object declared in class Class
    [javac] C:\openmtbmap\mkgmap_display\src\test\display\SrtDisplay.java:470: 
warning: [rawtypes] found raw type: Comparable
    [javac]     private class CharPosition implements Comparable {
    [javac]                                           ^
    [javac]   missing type arguments for generic class Comparable<T>
    [javac]   where T is a type-variable:
    [javac]     T extends Object declared in interface Comparable
    [javac] C:\openmtbmap\mkgmap_display\src\test\display\SrtDisplay.java:502: 
warning: [removal] Integer(int) in Integer has been deprecated and marked for 
removal
    [javac]                             return new 
Integer(val).compareTo(c2.val);
    [javac]                                    ^
    [javac] 3 warnings

build:

dist:
      [jar] Building jar: C:\openmtbmap\mkgmap_display\dist\display.jar

BUILD SUCCESSFUL
Total time: 6 seconds

it compiles but then on use it complains:

C:\openmtbmap\mkgmap_display>start /normal /b /wait java -jar 
C:\openmtbmap\display.jar c:\openmtbmap\gmapsupp.img
no main manifest attribute, in C:\openmtbmap\display.jar

On Thu, 2 Dec 2021 at 17:33, Gerd Petermann 
<gpetermann_muenc...@hotmail.com<mailto:gpetermann_muenc...@hotmail.com><mailto:gpetermann_muenc...@hotmail.com<mailto:gpetermann_muenc...@hotmail.com>><mailto:gpetermann_muenc...@hotmail.com<mailto:gpetermann_muenc...@hotmail.com><mailto:gpetermann_muenc...@hotmail.com<mailto:gpetermann_muenc...@hotmail.com>>>>
 wrote:
Hi Felix,

please try
ant clean dist > log
and post a link to the file log

I did this:
checkout: svn co https://svn.mkgmap.org.uk/mkgmap/display/trunk display
copy mkgmap.jar into display\lib\compile
execute ant dist
Compile works with one warning.
ant -version says
Apache Ant(TM) version 1.10.8 compiled on May 10 2020
javac -versio says
javac 1.8.0_272

Gerd

________________________________________
Von: mkgmap-dev 
<mkgmap-dev-boun...@lists.mkgmap.org.uk<mailto:mkgmap-dev-boun...@lists.mkgmap.org.uk><mailto:mkgmap-dev-boun...@lists.mkgmap.org.uk<mailto:mkgmap-dev-boun...@lists.mkgmap.org.uk>><mailto:mkgmap-dev-boun...@lists.mkgmap.org.uk<mailto:mkgmap-dev-boun...@lists.mkgmap.org.uk><mailto:mkgmap-dev-boun...@lists.mkgmap.org.uk<mailto:mkgmap-dev-boun...@lists.mkgmap.org.uk>>>>
 im Auftrag von Felix Hartmann 
<extremecar...@gmail.com<mailto:extremecar...@gmail.com><mailto:extremecar...@gmail.com<mailto:extremecar...@gmail.com>><mailto:extremecar...@gmail.com<mailto:extremecar...@gmail.com><mailto:extremecar...@gmail.com<mailto:extremecar...@gmail.com>>>>
Gesendet: Donnerstag, 2. Dezember 2021 17:26
An: Development list for mkgmap
Betreff: Re: [mkgmap-dev] Building display.jar fails

then it does not find anything anymore.

like this:

ompile:
    [javac] Compiling 589 source files to 
C:\openmtbmap\mkgmap_display\build\classes
    [javac] 
C:\openmtbmap\mkgmap_display\src\uk\me\parabola\imgfmt\app\Coord.java:23: 
error: package it.unimi.dsi.fastutil.longs does not exist
    [javac] import it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap;
    [javac]                                   ^
    [javac] 
C:\openmtbmap\mkgmap_display\src\uk\me\parabola\imgfmt\app\Coord.java:124: 
error: cannot find symbol
    [javac]     public static Coord makeHighPrecCoord(int latHp, int lonHp, 
Long2ObjectOpenHashMap<Coord> coordPool) {
    [javac]                                                                 ^
    [javac]   symbol:   class Long2ObjectOpenHashMap
    [javac]   location: class Coord
    [javac] 
C:\openmtbmap\mkgmap_display\src\uk\me\parabola\imgfmt\app\lbl\LBLFileReader.java:21:
 error: package it.unimi.dsi.fastutil.ints does not exist
    [javac] import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap;
    [javac]                                  ^
    [javac] 
C:\openmtbmap\mkgmap_display\src\uk\me\parabola\imgfmt\app\net\RouteNode.java:25:
 error: package it.unimi.dsi.fastutil.ints does not exist
    [javac] import it.unimi.dsi.fastutil.ints.IntArrayList;
    [javac]                                  ^
    [javac] 
C:\openmtbmap\mkgmap_display\src\uk\me\parabola\mkgmap\reader\osm\TagDict.java:18:
 error: package it.unimi.dsi.fastutil.shorts does not exist
    [javac] import it.unimi.dsi.fastutil.shorts.ShortArrayList;
    [javac]                                    ^
    [javac] 
C:\openmtbmap\mkgmap_display\src\uk\me\parabola\mkgmap\reader\osm\TagDict.java:98:
 error: cannot find symbol
    [javac]     public static ShortArrayList compileTags(String ...keys) {
    [javac]                   ^
    [javac]   symbol:   class ShortArrayList
    [javac]   location: class TagDict
    [javac] 
C:\openmtbmap\mkgmap_display\src\uk\me\parabola\imgfmt\app\lbl\LBLFileReader.java:54:
 error: cannot find symbol
    [javac]     private final Int2ObjectOpenHashMap<Label> labels = new 
Int2ObjectOpenHashMap<>();
    [javac]                   ^

On Thu, 2 Dec 2021 at 16:54, Gerd Petermann 
<gpetermann_muenc...@hotmail.com<mailto:gpetermann_muenc...@hotmail.com><mailto:gpetermann_muenc...@hotmail.com<mailto:gpetermann_muenc...@hotmail.com>><mailto:gpetermann_muenc...@hotmail.com<mailto:gpetermann_muenc...@hotmail.com><mailto:gpetermann_muenc...@hotmail.com<mailto:gpetermann_muenc...@hotmail.com>>><mailto:gpetermann_muenc...@hotmail.com<mailto:gpetermann_muenc...@hotmail.com><mailto:gpetermann_muenc...@hotmail.com<mailto:gpetermann_muenc...@hotmail.com>><mailto:gpetermann_muenc...@hotmail.com<mailto:gpetermann_muenc...@hotmail.com><mailto:gpetermann_muenc...@hotmail.com<mailto:gpetermann_muenc...@hotmail.com>>>>>
 wrote:
Hi Felix,

please try svn up.
Maybe the change in 
https://www.mkgmap.org.uk/websvn/revision.php?repname=display&rev=565 helps.

Gerd

________________________________________
Von: mkgmap-dev 
<mkgmap-dev-boun...@lists.mkgmap.org.uk<mailto:mkgmap-dev-boun...@lists.mkgmap.org.uk><mailto:mkgmap-dev-boun...@lists.mkgmap.org.uk<mailto:mkgmap-dev-boun...@lists.mkgmap.org.uk>><mailto:mkgmap-dev-boun...@lists.mkgmap.org.uk<mailto:mkgmap-dev-boun...@lists.mkgmap.org.uk><mailto:mkgmap-dev-boun...@lists.mkgmap.org.uk<mailto:mkgmap-dev-boun...@lists.mkgmap.org.uk>>><mailto:mkgmap-dev-boun...@lists.mkgmap.org.uk<mailto:mkgmap-dev-boun...@lists.mkgmap.org.uk><mailto:mkgmap-dev-boun...@lists.mkgmap.org.uk<mailto:mkgmap-dev-boun...@lists.mkgmap.org.uk>><mailto:mkgmap-dev-boun...@lists.mkgmap.org.uk<mailto:mkgmap-dev-boun...@lists.mkgmap.org.uk><mailto:mkgmap-dev-boun...@lists.mkgmap.org.uk<mailto:mkgmap-dev-boun...@lists.mkgmap.org.uk>>>>>
 im Auftrag von Felix Hartmann 
<extremecar...@gmail.com<mailto:extremecar...@gmail.com><mailto:extremecar...@gmail.com<mailto:extremecar...@gmail.com>><mailto:extremecar...@gmail.com<mailto:extremecar...@gmail.com><mailto:extremecar...@gmail.com<mailto:extremecar...@gmail.com>>><mailto:extremecar...@gmail.com<mailto:extremecar...@gmail.com><mailto:extremecar...@gmail.com<mailto:extremecar...@gmail.com>><mailto:extremecar...@gmail.com<mailto:extremecar...@gmail.com><mailto:extremecar...@gmail.com<mailto:extremecar...@gmail.com>>>>>
Gesendet: Donnerstag, 2. Dezember 2021 16:49
An: Development list for mkgmap
Betreff: [mkgmap-dev] Building display.jar fails

I can actually avoid it by placing mkgmap.jar into the display tool folder - 
however then the display.jar is not working and ends with the notice:
"no main manifest attribute, in C:\openmtbmap\display.jar"




I get the following error I don't know how to solve when building the 
display.jar display tool - with the mkgmap folder inserted into the build.xml:

Buildfile: C:\openmtbmap\mkgmap_display\build.xml

prepare:
    [mkdir] Created dir: C:\openmtbmap\mkgmap_display\build\classes

ivy-availability:

download-ivy:
    [mkdir] Created dir: C:\openmtbmap\mkgmap_display\lib\build
      [get] Getting: 
https://repo1.maven.org/maven2/org/apache/ivy/ivy/2.5.0/ivy-2.5.0.jar
      [get] To: C:\openmtbmap\mkgmap_display\lib\build\ivy-2.5.0.jar

init-ivy:
[ivy:configure] :: Apache Ivy 2.5.0 - 20191020104435 :: 
https://ant.apache.org/ivy/ ::
[ivy:configure] :: loading settings :: file = 
C:\openmtbmap\mkgmap_display\ivysettings.xml

resolve-compile:

compile:
    [javac] Compiling 589 source files to 
C:\openmtbmap\mkgmap_display\build\classes
    [javac] 
C:\openmtbmap\mkgmap_display\src\uk\me\parabola\mkgmap\srt\SrtTextReader.java:416:
 error: unclosed character literal
    [javac]                     if (ch == 'ª' || (Character.isLetter(ch) && 
(Character.getType(ch) & Character.MODIFIER_LETTER) == 0))
    [javac]                               ^
    [javac] 
C:\openmtbmap\mkgmap_display\src\uk\me\parabola\mkgmap\srt\SrtTextReader.java:416:
 error: unclosed character literal
    [javac]                     if (ch == 'ª' || (Character.isLetter(ch) && 
(Character.getType(ch) & Character.MODIFIER_LETTER) == 0))
    [javac]                                  ^
    [javac] 
C:\openmtbmap\mkgmap_display\src\uk\me\parabola\mkgmap\srt\SrtTextReader.java:416:
 error: not a statement
    [javac]                     if (ch == 'ª' || (Character.isLetter(ch) && 
(Character.getType(ch) & Character.MODIFIER_LETTER) == 0))
    [javac]                                 ^
    [javac] 
C:\openmtbmap\mkgmap_display\src\uk\me\parabola\mkgmap\srt\SrtTextReader.java:416:
 error: not a statement
    [javac]                     if (ch == 'ª' || (Character.isLetter(ch) && 
(Character.getType(ch) & Character.MODIFIER_LETTER) == 0))
    [javac]                                                               ^
    [javac] 
C:\openmtbmap\mkgmap_display\src\uk\me\parabola\mkgmap\srt\SrtTextReader.java:416:
 error: ';' expected
    [javac]                     if (ch == 'ª' || (Character.isLetter(ch) && 
(Character.getType(ch) & Character.MODIFIER_LETTER) == 0))
    [javac]                                                                     
                                                     ^
    [javac] 5 errors





--
Felix Hartman - Openmtbmap.org & VeloMap.org

_______________________________________________
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk><mailto:mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk>><mailto:mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk><mailto:mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk>>><mailto:mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk><mailto:mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk>><mailto:mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk><mailto:mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk>>>>
https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


--
Felix Hartman - Openmtbmap.org & VeloMap.org

_______________________________________________
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk><mailto:mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk>><mailto:mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk><mailto:mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk>>>
https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


--
Felix Hartman - Openmtbmap.org & VeloMap.org

_______________________________________________
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk><mailto:mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk>>
https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


--
Felix Hartman - Openmtbmap.org & VeloMap.org

_______________________________________________
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk>
https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


--
Felix Hartman - Openmtbmap.org & VeloMap.org

_______________________________________________
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Reply via email to