gtk3依赖glib,gdkpixbuf,pango,atk和Gobject Introspection;webkitgtk依赖gtk,下面为我编译gtk和webkitgtk源码并安装在自定义目录的过程
zlib:
./configure --prefix=/home/gtbureau/project/zlib-1.2.11/lib
make
make install
PKG_CONFIG_PATH=/home/gtbureau/project/zlib-1.2.11/lib/lib/pkgconfig
libffi:
1、./autogen.sh会报错
2、vi configure.ac 加入宏m4_pattern_allow([LT_SYS_SYMBOL_USCORE])
报错make[3]: *** [Makefile:1472:../doc/libffi.info] 错误 127
3、安装texinfo
sudo apt-get update
sudo apt-get install texinfo
4、./configure --prefix=/home/gtbureau/project/libffi-3.2.1/lib
make
sudo make install
编译glib:
./configure PKG_CONFIG_PATH=/home/gtbureau/project/zlib-1.2.11/lib/lib/pkgconfig:/home/gtbureau/project/libffi-3.2.1/lib/lib/pkgconfig --prefix=/home/gtbureau/project/glib-2.58.3/lib
configure: error: *** Could not find libmount
安装libmount:util-linux-2.39.1.tar.gz
./autogen.sh
./configure --prefix=/home/gtbureau/project/util-linux-2.39.1/usrlib
make
sudo make install
./configure PKG_CONFIG_PATH=/home/gtbureau/project/zlib-1.2.11/lib/lib/pkgconfig:/home/gtbureau/project/libffi-3.2.1/lib/lib/pkgconfig:/home/gtbureau/project/util-linux-2.39.1/usrlib/lib/pkgconfig --prefix=/home/gtbureau/project/glib-2.58.3/lib
configure: error: Package requirements (libpcre >= 8.31) were not met:No package 'libpcre' found
安装libpcre
configure: error: Invalid C++ compiler or C++ compiler flags
sudo apt-get install g++
./configure --prefix=/home/gtbureau/project/pcre-8.45/lib
make
sudo make install
./configure --with-pcre=/home/gtbureau/project/pcre-8.45/lib/ PKG_CONFIG_PATH=/home/gtbureau/project/zlib-1.2.11/lib/lib/pkgconfig:/home/gtbureau/project/libffi-3.2.1/lib/lib/pkgconfig:/home/gtbureau/project/util-linux-2.39.1/usrlib/lib/pkgconfig --prefix=/home/gtbureau/project/glib-2.58.3/lib
编译glib成功!
-------------------------------------------------------------------------------------------------------
编译atk
设置pkgconfig搜索库目录
export PKG_CONFIG_PATH=/home/gtbureau/project/glib-2.58.3/lib/lib/pkgconfig
meson build --prefix=/home/gtbureau/project/atk-2.30.0/lib
Build-time dependency gobject-introspection-1.0 found: NO (tried pkgconfig and cmake)
编译gobject_introspection-1.29.0
Package 'mount', required by 'gio-2.0', not found
./configure PKG_CONFIG_PATH=/home/gtbureau/project/glib-2.58.3/lib/lib/pkgconfig:/home/gtbureau/project/util-linux-2.39.1/usrlib/lib/pkgconfig --prefix=/home/gtbureau/project/gobject-introspection-1.29.0/lib
configure: error: Tests enabled but cairo not found; pass --disable-tests or install cairo
./configure --prefix=/home/gtbureau/project/cairo-1.17.6/lib
configure: error: recommended PNG functions feature could not be enabled
修改libpng-1.6.34/scripts目录中的makefile.linuxpreifx和zlib依赖路径拷贝到libpng-1.6.34目录并去掉后缀名(参考:https://blog.csdn.net/weixin_42489042/article/details/83027531)
make
sudo make install
编译安装pixman(指定安装路径即可)
export PKG_CONFIG_PATH=/home/gtbureau/project/zlib-1.2.11/lib/lib/pkgconfig:/home/gtbureau/project/pcre-8.45/lib/lib/lib/pkgconfig:/home/gtbureau/project/pixman-0.36.0/lib/lib/pkgconfig:/home/gtbureau/project/libpng-1.6.34/lib/lib/pkgconfig:/home/gtbureau/project/glib-2.58.3/lib/lib/pkgconfig:/home/gtbureau/project/libffi-3.2.1/lib/lib/pkgconfig:/home/gtbureau/project/util-linux-2.39.1/usrlib/lib/pkgconfig:/home/gtbureau/project/libffi-3.2.1/lib/lib/pkgconfig
export C_INCLUDE_PATH=/home/gtbureau/project/zlib-1.2.11/lib/include
export LIBRARY_PATH=/home/gtbureau/project/zlib-1.2.11/lib/lib
./configure --prefix=/home/gtbureau/project/cairo-1.17.6/lib
编译cairo成功!
PKG_CONFIG_PATH=/home/gtbureau/project/zlib-1.2.11/lib/lib/pkgconfig:/home/gtbureau/project/pcre-8.45/lib/lib/pkgconfig:/home/gtbureau/project/pixman-0.36.0/lib/lib/pkgconfig:/home/gtbureau/project/libpng-1.6.34/lib/lib/pkgconfig:/home/gtbureau/project/glib-2.58.3/lib/lib/pkgconfig:/home/gtbureau/project/libffi-3.2.1/lib/lib/pkgconfig:/home/gtbureau/project/util-linux-2.39.1/usrlib/lib/pkgconfig:/home/gtbureau/project/libffi-3.2.1/lib/lib/pkgconfig:/home/gtbureau/project/cairo-1.17.6/lib/lib/pkgconfig
./configure --prefix=/home/gtbureau/project/gobject-introspection-1.50.0/lib
编译gobject-introspection成功!
如果之前有make失败的情况,一定要先sudo make clean,然后重新autogen
PKG_CONFIG_PATH=/home/gtbureau/project/zlib-1.2.11/lib/lib/pkgconfig:/home/gtbureau/project/pcre-8.45/lib/lib/pkgconfig:/home/gtbureau/project/pixman-0.36.0/lib/lib/pkgconfig:/home/gtbureau/project/libpng-1.6.34/lib/lib/pkgconfig:/home/gtbureau/project/glib-2.58.3/lib/lib/pkgconfig:/home/gtbureau/project/libffi-3.2.1/lib/lib/pkgconfig:/home/gtbureau/project/util-linux-2.39.1/usrlib/lib/pkgconfig:/home/gtbureau/project/libffi-3.2.1/lib/lib/pkgconfig:/home/gtbureau/project/cairo-1.17.6/lib/lib/pkgconfig:/home/gtbureau/project/gobject-introspection-1.50.0/lib/lib/pkgconfig
meson _build --prefix=/home/gtbureau/project/atk-2.30.0/lib
cd _build
ninja
ninja install
编译atk成功!
-----------------------------------------------------------------------------------------------------------------------------------------
PKG_CONFIG_PATH=/home/gtbureau/project/zlib-1.2.11/lib/lib/pkgconfig:/home/gtbureau/project/pcre-8.45/lib/lib/pkgconfig:/home/gtbureau/project/pixman-0.36.0/lib/lib/pkgconfig:/home/gtbureau/project/libpng-1.6.34/lib/lib/pkgconfig:/home/gtbureau/project/glib-2.58.3/lib/lib/pkgconfig:/home/gtbureau/project/libffi-3.2.1/lib/lib/pkgconfig:/home/gtbureau/project/util-linux-2.39.1/usrlib/lib/pkgconfig:/home/gtbureau/project/libffi-3.2.1/lib/lib/pkgconfig:/home/gtbureau/project/cairo-1.17.6/lib/lib/pkgconfig:/home/gtbureau/project/gobject-introspection-1.50.0/lib/lib/pkgconfig:/home/gtbureau/project/atk-2.30.0/lib/lib/x86_64-linux-gnu/pkgconfig
编译gdk-pixbuf
meson _build --prefix=/home/gtbureau/project/gdk-pixbuf-2.40.0/lib
cd _build
ninja
sudo ninja install
PKG_CONFIG_PATH=/home/gtbureau/project/zlib-1.2.11/lib/lib/pkgconfig:/home/gtbureau/project/pcre-8.45/lib/lib/pkgconfig:/home/gtbureau/project/pixman-0.36.0/lib/lib/pkgconfig:/home/gtbureau/project/libpng-1.6.34/lib/lib/pkgconfig:/home/gtbureau/project/glib-2.58.3/lib/lib/pkgconfig:/home/gtbureau/project/libffi-3.2.1/lib/lib/pkgconfig:/home/gtbureau/project/util-linux-2.39.1/usrlib/lib/pkgconfig:/home/gtbureau/project/libffi-3.2.1/lib/lib/pkgconfig:/home/gtbureau/project/cairo-1.17.6/lib/lib/pkgconfig:/home/gtbureau/project/gobject-introspection-1.50.0/lib/lib/pkgconfig:/home/gtbureau/project/atk-2.30.0/lib/lib/x86_64-linux-gnu/pkgconfig:/home/gtbureau/project/gdk-pixbuf-2.40.0/lib/lib/x86_64-linux-gnu/pkgconfig:/home/gtbureau/project/freetype-2.13.1/lib/lib/pkgconfig
编译pango
./autogen.sh
*** No GTK-Doc found, please install it ***
sudo apt-get install gtk-doc-tools
编译安装freetype
直接编译安装在指定目录即可
编译安装fontconfig
make报错需要安装gperf
编译安装harfbuzz
直接编译安装在指定目录即可
编译安装fribidi
直接编译安装在指定目录即可
注意:cairo需要重新编译,依赖freetype,不然编译pango会报错
meson _build --prefix=/home/gtbureau/project/pango-1.42.3/lib
cd _build
ninja
ninja install
编译pango成功!
------------------------------------------------------------------------------------------------------------------------------------------------------
PKG_CONFIG_PATH=/home/gtbureau/project/zlib-1.2.11/lib/lib/pkgconfig:/home/gtbureau/project/pcre-8.45/lib/lib/pkgconfig:/home/gtbureau/project/pixman-0.36.0/lib/lib/pkgconfig:/home/gtbureau/project/libpng-1.6.34/lib/lib/pkgconfig:/home/gtbureau/project/glib-2.58.3/lib/lib/pkgconfig:/home/gtbureau/project/libffi-3.2.1/lib/lib/pkgconfig:/home/gtbureau/project/util-linux-2.39.1/usrlib/lib/pkgconfig:/home/gtbureau/project/libffi-3.2.1/lib/lib/pkgconfig:/home/gtbureau/project/cairo-1.17.6/lib/lib/pkgconfig:/home/gtbureau/project/gobject-introspection-1.50.0/lib/lib/pkgconfig:/home/gtbureau/project/atk-2.30.0/lib/lib/x86_64-linux-gnu/pkgconfig:/home/gtbureau/project/gdk-pixbuf-2.40.0/lib/lib/x86_64-linux-gnu/pkgconfig:/home/gtbureau/project/freetype-2.13.1/lib/lib/pkgconfig:/home/gtbureau/project/fontconfig-2.14.2/lib/lib/pkgconfig:/home/gtbureau/project/harfbuzz-6.0.0/lib/lib/pkgconfig:/home/gtbureau/project/fribidi-1.0.13/lib/lib/pkgconfig:/home/gtbureau/project/pango-1.42.3/lib/lib/x86_64-linux-gnu/pkgconfig
编译libepoxy
meson _build --prefix=/home/gtbureau/project/libepoxy-1.5.3/lib
cd _build/
ninja
ninja install
需要更换atk-2.35.1以上版本
编译libxml-2.0
直接编译安装在指定目录即可
编译xcb-proto
直接编译安装在指定目录即可
./configure --prefix=/home/gtbureau/project/xcb-proto-1.15.2/lib
make
make install
编译xcb
直接编译安装在指定目录即可
./configure --prefix=/home/gtbureau/project/libxcb-1.15/lib
make
make install
编译wanland
sudo apt-get install graphviz
sudo apt-get install doxygen
sudo apt-get install xmlto
meson _build --prefix=/home/gtbureau/project/wayland-1.21.93/lib
编译wayland-protocols
meson _build --prefix=/home/gtbureau/project/wayland-protocols-1.32/lib
cd _build/
ninja
ninja install
编译xkbcommon
meson _build --prefix=/home/gtbureau/project/libxkbcommon-xkbcommon-1.5.0/lib
cd _build/
ninja
ninja install
sudo apt-get install libxrandr-dev
sudo apt-get install libxi-dev
sudo apt-get install libdbus-1-dev
sudo apt-get install libatspi2.0-dev
sudo apt upgrade at-spi2-core
编译atk-bridge-2.0
./autogen.sh
./configure --prefix=/home/gtbureau/project/at-spi2-atk-AT_SPI2_ATK_2_25_2/lib
make
make install
export PATH=/home/gtbureau/project/wayland-1.21.93/lib/bin:$PATH
加入到环境变量(解决gtk wayland-scanner错误)
export C_INCLUDE_PATH=/home/gtbureau/project/cairo-1.17.6/lib/include
export LIBRARY_PATH=/home/gtbureau/project/cairo-1.17.6/lib/lib
解决找不到cairo-xlib.h头文件问题
export PATH=$PATH:/home/gtbureau/project/gdk-pixbuf-2.40.0/lib/bin
解决找不到gdk-pixbuf-pixdata
把GdkPixbuf-2.0.gri Pango-1.0.gir Atk-1.0.gir拷贝到gobject-introspection的share目录
meson _build --prefix=/home/gtbureau/project/gtk+-3.24.29/lib
cd _build/
ninja
ninja install
gtk3编译成功!
PKG_CONFIG_PATH=/home/gtbureau/project/zlib-1.2.11/lib/lib/pkgconfig:/home/gtbureau/project/pcre-8.45/lib/lib/pkgconfig:/home/gtbureau/project/pixman-0.36.0/lib/lib/pkgconfig:/home/gtbureau/project/libpng-1.6.34/lib/lib/pkgconfig:/home/gtbureau/project/glib-2.58.3/lib/lib/pkgconfig:/home/gtbureau/project/libffi-3.2.1/lib/lib/pkgconfig:/home/gtbureau/project/util-linux-2.39.1/usrlib/lib/pkgconfig:/home/gtbureau/project/libffi-3.2.1/lib/lib/pkgconfig:/home/gtbureau/project/cairo-1.17.6/lib/lib/pkgconfig:/home/gtbureau/project/gobject-introspection-1.50.0/lib/lib/pkgconfig:/home/gtbureau/project/atk-2.35.1/lib/lib/x86_64-linux-gnu/pkgconfig:/home/gtbureau/project/gdk-pixbuf-2.40.0/lib/lib/x86_64-linux-gnu/pkgconfig:/home/gtbureau/project/freetype-2.13.1/lib/lib/pkgconfig:/home/gtbureau/project/fontconfig-2.14.2/lib/lib/pkgconfig:/home/gtbureau/project/harfbuzz-6.0.0/lib/lib/pkgconfig:/home/gtbureau/project/fribidi-1.0.13/lib/lib/pkgconfig:/home/gtbureau/project/pango-1.42.3/lib/lib/x86_64-linux-gnu/pkgconfig:/home/gtbureau/project/libepoxy-1.5.3/lib/lib/x86_64-linux-gnu/pkgconfig:/home/gtbureau/project/libxml2-2.9.9/lib/lib/pkgconfig:/home/gtbureau/project/xcb-proto-1.15.2/lib/share/pkgconfig:/home/gtbureau/project/libxcb-1.15/lib/lib/pkgconfig:/home/gtbureau/project/wayland-1.21.93/lib/lib/x86_64-linux-gnu/pkgconfig:/home/gtbureau/project/wayland-protocols-1.32/lib/share/pkgconfig:/home/gtbureau/project/libxkbcommon-xkbcommon-1.5.0/lib/lib/x86_64-linux-gnu/pkgconfig:/home/gtbureau/project/at-spi2-atk-AT_SPI2_ATK_2_25_2/lib/lib/pkgconfig
-------------------------------------------------------------------------------------------------------------------------------------------
编译expat
./configure --prefix=/home/gtbureau/project/expat-2.5.0/lib
make
make install
export LD_LIBRARY_PATH=/home/gtbureau/project/expat-2.5.0/lib/lib
PKG_CONFIG_PATH=/home/gtbureau/project/glib-2.58.3/lib/lib/pkgconfig:/home/gtbureau/project/atk-2.35.1/lib/lib/x86_64-linux-gnu/pkgconfig:/home/gtbureau/project/pango-1.42.3/lib/lib/x86_64-linux-gnu/pkgconfig:/home/gtbureau/project/cairo-1.17.6/lib/lib/pkgconfig:/home/gtbureau/project/gdk-pixbuf-2.40.0/lib/lib/x86_64-linux-gnu/pkgconfig:/home/gtbureau/project/fribidi-1.0.13/lib/lib/pkgconfig:/home/gtbureau/project/pixman-0.36.0/lib/lib/pkgconfig:/home/gtbureau/project/fontconfig-2.14.2/lib/lib/pkgconfig:/home/gtbureau/project/freetype-2.13.1/lib/lib/pkgconfig:/home/gtbureau/project/zlib-1.2.11/lib/lib/pkgconfig:/home/gtbureau/project/libpng-1.6.34/lib/lib/pkgconfig:/home/gtbureau/project/expat-2.5.0/lib/lib/pkgconfig:/home/gtbureau/project/util-linux-2.39.1/usrlib/lib/pkgconfig:/home/gtbureau/project/harfbuzz-6.0.0/lib/lib/pkgconfig
configure中pango模块有修改
makefile中删掉demos模块编译
./configure --prefix=/home/gtbureau/project/gtk+-2.24.32/lib
make
make install
编译gtk2成功(因为webkitgtk2.4.10版本依赖于gtk2,所以也编了gtk2,尽管后面没用到)
--------------------------------------------------------------------------------------------------------------------------------------
编译libjpeg
cmake .
make
make DESTDIR=/home/gtbureau/project/libjpeg-turbo-3.0.0/lib install
export LIBRARY_PATH=/home/gtbureau/project/libjpeg-turbo-3.0.0/lib/opt/libjpeg-turbo/lib64:$LIBRARY_PATH
export C_INCLUDE_PATH=/home/gtbureau/project/libjpeg-turbo-3.0.0/lib/opt/libjpeg-turbo/include:$C_INCLUDE_PATH
export PATH=$PATH:/home/gtbureau/project/libjpeg-turbo-3.0.0/lib/opt/libjpeg-turbo/bin
编译libwebp
./autogen.sh
./configure --prefix=/home/gtbureau/project/libwebp-1.3.1/lib
make
make install
export LIBRARY_PATH=/home/gtbureau/project/libwebp-1.3.1/lib/lib:$LIBRARY_PATH
export C_INCLUDE_PATH=/home/gtbureau/project/libwebp-1.3.1/lib/include:$C_INCLUDE_PATH
编译libicu
./configure --prefix=/home/gtbureau/project/icu-icu4x-2023-05-02-73.x/icu4c/source/lib
make
make install
export LIBRARY_PATH=/home/gtbureau/project/icu-icu4x-2023-05-02-73.x/icu4c/source/lib/lib:$LIBRARY_PATH
export C_INCLUDE_PATH=/home/gtbureau/project/icu-icu4x-2023-05-02-73.x/icu4c/source/lib/include:$C_INCLUDE_PATH
export PATH=$PATH:/home/gtbureau/project/icu-icu4x-2023-05-02-73.x/icu4c/source/lib/bin
编译libXt
sudo apt-get install libsm-dev libice-dev
./configure --prefix=/home/gtbureau/project/libXt-1.3.0/lib
make
make install
export LIBRARY_PATH=/home/gtbureau/project/libXt-1.3.0/lib/lib:$LIBRARY_PATH
export C_INCLUDE_PATH=/home/gtbureau/project/libXt-1.3.0/lib/include:$C_INCLUDE_PATH
编译libXcomposite
./configure --prefix=/home/gtbureau/project/libXcomposite-0.4.6/lib
make
make install
编译libXdamage
./configure --prefix=/home/gtbureau/project/libXdamage-1.1.6/lib
make
make install
编译sqlite3
./configure --prefix=/home/gtbureau/project/sqlite-autoconf-3430000/lib
make
make install
编译libsoup
sudo apt-get install intltool
./configure --prefix=/home/gtbureau/project/libsoup-2.50.0/lib
make
make install
编译libgpg-error
./configure --prefix=/home/gtbureau/project/libgpg-error-1.47/lib
make
make install
export LIBRARY_PATH=/home/gtbureau/project/libgpg-error-1.47/lib/lib:$LIBRARY_PATH
export C_INCLUDE_PATH=/home/gtbureau/project/libgpg-error-1.47/lib/include:$C_INCLUDE_PATH
export PATH=$PATH:/home/gtbureau/project/libgpg-error-1.47/lib/bin
编译libgcrypt
./configure --prefix=/home/gtbureau/project/libgcrypt-1.10.2/lib
make
make install
export LIBRARY_PATH=/home/gtbureau/project/libgcrypt-1.10.2/lib/lib:$LIBRARY_PATH
export C_INCLUDE_PATH=/home/gtbureau/project/libgcrypt-1.10.2/lib/include:$C_INCLUDE_PATH
export PATH=$PATH:/home/gtbureau/project/libgcrypt-1.10.2/lib/bin
编译libsecret(依赖libgpg-error和libgcrypt)
./configure --prefix=/home/gtbureau/project/libsecret-0.9/lib
make
make isntall
编译harfbuzz-icu
重新编译harfbuzz即可
编译libxslt,依赖libgcrypt和libxml2
export PATH=$PATH:/home/gtbureau/project/libgcrypt-1.10.2/lib/bin
export LIBRARY_PATH=/home/gtbureau/project/libxml2-2.9.9/lib/lib:$LIBRARY_PATH
export C_INCLUDE_PATH=/home/gtbureau/project/libxml2-2.9.9/lib/include:$C_INCLUDE_PATH
export PATH=$PATH:/home/gtbureau/project/libxml2-2.9.9/lib/bin
如果报automake版本错误,可将configure.ac文件修改automake到系统版本
./autogen.sh
./configure --prefix=/home/gtbureau/project/libxslt-1.1.38/lib
make
make install
编译gstreamer
./autogen.sh
./configure --prefix=/home/gtbureau/project/gstreamer-1.10.2/lib
make
make install
编译gst-plugins-base
export PKG_CONFIG_PATH=/home/gtbureau/project/gstreamer-1.10.2/lib/lib/pkgconfig(注意:只依赖于这个路径,给其他多余的路径可能make会报错)
./autogen.sh
./configure --prefix=/home/gtbureau/project/gst-plugins-base-1.10.2/lib
make
make install
将gtk+3的pkgconfig目录中的gtk+-3.0.pc文件复制一份命名为gtk+-2.0.pc即可configure通过
C_INCLUDE_PATH=/home/gtbureau/project/icu-icu4x-2023-05-02-73.x/icu4c/source/lib/include
export CPPFLAGS="-I/home/gtbureau/project/icu-icu4x-2023-05-02-73.x/icu4c/source/lib/include -I/home/gtbureau/project/libjpeg-turbo-3.0.0/lib/opt/libjpeg-turbo/include -I/home/gtbureau/project/libwebp-1.3.1/lib/include -I/home/gtbureau/project/libXcomposite-0.4.6/lib/include -I/home/gtbureau/project/libXdamage-1.1.6/lib/include -I/home/gtbureau/project/cairo-1.17.6/lib/include -I/home/gtbureau/project/gtk+-3.24.29/lib/include"
export LDFLAGS="-L/home/gtbureau/project/icu-icu4x-2023-05-02-73.x/icu4c/source/lib/lib -L/home/gtbureau/project/libjpeg-turbo-3.0.0/lib/opt/libjpeg-turbo/lib64 -L=/home/gtbureau/project/libwebp-1.3.1/lib/lib -L/home/gtbureau/project/libXcomposite-0.4.6/lib/lib -L/home/gtbureau/project/libXdamage-1.1.6/lib/lib -L/home/gtbureau/project/cairo-1.17.6/lib/lib -L/home/gtbureau/project/gtk+-3.24.29/lib/lib/x86_64-linux-gnu/"
export CPPFLAGS=-I/home/gtbureau/project/cairo-1.17.6/lib/include
export LDFLAGS=-L/home/gtbureau/project/cairo-1.17.6/lib/lib
PKG_CONFIG_PATH=/home/gtbureau/project/zlib-1.2.11/lib/lib/pkgconfig:/home/gtbureau/project/pcre-8.45/lib/lib/pkgconfig:/home/gtbureau/project/pixman-0.36.0/lib/lib/pkgconfig:/home/gtbureau/project/libpng-1.6.34/lib/lib/pkgconfig:/home/gtbureau/project/glib-2.58.3/lib/lib/pkgconfig:/home/gtbureau/project/libffi-3.2.1/lib/lib/pkgconfig:/home/gtbureau/project/util-linux-2.39.1/usrlib/lib/pkgconfig:/home/gtbureau/project/libffi-3.2.1/lib/lib/pkgconfig:/home/gtbureau/project/cairo-1.17.6/lib/lib/pkgconfig:/home/gtbureau/project/gobject-introspection-1.50.0/lib/lib/pkgconfig:/home/gtbureau/project/atk-2.35.1/lib/lib/x86_64-linux-gnu/pkgconfig:/home/gtbureau/project/gdk-pixbuf-2.40.0/lib/lib/x86_64-linux-gnu/pkgconfig:/home/gtbureau/project/freetype-2.13.1/lib/lib/pkgconfig:/home/gtbureau/project/fontconfig-2.14.2/lib/lib/pkgconfig:/home/gtbureau/project/harfbuzz-6.0.0/lib/lib/pkgconfig:/home/gtbureau/project/fribidi-1.0.13/lib/lib/pkgconfig:/home/gtbureau/project/pango-1.42.3/lib/lib/x86_64-linux-gnu/pkgconfig:/home/gtbureau/project/libepoxy-1.5.3/lib/lib/x86_64-linux-gnu/pkgconfig:/home/gtbureau/project/libxml2-2.9.9/lib/lib/pkgconfig:/home/gtbureau/project/xcb-proto-1.15.2/lib/share/pkgconfig:/home/gtbureau/project/libxcb-1.15/lib/lib/pkgconfig:/home/gtbureau/project/wayland-1.21.93/lib/lib/x86_64-linux-gnu/pkgconfig:/home/gtbureau/project/wayland-protocols-1.32/lib/share/pkgconfig:/home/gtbureau/project/at-spi2-atk-AT_SPI2_ATK_2_25_2/lib/lib/pkgconfig:/home/gtbureau/project/libjpeg-turbo-3.0.0/lib/opt/libjpeg-turbo/lib64/pkgconfig:/home/gtbureau/project/gtk+-3.24.29/lib/lib/x86_64-linux-gnu/pkgconfig:/home/gtbureau/project/libxkbcommon-xkbcommon-1.5.0/lib/lib/x86_64-linux-gnu/pkgconfig:/home/gtbureau/project/24.29/lib/lib/x86_64-linux-gnu/pkgconfig:/home/gtbureau/project/libwebp-1.3.1/lib/lib/pkgconfig:/home/gtbureau/project/icu-icu4x-2023-05-02-73.x/icu4c/source/lib/lib/pkgconfig:/home/gtbureau/project/libXt-1.3.0/lib/lib/pkgconfig:/home/gtbureau/project/libXcomposite-0.4.6/lib/lib/pkgconfig:/home/gtbureau/project/libXdamage-1.1.6/lib/lib/pkgconfig:/home/gtbureau/project/sqlite-autoconf-3430000/lib/lib/pkgconfig:/home/gtbureau/project/libsoup-2.50.0/lib/lib/pkgconfig:/home/gtbureau/project/libgpg-error-1.47/lib/lib/pkgconfig:/home/gtbureau/project/libgcrypt-1.10.2/lib/lib/pkgconfig:/home/gtbureau/project/libsecret-0.9/lib/lib/pkgconfig:/home/gtbureau/project/libxslt-1.1.38/lib/lib/pkgconfig:/home/gtbureau/project/gstreamer-1.10.2/lib/lib/pkgconfig:/home/gtbureau/project/gst-plugins-base-1.10.2/lib/lib/pkgconfig:/home/gtbureau/project/gtk+-2.24.32/lib/lib/pkgconfig
编译webkitgtk-2.4.10
./configure CFLAGS="-DGTK_API_VERSION_2=false" --prefix=/home/gtbureau/project/webkitgtk-2.4.10/lib
将所有DGTK_API_VERSION_2=1改为0
./configure --prefix=/home/gtbureau/project/webkitgtk-2.4.10/lib
export LIBRARY_PATH=/home/gtbureau/project/icu-icu4x-2023-05-02-73.x/icu4c/source/lib/lib:$LIBRARY_PATH
export C_INCLUDE_PATH=/home/gtbureau/project/icu-icu4x-2023-05-02-73.x/icu4c/source/lib/include:$C_INCLUDE_PATH
export LIBRARY_PATH=/home/gtbureau/project/libwebp-1.3.1/lib/lib:$LIBRARY_PATH
export C_INCLUDE_PATH=/home/gtbureau/project/libwebp-1.3.1/lib/include:$C_INCLUDE_PATH
export LIBRARY_PATH=/home/gtbureau/project/libjpeg-turbo-3.0.0/lib/opt/libjpeg-turbo/lib64:$LIBRARY_PATH
export C_INCLUDE_PATH=/home/gtbureau/project/libjpeg-turbo-3.0.0/lib/opt/libjpeg-turbo/include:$C_INCLUDE_PATH
export PATH=$PATH:/home/gtbureau/project/icu-icu4x-2023-05-02-73.x/icu4c/source/lib/bin
export PANGO_CFLAGS=/home/gtbureau/project/pango-1.42.3/lib/include
export PANGO_LIBS=/home/gtbureau/project/pango-1.42.3/lib/lib/x86_64-linux-gnu
export CAIRO_CFLAGS=/home/gtbureau/project/cairo-1.17.6/lib/include
export CAIRO_LIBS=/home/gtbureau/project/cairo-1.17.6/lib/lib
export GTK_CFLAGS=/home/gtbureau/project/gtk+-3.24.29/lib/include
export GTK_LIBS=/home/gtbureau/project/gtk+-3.24.29/lib/lib/x86_64-linux-gnu
export GTK_X11_CFLAGS=/home/gtbureau/project/gtk+-3.24.29/lib/include
export GTK_X11_LIBS=/home/gtbureau/project/gtk+-3.24.29/lib/lib/x86_64-linux-gnu
export FREETYPE_CFLAGS=/home/gtbureau/project/freetype-2.13.1/lib/include
export FREETYPE_LIBS=/home/gtbureau/project/freetype-2.13.1/lib/lib
export GTK2_CFLAGS=/home/gtbureau/project/gtk+-3.24.29/lib/include
export GTK2_LIBS=/home/gtbureau/project/gtk+-3.24.29/lib/lib/x86_64-linux-gnu
export ICU_LIBS=/home/gtbureau/project/icu-icu4x-2023-05-02-73.x/icu4c/source/lib/lib
export ICU_CFLAGS=/home/gtbureau/project/icu-icu4x-2023-05-02-73.x/icu4c/source/lib/include
export LD_LIBRARY_PATH=/home/gtbureau/project/icu-icu4x-2023-05-02-73.x/icu4c/source/lib/lib:/home/gtbureau/project/libjpeg-turbo-3.0.0/lib/opt/libjpeg-turbo/lib64:/home/gtbureau/project/cairo-1.17.6/lib/lib:/home/gtbureau/project/freetype-2.13.1/lib/lib:/home/gtbureau/project/gtk+-2.24.32/lib/lib:/home/gtbureau/project/pango-1.42.3/lib/lib:/home/gtbureau/project/harfbuzz-6.0.0/lib/lib:/home/gtbureau/project/fontconfig-2.14.2/lib/lib:/home/gtbureau/project/gtk+-3.24.29/lib/lib/x86_64-linux-gnu
export C_INCLUDE_PATH=/home/gtbureau/project/libXt-1.3.0/lib/include:/home/gtbureau/project/gtk+-3.24.29/lib/include/gtk-3.0:/home/gtbureau/project/pango-1.42.3/lib/include/pango-1.0:/home/gtbureau/project/cairo-1.17.6/lib/include/cairo:/home/gtbureau/project/gdk-pixbuf-2.40.0/lib/include/gdk-pixbuf-2.0:/home/gtbureau/project/atk-2.35.1/lib/include/atk-1.0:/home/gtbureau/project/libXcomposite-0.4.6/lib/include:/home/gtbureau/project/gtk+-2.24.32/lib/include/gtk-2.0:$C_INCLUDE_PATH
export CPLUS_INCLUDE_PATH=/home/gtbureau/project/libXt-1.3.0/lib/include:/home/gtbureau/project/libXdamage-1.1.6/lib/include:/home/gtbureau/project/libXcomposite-0.4.6/lib/include:/home/gtbureau/project/gtk+-3.24.29/lib/include/gtk-3.0:/home/gtbureau/project/libwebp-1.3.1/lib/include:/home/gtbureau/project/libjpeg-turbo-3.0.0/lib/opt/libjpeg-turbo/include:/home/gtbureau/project/fontconfig-2.14.2/lib/include:/home/gtbureau/project/atk-2.35.1/lib/include/atk-1.0:/home/gtbureau/project/gdk-pixbuf-2.40.0/lib/include/gdk-pixbuf-2.0:/home/gtbureau/project/cairo-1.17.6/lib/include/cairo:/home/gtbureau/project/pango-1.42.3/lib/include/pango-1.0:/home/gtbureau/project/pango-1.42.3/lib/include:/home/gtbureau/project/gtk+-3.24.29/lib/include/gtk-3.0:/home/gtbureau/project/gtk+-3.24.29/lib/include:/home/gtbureau/project/cairo-1.17.6/lib/include:/home/gtbureau/project/zlib-1.2.11/lib/include:/home/gtbureau/project/icu-icu4x-2023-05-02-73.x/icu4c/source/lib/include:/home/gtbureau/project/gtk+-2.24.32/lib/include/gtk-2.0
bug:
Source/JavaScriptCore/API/JSStringRef.cpp
Source/WebCore/platform/graphics/SegmentedFontData.cpp
Source/WebCore/platform/text/icu/UTextProvider.h
Source/WebCore/platform/text/TextCodecICU.cpp
Source/WebCore/dom/Document.cpp
Source/WebKit2/Shared/API/c/WKString.cpp
修改GTK_API_VERSION_2_guotian
Source/WebCore/platform/graphics/cairo/GraphicsContextCairo.cpp
webkitgtk-2.4.10有很多源代码错误编译不过,换个版本2.26.4(该版本不依赖gtk2),但是前面依赖得包依然有用
----------------------------------------------------------------------------------------------------------------------------------------------
编译libtasn
./configure --prefix=/home/gtbureau/project/libtasn1-4.19.0/lib
make
make install
编译enchant
./autogen.sh
./configure --prefix=/home/gtbureau/project/enchant-1.6.0/lib
make
make install
编译libwpe
meson _build --prefix=/home/gtbureau/project/libwpe-1.15.1/lib
cd _build/
ninja
ninja install
编译libnotify
export LD_LIBRARY_PATH=/home/gtbureau/project/freetype-2.13.1/lib/lib:/home/gtbureau/project/wayland-1.21.93/lib/lib/x86_64-linux-gnu
./configure --prefix=/home/gtbureau/project/libnotify-0.7.0/lib
make
make install
编译hyphen
autoreconf -fvi
./configure --prefix=/home/gtbureau/project/hyphen-master/lib
chmod +x ./tbhyphext.sh
make
make install
编译openjpeg
cmake .
make
make DESTDIR=/home/gtbureau/project/openjpeg-2.5.0/lib install
将-DOpenJPEG_DIR=/home/gtbureau/project/openjpeg-2.5.0/lib/usr/local/lib/openjpeg-2.5放在cmake中
编译brotil
cmake .
make
make DESTDIR=/home/gtbureau/project/brotli-1.1.0rc/lib install
编译woff,依赖brotil
cmake -DBROTLIDEC_LIBRARIES=/home/gtbureau/project/brotli-1.1.0rc/lib/usr/local/lib -DBROTLIDEC_INCLUDE_DIRS=/home/gtbureau/project/brotli-1.1.0rc/lib/usr/local/include -DBROTLIENC_LIBRARIES=/home/gtbureau/project/brotli-1.1.0rc/lib/usr/local/lib -DBROTLIENC_INCLUDE_DIRS=/home/gtbureau/project/brotli-1.1.0rc/lib/usr/local/include .
修改cmakelist.txt,在woff2 decompress和woff2_compress分别加上下面两句话
target link libraries(woff2 decompress /home/gtbureau/proiect/brotli-1.1.0rc/lib/usr/local/lib/libbrotlidec.so)
target_link_libraries(woff2_compress /home/gtbureau/project/brotli-1.1.0rc/lib/usr/local/lib/libbrotlienc.so)
编译libseccomp
./autogen.sh
./configure --prefix=/home/gtbureau/project/libseccomp-2.5.4/lib
make
make install
编译gst-plugins-bad
PKG_CONFIG_PATH=/home/gtbureau/project/gstreamer-1.10.2/lib/lib/pkgconfig:/home/gtbureau/project/gst-plugins-base-1.10.2/lib/lib/pkgconfig:/home/gtbureau/project/libgcrypt-1.10.2/lib/lib/pkgconfig:/home/gtbureau/project/libgpg-error-1.47/lib/lib/pkgconfig
export LIBRARY_PATH=/home/gtbureau/project/libgpg-error-1.47/lib/lib:/home/gtbureau/project/libgcrypt-1.10.2/lib/lib:$LIBRARY_PATH
export C_INCLUDE_PATH=/home/gtbureau/project/libgpg-error-1.47/lib/include:/home/gtbureau/project/libgcrypt-1.10.2/lib/include:$C_INCLUDE_PATH
export PATH=/home/gtbureau/project/libgpg-error-1.47/lib/bin:/home/gtbureau/project/libgcrypt-1.10.2/lib/bin:$PATH
./configure --prefix=/home/gtbureau/project/gst-plugins-bad-1.10.2/lib
vkdisplay.c中加上
#define VK_KHR_WAYLAND_SURFACE_EXTENSION_NAME "VK_KHR_wayland_surface"
即可make通过
编译gstreamer-1.14
不加任何环境变量能正常编过
./configure --prefix=/home/gtbureau/project/gstreamer-1.14.0/lib
make
make install
编译libsoup-2.60.0(2.50版本不适用,soup_auth_negotiate_supported没有该函数)
sudo apt-get install valac
PKG_CONFIG_PATH=/home/gtbureau/project/libxml2-2.9.9/lib/lib/pkgconfig:/home/gtbureau/project/sqlite-autoconf-3430000/lib/lib/pkgconfig
./configure --prefix=/home/gtbureau/project/libsoup-2.60.0/lib
make
make install
编译webkitgtk-2.26.4版本
cmake -DFREETYPE_LIBRARY=/home/gtbureau/project/freetype-2.13.1/lib/lib/libfreetype.so -DFREETYPE_INCLUDE_DIRS=/home/gtbureau/project/freetype-2.13.1/lib/include -DLIBGCRYPT_LIBRARY=/home/gtbureau/project/libgcrypt-1.10.2/lib/lib/libgcrypt.so -DLIBGCRYPT_INCLUDE_DIR=/home/gtbureau/project/libgcrypt-1.10.2/lib/include -DICU_INCLUDE_DIR=/home/gtbureau/project/icu-icu4x-2023-05-02-73.x/icu4c/source/lib/include -DICU_LIBRARY=/home/gtbureau/project/icu-icu4x-2023-05-02-73.x/icu4c/source/lib/lib -DWOFF2DEC_INCLUDE_DIRS=/home/gtbureau/project/woff2-1.0.2/lib/usr/local/include -DWOFF2DEC_LIBRARIES=/home/gtbureau/project/woff2-1.0.2/lib/usr/local/lib/libwoff2dec.so -DX11_Xcomposite_LIB=/home/gtbureau/project/libXcomposite-0.4.6/lib/lib/libXcomposite.so -DX11_Xcomposite_INCLUDE_PATH=/home/gtbureau/project/libXcomposite-0.4.6/lib/include -DX11_Xt_LIB=/home/gtbureau/project/libXt-1.3.0/lib/lib/libXt.so -DICU_ROOT=/home/gtbureau/project/icu-icu4x-2023-05-02-73.x/icu4c/source/lib -DJPEG_LIBRARY=/home/gtbureau/project/libjpeg-turbo-3.0.0/lib/opt/libjpeg-turbo/lib64/libjpeg.so -DJPEG_INCLUDE_DIR=/home/gtbureau/project/libjpeg-turbo-3.0.0/lib/opt/libjpeg-turbo/include -DPNG_LIBRARY=/home/gtbureau/project/libpng-1.6.34/lib/lib/libpng.so -DPNG_PNG_INCLUDE_DIR=/home/gtbureau/project/libpng-1.6.34/lib/include -DHYPHEN_INCLUDE_DIR=/home/gtbureau/project/hyphen-master/lib/include -DHYPHEN_LIBRARIES=/home/gtbureau/project/hyphen-master/lib/lib/libhyphen.so -DUSE_WPE_RENDERER=OFF -DENABLE_MINIBROWSER=ON -DENABLE_GAMEPAD=OFF -DENABLE_BUBBLEWRAP_SANDBOX=OFF -DUSE_WOFF2=OFF -DPORT=GTK .
注释掉OptionGTK.cmake的317行libXcomposite报错信息
webkitgtk-2.26.4需要修改源代码地方:
1./home/gtbureau/project/webkitgtk-2.26.4/Source/WTF/wtf/text/icu/UTextProvider.h加上
#define TRUE 1
#define FALSE 0
2.
fatal error: gcrypt.h: 没有那个文件或目录#include <gcrypt.h>
fatal error: gpg-error.h: 没有那个文件或目录#include <gpg-error.h>
fatal error: libtasn1.h: 没有那个文件或目录#include <libtasn1.h>
/home/gtbureau/project/webkitgtk-2.26.4/Source/WebCore/PAL/pal/CMakeList.txt加上
include_directories(/home/gtbureau/project/libgcrypt-1.10.2/lib/include)
include_directories(/home/gtbureau/project/libgpg-error-1.47/lib/include)
include_directories(/home/gtbureau/project/libtasn1-4.19.0/lib/include)
fatal error: gpg-error.h: 没有那个文件或目录#include <gpg-error.h>
/home/gtbureau/project/webkitgtk-2.26.4/Source/WebCore/CMakeList.txt加上
include_directories(/home/gtbureau/project/libgpg-error-1.47/lib/include)
Xcomposite没有找到:
include_directories(/home/gtbureau/project/libXcomposite-0.4.6/lib/include)
Xdamage没有找到:
include_directories(/home/gtbureau/project/libXdamage-1.1.6/lib/include)
hyphen没找到
include_directories(/home/gtbureau/project/hyphen-master/lib/include)
最后编译可能会出现libgcrypt未定义问题
include_directories(/home/gtbureau/project/libgcrypt-1.10.2/lib/include)
cairo没找到:
webkitgtk-2.26.4/Source/WebKit/CMakeList.txt加上
include_directories(/home/gtbureau/project/cairo-1.17.6/lib/include)
Xdamage没有找到:
include_directories(/home/gtbureau/project/libXdamage-1.1.6/lib/include)
Xcomposite没有找到:
include_directories(/home/gtbureau/project/libXcomposite-0.4.6/lib/include)
3./webkitgtk-2.26.4/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp
386行GST_TYPE_GL_CONTEXT更换为GST_TYPE_CONTEXT
5.
export PATH=/home/gtbureau/project/wayland-1.21.93/lib/bin:$PATH
6.
webkitgtk-2.26.4/CMakeList.txt加上
link_directories(/home/gtbureau/project/cairo-1.17.6/lib/lib)
link_directories(/home/gtbureau/project/gtk+-3.24.29/lib/lib/x86_64-linux-gnu) link_directories(/home/gtbureau/project/pango-1.42.3/lib/lib/x86_64-linux-gnu)
link directories(/home/gtbureau/project/atk-2.35.1/ib/lib/x86 64-linux-gnu)
link directories(/home/gtbureau/project/gdk-pixbuf-2,40.0/lib/lib/x86 64-linux-gnu)
link_directories(/home/gtbureau/project/libnotify-0.7.0/lib/lib)
link_directories(/home/gtbureau/project/libsecret-0.9/lib/lib)
link_directories(/home/gtbureau/project/wayland-1.21.93/lib/lib/x86 64-linux-gnu)
link_directories(/home/gtbureau/project/glib-2.58.3/lib/lib)
7.
将Gtk-3.0.gir Gdk-3.0.gir Soup-2.4.gir复制到gobject-introspection的lib/share/gir-1.0目录
make
make DESTDIR=/home/gtbureau/project/webkitgtk-2.26.4/lib install
编译webkitgtk成功!
PKG_CONFIG_PATH=/home/gtbureau/project/zlib-1.2.11/lib/lib/pkgconfig:/home/gtbureau/project/pcre-8.45/lib/lib/pkgconfig:/home/gtbureau/project/pixman-0.36.0/lib/lib/pkgconfig:/home/gtbureau/project/libpng-1.6.34/lib/lib/pkgconfig:/home/gtbureau/project/glib-2.58.3/lib/lib/pkgconfig:/home/gtbureau/project/libffi-3.2.1/lib/lib/pkgconfig:/home/gtbureau/project/util-linux-2.39.1/usrlib/lib/pkgconfig:/home/gtbureau/project/libffi-3.2.1/lib/lib/pkgconfig:/home/gtbureau/project/cairo-1.17.6/lib/lib/pkgconfig:/home/gtbureau/project/gobject-introspection-1.50.0/lib/lib/pkgconfig:/home/gtbureau/project/atk-2.35.1/lib/lib/x86_64-linux-gnu/pkgconfig:/home/gtbureau/project/gdk-pixbuf-2.40.0/lib/lib/x86_64-linux-gnu/pkgconfig:/home/gtbureau/project/freetype-2.13.1/lib/lib/pkgconfig:/home/gtbureau/project/fontconfig-2.14.2/lib/lib/pkgconfig:/home/gtbureau/project/harfbuzz-6.0.0/lib/lib/pkgconfig:/home/gtbureau/project/fribidi-1.0.13/lib/lib/pkgconfig:/home/gtbureau/project/pango-1.42.3/lib/lib/x86_64-linux-gnu/pkgconfig:/home/gtbureau/project/libepoxy-1.5.3/lib/lib/x86_64-linux-gnu/pkgconfig:/home/gtbureau/project/libxml2-2.9.9/lib/lib/pkgconfig:/home/gtbureau/project/xcb-proto-1.15.2/lib/share/pkgconfig:/home/gtbureau/project/libxcb-1.15/lib/lib/pkgconfig:/home/gtbureau/project/wayland-1.21.93/lib/lib/x86_64-linux-gnu/pkgconfig:/home/gtbureau/project/wayland-protocols-1.32/lib/share/pkgconfig:/home/gtbureau/project/libxkbcommon-xkbcommon-1.5.0/lib/lib/x86_64-linux-gnu/pkgconfig:/home/gtbureau/project/at-spi2-atk-AT_SPI2_ATK_2_25_2/lib/lib/pkgconfig:/home/gtbureau/project/libjpeg-turbo-3.0.0/lib/opt/libjpeg-turbo/lib64/pkgconfig:/home/gtbureau/project/gtk+-3.24.29/lib/lib/x86_64-linux-gnu/pkgconfig:/home/gtbureau/project/libwebp-1.3.1/lib/lib/pkgconfig:/home/gtbureau/project/icu-icu4x-2023-05-02-73.x/icu4c/source/lib/lib/pkgconfig:/home/gtbureau/project/libXt-1.3.0/lib/lib/pkgconfig:/home/gtbureau/project/libXcomposite-0.4.6/lib/lib/pkgconfig:/home/gtbureau/project/libXdamage-1.1.6/lib/lib/pkgconfig:/home/gtbureau/project/sqlite-autoconf-3430000/lib/lib/pkgconfig:/home/gtbureau/project/libsoup-2.60.0/lib/lib/pkgconfig:/home/gtbureau/project/libgpg-error-1.47/lib/lib/pkgconfig:/home/gtbureau/project/libgcrypt-1.10.2/lib/lib/pkgconfig:/home/gtbureau/project/libsecret-0.9/lib/lib/pkgconfig:/home/gtbureau/project/libxslt-1.1.38/lib/lib/pkgconfig:/home/gtbureau/project/gst-plugins-base-1.10.2/lib/lib/pkgconfig:/home/gtbureau/project/libtasn1-4.19.0/lib/lib/pkgconfig:/home/gtbureau/project/enchant-1.6.0/lib/lib/pkgconfig:/home/gtbureau/project/libwpe-1.15.1/lib/lib/x86_64-linux-gnu/pkgconfig:/home/gtbureau/project/libnotify-0.7.0/lib/lib/pkgconfig:/home/gtbureau/project/openjpeg-2.5.0/lib/usr/local/lib/pkgconfig:/home/gtbureau/project/brotli-1.1.0rc/lib/usr/local/lib/pkgconfig:/home/gtbureau/project/woff2-1.0.2/lib/usr/local/lib/pkgconfig:/home/gtbureau/project/libseccomp-2.5.4/lib/lib/pkgconfig:/home/gtbureau/project/gstreamer-1.14.0/lib/lib/pkgconfig:/home/gtbureau/project/gst-plugins-bad-1.10.2/lib/lib/pkgconfig:/home/gtbureau/project/expat-2.5.0/lib/lib/pkgconfig:/home/gtbureau/project/webkitgtk-2.26.4/lib/usr/local/lib/pkgconfig
-------------------------------------------------------------------------------------------------------------
拷贝libz.so到/usr/lib/x86_64-linux-gnu/目录
sudo apt install libxrender-dev
sudo apt install libxfixes-dev
--------------------------------------------------------------------------------------------------------
vs远程Linux开发使用编译好的gtk和webkitgtk库
C/C++附加包含目录
/home/gtbureau/project/libsoup-2.60.0/lib/include/libsoup-2.4
/home/gtbureau/project/atk-2.35.1/lib/include/atk-1.0
/home/gtbureau/project/gdk-pixbuf-2.40.0/lib/include/gdk-pixbuf-2.0
/home/gtbureau/project/cairo-1.17.6/lib/include/cairo
/home/gtbureau/project/pango-1.42.3/lib/include/pango-1.0
/home/gtbureau/project/glib-2.58.3/lib/lib/glib-2.0/include
/home/gtbureau/project/glib-2.58.3/lib/include/glib-2.0
/home/gtbureau/project/webkitgtk-2.26.4/lib/usr/local/include/webkitgtk-4.0
/home/gtbureau/project/gtk+-3.24.29/lib/include/gtk-3.0
链接器
附加库目录
/home/gtbureau/project/freetype-2.13.1/lib/lib
/home/gtbureau/project/cairo-1.17.6/lib/lib
/home/gtbureau/project/pango-1.42.3/lib/lib/x86_64-linux-gnu
/home/gtbureau/project/gtk+-3.24.29/lib/lib/x86_64-linux-gnu
/home/gtbureau/project/glib-2.58.3/lib/lib
/home/gtbureau/project/webkitgtk-2.26.4/lib/usr/local/lib
/home/gtbureau/project/wayland-1.21.93/lib/lib/x86_64-linux-gnu
/home/gtbureau/project/atk-2.35.1/lib/lib/x86_64-linux-gnu
附加依赖项
-lgtk-3 -lgdk-3 -lglib-2.0 -lgio-2.0 -lgobject-2.0 -lpango-1.0 -lcairo -lfreetype -lwebkit2gtk-4.0 -ljavascriptcoregtk-4.0 -latk-1.0 -lwayland-client
命令行
-Wl,-rpath=/home/gtbureau/project/icu-icu4x-2023-05-02-73.x/icu4c/source/lib/lib
所有编译的包和源代码可以私信获取