Opened 11 years ago

Last modified 4 years ago

#1032 new defect/bug

WinCE cab packaging is broken because too many image files exist

Reported by: tryagain Owned by: KaZeR
Priority: major Milestone: version 0.6.0
Component: install Version: git master
Severity: Keywords: icons, wince
Cc:, cp15


Current nightly builds for WinCE broken because they hit cab limitation of 998 files.

I'm considering following ways to solve the problem:

  • implement png resizing in graphisc:win32 so we won't need for that bunch of prescaled image variants;
  • implement svg rendering in graphisc:win32, most probably by adopting some svg library to support directory of navit.

Any ideas and suggestions are very appreciated.

Change History (5)

comment:1 Changed 11 years ago by sleske

There is an article from Microsoft Support about this problem: You receive the "Setup failed" error message when you use a very large setup CAB file to install a program on a Pocket PC device

They recommend to avoid using so many files:

We do not recommend that you use many hundreds of files in a Pocket PC program. Very large programs can cause slow installation. Additionally, performance problems or memory usage problems may occur while you run the program. Consider redesigning your program to use fewer files.

So maybe Navit should be redesigned not to use so many files. We could e.g. implement a feature that allows to load the image files from a ZIP file. ZIP code is already in Navit, so this should be doable.

Other, short-term solutions would be:

  • Cut down on the number of different sizes that are created. At the moment the CMake build generates four versions for all the map and GUI icons (32,48,64px and original SVG size). However, both the map and the internal GUI only use one size (with size for the internal GUI depending on screen resolution).
  • Throw out some less-frequently used map icons. Some map icons are rarely used, or not even supported by OSM in the standard config.
  • Throw out the SVG files, which WinCE does not use currently. (Maybe the WinCE build already does this, I'm not sure).

comment:2 Changed 11 years ago by sleske

implement png resizing in graphisc:win32 [...] implement svg rendering in graphisc:win32

These also seems like good ideas (if they are doable).

PNG resizing should be a lot easier (and faster) than SVG rendering (which is a very complex process), so this is probably the way to go.

comment:3 Changed 9 years ago by usul

  • Cc cp15 added
  • Component changed from port/wince to install
  • Keywords icons wince added
  • Milestone set to version 0.5.1
  • Owner set to KaZeR

user:Xenos1984 and cp15 are working to save multiple icons in one single PNG file. This will reduce the number of files significantly. Beside that, I clean up the icons as some are unused.

As this is a very essential (as installer related) issue, I schedule it for next hotfix.

comment:4 Changed 5 years ago by

  • Milestone changed from version 0.5.1 to version 0.5.2

This ticket was pushed back in order to bring 0.5.1 out soon.

comment:5 Changed 4 years ago by

  • Milestone changed from version 0.5.2 to version 0.6.0

Ticket retargeted after milestone closed

Note: See TracTickets for help on using tickets.