visto che volevo aggiornare le mappe, oggi ho provato ad usare mkgmap e java invece di wine.. e devo dire che funziona pure meglio (la mappa la crea piu' velocemente.
Istruzioni (tutto a vostro rischio e pericolo.. ricontrollate i path e che ci sia tutto se avete errori!):
- Scarica il .exe della mappa che ti interessa da qui, es. mtbitaly.exe
https://openmtbmap.org/it/download/odbl/ (scegli standard e seleziona il paese)
- Scarica mkgmap
https://www.mkgmap.org.uk/download/mkgmap.html e scompattalo, ad esempio in ~/Downloads/mkgmap-r4924
- assicurati di avere java installato (ad esempio `brew install openjdk`)
- Scarica lo script
https://raw.githubusercontent.com/b...x/refs/heads/master/create_omtb_garmin_img.sh ad esempio in ~/Downloads
- Apri un terminale ed esegui (facendo conto che e' tutto in ~/Downloads:
```
cd ~/Downloads
chmod +x create_omtb_garmin_img.sh
./create_omtb_garmin_img.sh -m mkgmap-r4924/mkgmap.jar mtbitaly.exe wide
```
Se tutto funziona a dovere ottenete un output del genere:
```
% ./create_omtb_garmin_img-mod.sh -m mkgmap-r4924/mkgmap.jar mtbitaly.exe wide
Extracting mtbitaly.exe ...
Using display-TYP-file: /Users/utente/Downloads/OMTB_tmp/wideit.TYP
Using FID 6367
Using mkgmap, building address search index...
grep: /proc/meminfo: No such file or directory
Mkgmap version 4924
Time started: Tue Mar 31 14:49:55 CEST 2026
AVVERTENZA (global): Setting max-jobs to 12
Number of MapFailedExceptions: 0
Number of ExitExceptions: 0
Time finished: Tue Mar 31 14:50:42 CEST 2026
Total time taken: 47 seconds
Successfully created /Users/utente/Downloads/openmtbmap_italy.img
```
Il file `openmtbmap_italy.img` poi andra' copiato sulla memoria del
garmin.