- 
    Bug 
- 
    Resolution: Fixed
- 
     P4 P4
- 
    8, 9, 10
- 
    None
- 
    OS: Ubuntu 16.04.2 LTS 
 CPU: Cavium ThunderX
 kernel: 4.10.0-26-generic
- 
        b21
- 
        aarch64
- 
        linux, linux_ubuntu
                    JDK configuration fails on out of the box system even after installation of required packages. It tries to look for freetype library in x86_64 path.
# apt-get install libfreetype6-dev
# bash configure
....
configure: Found freetype include files at /usr/include/freetype2 using well-known location
configure: Could not find /usr/lib/libfreetype.so. Ignoring location.
configure: Found freetype include files at /usr/include/freetype2 using well-known location
configure: Could not find /usr/lib/x86_64-linux-gnu/libfreetype.so. Ignoring location.
configure: error: Could not find freetype! You might be able to fix this by running 'sudo apt-get install libfreetype6-dev'.
configure exiting with result code 1
Workaround: Link or copy libfreetype.so to other known location, e.g. /usr/lib
Cross-compilation works if .so is in /usr/lib in sysroot.
# apt-get install libfreetype6-dev
# bash configure
....
configure: Found freetype include files at /usr/include/freetype2 using well-known location
configure: Could not find /usr/lib/libfreetype.so. Ignoring location.
configure: Found freetype include files at /usr/include/freetype2 using well-known location
configure: Could not find /usr/lib/x86_64-linux-gnu/libfreetype.so. Ignoring location.
configure: error: Could not find freetype! You might be able to fix this by running 'sudo apt-get install libfreetype6-dev'.
configure exiting with result code 1
Workaround: Link or copy libfreetype.so to other known location, e.g. /usr/lib
Cross-compilation works if .so is in /usr/lib in sysroot.