Linux相关库源码下载网站: https://cygwin.uib.no/x86_64/release/

dbus

sudo apt-get install libdbus-1-dev
sudo apt-get install libdbus-glib-1-dev

icu

需要从官网下载指定版本的源码,解压后编译和安装,再配置环境变量。例如:

  • 下载icu-60.2-1-src.tar.xz
  • 解压后,执行:./configure --prefix=/opt/icu-60.2
  • 配置环境变量:
export ICU_ROOT=/opt/icu-60.2
export PATH=$PATH:$ICU_ROOT/bin
export CPATH=$ICU_ROOT/include:$CPATH
export PKG_CONFIG_PATH=$ICU_ROOT/lib/pkgconfig:$PKG_CONFIG_PATH
export LIBRARY_PATH=$ICU_ROOT/lib:$LIBRARY_PATH
export LD_LIBRARY_PATH=$ICU_ROOT/lib:$LD_LIBRARY_PATH

harfbuzz

需要从官网下载指定版本的源码,解压后编译和安装,再配置环境变量。例如:

  • 下载harfbuzz-8.1.1-1-src.tar.xz
  • 解压后,执行:./configure --prefix=/harfbuzz-8.1.1-1
  • 配置环境变量:
export HARFBUZZ_ROOT=/opt/harfbuzz-8.1.1
export PATH=$PATH:$HARFBUZZ_ROOT/bin
export CPATH=$HARFBUZZ_ROOT/include:$CPATH
export PKG_CONFIG_PATH=$HARFBUZZ_ROOT/lib/pkgconfig:$PKG_CONFIG_PATH
export LIBRARY_PATH=$HARFBUZZ_ROOT/lib:$LIBRARY_PATH
export LD_LIBRARY_PATH=$HARFBUZZ_ROOT/lib:$LD_LIBRARY_PATH

OpenGL

1、OpenGL库文件

sudo apt-get update
sudo apt-get install mesa-utils
sudo apt-get install freeglut3-dev

2、OpenGL编译器

sudo apt-get install build-essential
sudo apt-get install libgl1-mesa-dev
sudo apt-get install libglu1-mesa-dev
sudo apt-get install libglew-dev
sudo apt-get install libglm-dev
sudo apt-get install libsdl2-dev
sudo apt-get install libsdl2-image-dev
sudo apt-get install libfreetype6-dev

png

1、libpng12

Ubuntu 14以上就已经不再支持libpng12,然而有些软件又依赖于libpng12(如我要使用的Cisco Packet Tracer)。我们可以采用特定的方法安装低版本的libpng。

  • sudo vim /etc/apt/sources.list
  • 根据Ubuntu官网的提示,我们在其中加上deb http://cz.archive.ubuntu.com/ubuntu xenial main,然后保存,并更新package list:sudo apt-get update
  • sudo apt-get install libpng12-0
  • sudo apt-get install libpng12-dev

2、libpng16

sudo apt-get install libpng-dev

SSH服务

sudo apt-get install openssh-server

udev

sudo apt-get install libudev-dev

zlib

sudo apt-get install zlib1g-dev
Logo

更多推荐