Reference: http://gleamynode.net/articles/2296/
In the blog, the OS is Ubuntu 11.10/12.04 32-bit. The environment in this article is Ubuntu 12.10 32-bit.
Environment Settings:
Ubuntu 12.10 32-bit
JDK 1.6 +
Create a directory named workspace under the $ home directory
Install the required package
Apt-Get install mercurial gawk g ++ libcups2-dev libasound2-dev libfreetype6-dev libx11-dev libxt-dev libxext-dev libxrender-dev libxtst-dev libfontconfig1-dev
Install hgforeset
Hg clone https://bitbucket.org/pmezard/hgforest-crew/overview/ "$ home/workspace/hgforest"
Edit/etc/mercurial/hgrc and add:
[Extensions] forest = ~ /Workspace/hgforest/forest. py
SetCodeCopy to local:
Hg fclone http://hg.openjdk.java.net/jdk7u/jdk7u "$ home/workspace/openjdk"
Compile openjdk 7
Cd "$ home/workspace/openjdk" Unset java_homeexport lang = cexport alt_bootdir = "$ home /. local/opt/JDK/1.6 "Export allow_downloads = trueexport extra_libs =/usr/lib/x86_64-linux-gnu/libasound. sosource JDK/make/jdk_generic_profile.shmake sanity & make & Echo 'images at: build/linux-amd64/j2sdk-image'
After the compilation is complete, restart the machine to find that there is no sound, find this solution on the internet, enter in the command line:
Sudo add-Apt-repository PPA: Ubuntu-audio-dev/PPA; sudo apt-Get update; sudo apt-Get dist-upgrade; sudo apt-Get install linux-sound-base ALSA-utils TPD Ubuntu-Desktop Linux-image-'uname-R' libasound2; sudo apt-get-y -- reinstall install linux-sound-base ALSA-utils TPD Ubuntu-Desktop Linux-image-'uname-R' libasound2; killall pulseaudio; rm-R ~ /. Pulse *; sudo usermod-Ag 'cat/etc/group | grep-e '^ pulse:'-e' ^ audio: '-e' ^ pulse-access: '-e' ^ pulse-RT:'-e' ^ Video: '| awk-F:' {print $1} '| tr' \ n '', '| SED's:, $: g''' whoam'