Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8001925

build-infra: Add useful help messages if freetype is not found on Windows

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 8
    • None
    • infrastructure
    • b113

      In libraries.m4 LIB_SETUP_FREETYPE we setup freetype handling. Getting freetype correct is a constant source of problem, mostly because freetype (and the boot-jdk) is typically the one thing that can't be automatically detected and must be provided by the user. Therefore this needs special attention.

      On Windows, this is even more of a mess. There is no official freetype windows build. There is however, a commonly downloaded binary, from GnuWin32 (which is also the one we officially recommends).

      If freetype is missing on Windows x86, we should display this help:
      ---
      To install freetype, run:
      wget "http://gnuwin32.sourceforge.net/downlinks/freetype.php" -O /tmp/freetype-setup.exe
      chmod +x /tmp/freetype-setup.exe
      /tmp/freetype-setup.exe
      Follow GUI prompts, and install to default directory "C:\Program Files (x86)\GnuWin32".
      ---

      Note that this is for x86 (32-bit) only. For x86_64, there is no easily available prebuild binary, and a recompile from source is needed.

      If freetype is missing on Windows x86_64, we should display this help:
      ---
      You need to build a 64-bit version of freetype.
      This is not readily available.
      You can find source code and build instructions on
      http://www.freetype.org/
      ---

            ihse Magnus Ihse Bursie
            ihse Magnus Ihse Bursie
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: