dragonwell-project / dragonwell8

Alibaba Dragonwell8 JDK
http://dragonwell-jdk.io
GNU General Public License v2.0
4.21k stars 496 forks source link

[RFC] add document how to compile dragonwell8 from source code #7

Closed ghost closed 5 years ago

ghost commented 5 years ago

Add document how to compile dragonwell8 from source code

for example, at debian/ubuntu

sudo apt-get install libx11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev libcups2-dev libfreetype6-dev libasound2-dev
chmod +x configure
./configure --prefix=/usr/local --with-freetype-include=/usr/include/freetype2 --with-freetype-lib=/usr/lib/x86_64-linux-gnu

make 
sudo make install
luchsh commented 5 years ago

Working in progress. Need time for both process and code. Please stay tuned, thanks!

terwer commented 5 years ago

Add document how to compile dragonwell8 from source code

for example, at debian/ubuntu

sudo apt-get install libx11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev libcups2-dev libfreetype6-dev libasound2-dev
chmod +x configure
./configure --prefix=/usr/local --with-freetype-include=/usr/include/freetype2 --with-freetype-lib=/usr/lib/x86_64-linux-gnu

make 
sudo make install

Thanks,it works for me.

using configure arguments '--prefix=/usr/local --with-freetype-include=/usr/include/freetype2 --with-freetype-lib=/usr/lib/x86_64-linux-gnu'.

Configuration summary:
* Debug level:    release
* JDK variant:    normal
* JVM variants:   server
* OpenJDK target: OS: linux, CPU architecture: x86, address length: 64

Tools summary:
* Boot JDK:       java version "1.8.0_191" Java(TM) SE Runtime Environment (build 1.8.0_191-b12) Java HotSpot(TM) 64-Bit Server VM (build 25.191-b12, mixed mode)  (at /usr/lib/jvm/oracle_jdk8)
* Toolchain:      gcc (GNU Compiler Collection)
* C Compiler:     Version 6.3.0 (at /usr/bin/gcc)
* C++ Compiler:   Version 6.3.0 (at /usr/bin/g++)

Build performance summary:
* Cores to use:   4
* Memory limit:   8142 MB

WARNING: Your build output directory is not on a local disk.
This will severely degrade build performance!
It is recommended that you create an output directory on a local disk,
and run the configure script again from that directory.