40 Star 154 Fork 96

openEuler / bishengjdk-11

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
DEPENDENCY_BUILD.md 2.76 KB
一键复制 编辑 原始数据 按行查看 历史
jiangfeilong 提交于 2020-11-26 13:20 . fix typo in cups configuration

Tips for the compilation of dependencies

All X11 libraries can be compiled with shell scripts from https://www.x.org/wiki/Building_the_X_Window_System. But if you're stuck in it(blocked by the firewall or slow proxy), then you can refer to the following stupid tips: download all the source code and compile them one by one.

Prepare

$ export PATH=/path/to/riscv/toolchain/bin:$PATH
$ export sysroot=/path/to/riscv/toolchain/sysroot
$ export prefix=$sysroot/usr

Note that the compilation of some of the following libraries may depend on others, so it's a wise choice to keep a recommended sequence: xproto/xtrans/xextproto/renderproto/libpthread-stubs/xcb-proto/fixesproto/kbproto/recordproto/inputproto/xorgproto libxml2/libffi/libuuid/zlib/alsa-lib/libpng/freetype2/libICE/libSM/libXau/libXcb/libX11/libXt/libXfixes/libXrender libXext/libXi/libXtst/libXrandr/cups/fontconfig

xproto/xextproto/renderproto/libpthread-stubs/xcb-proto/fixesproto/kbproto/inputproto/xorgproto/libffi/libuuid/libpng

$ cd /path/to/source
$ ./configure --host=riscv64-unknown-linux-gnu --prefix=$prefix
$ make && make install

xtrans/recordproto/libICE/libSM/libXau/libX11/libXt/libXfixes/libXrender/libXext/libXi/libXtst/libXrandr

$ cd /path/to/source
$ ./configure --host=riscv64-unknown-linux-gnu --disable-malloc0returnsnull --prefix=$prefix
$ make && make install

libxml2

$ ./configure --host=riscv64-unknown-linux-gnu --prefix=$prefix --with-python=no
$ make && make install

zlib

$ CHOST=riscv64 CC=riscv64-unknown-linux-gnu-gcc AR=riscv64-unknown-linux-gnu-ar RANLIB=riscv64-unknown-linux-gnu-ranlib ./configure  --prefix=$prefix
$ make && make install

alsa-lib

$ ./configure --host=riscv64-unknown-linux-gnu --disable-python --prefix=$prefix
$ make && make install

freetype2

$ ./configure --host=riscv64-unknown-linux-gnu --prefix=$prefix --with-brotli=no --with-harfbuzz=no --with-bzip2=no PKG_CONFIG_PATH=$prefix/lib/pkgconfig
$ make && make install

libXcb

$ ./configure --host=riscv64-unknown-linux-gnu --disable-malloc0returnsnull --prefix=$prefix PKG_CONFIG_PATH=$prefix/lib/pkgconfig
$ make && make install

cups

$ ./configure --host=riscv64-unknown-linux-gnu --disable-ssl --disable-gssapi --disable-avahi --disable-libusb --disable-dbus --disable-systemd
$ make && make install DSTROOT=$sysroot

fontconfig

$ ./configure --host=riscv64-unknown-linux-gnu --prefix=$prefix --enable-libxml2 LIBXML2_LIBS="-L$prefix/lib -lxml2" \
LIBXML2_CFLAGS="-I$prefix/include/libxml2" CPPFLAGS="-I$prefix/include" LDFLAGS="-L$prefix/lib"
FREETYPE_CFLAGS="-I$prefix/include/freetype2" FREETYPE_LIBS="-L$prefix/lib -lfreetype"
$ make && make install
Java
1
https://gitee.com/openeuler/bishengjdk-11.git
git@gitee.com:openeuler/bishengjdk-11.git
openeuler
bishengjdk-11
bishengjdk-11
risc-v

搜索帮助