Details
-
Type:
Bug
-
Status: Resolved
-
Priority:
P4
-
Resolution: Fixed
-
Affects Version/s: 8, 9, 10
-
Fix Version/s: 10
-
Component/s: infrastructure
-
Labels:None
-
Environment:
OS: Ubuntu 16.04.2 LTS
CPU: Cavium ThunderX
kernel: 4.10.0-26-generic
-
Subcomponent:
-
Resolved In Build:b21
-
CPU:aarch64
-
OS:linux, linux_ubuntu
Description
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.