Unable to build OpenJDK for cross platform.
Dipendu Ghosh
dipendu.ghosh at keysight.com
Thu Jan 6 20:28:28 UTC 2022
Hi,
I was following the steps to cross compile OpenJDK from https://openjdk.java.net/groups/build/doc/building.html.
But, the cross compilation fails at the below step.
Failure step:-
sh ./configure \
--openjdk-target=aarch64-linux-gnu \
--with-sysroot=~/sysroot-arm64
Error is as below:-
"configure: error: Could not find X11 libraries. You might be able to fix this by running 'sudo apt-get install libx11-dev libxext-dev libxrender-dev libxrandr-dev libxtst-dev libxt-dev'. configure exiting with result code 1"
The fix provided after the error is not solving the problem since the packages are already installed but somehow they are not being included in the sysroot.
Prior to the failure step I have executed the below command:-
sudo qemu-debootstrap \
--arch=arm64 \
--verbose \
--include=autoconf,fakeroot,symlinks,build-essential,libx11-dev,libxext-dev,libxrender-dev,libxrandr-dev,libxtst-dev,libxt-dev,libxss-dev,libxxf86vm-dev,libxkbfile-dev,libxv-dev,libxinerama-dev,libcups2-dev,libfontconfig1-dev,libasound2-dev,libfreetype6-dev,libjpeg-dev,libpng-dev,libffi-dev,jtreg
--resolve-deps \
buster \
~/sysroot-arm64 \
http://httpredir.debian.org/debian/
Please help me resolving this error.
Thanks & Regards,
Dipendu Ghosh
Senior Software Engineer II,
Keysight Technologies
dipendu.ghosh at keysight.com<mailto:dipendu.ghosh at keysight.com>
More information about the build-dev
mailing list