# Enable the build env
scl enable devtoolset-7 python27 rh-python36 bash
# Download tarballs
curl \
-LOC - https://mirrors.edge.kernel.org/pub/linux/utils/util-linux/v2.32/util-linux-2.32.tar.xz \
-LOC - https://ftp.pcre.org/pub/pcre/pcre-8.42.tar.bz2 \
-LOC - http://ftp.gnome.org/pub/gnome/sources/gtk+/3.22/gtk+-3.22.30.tar.xz \
-LOC - http://ftp.gnome.org/pub/gnome/sources/glib/2.54/glib-2.54.3.tar.xz \
-LOC - http://ftp.gnome.org/pub/gnome/sources/pango/1.40/pango-1.40.14.tar.xz \
-LOC - http://ftp.gnome.org/pub/gnome/sources/gdk-pixbuf/2.36/gdk-pixbuf-2.36.12.tar.xz \
-LOC - http://ftp.gnome.org/pub/gnome/sources/atk/2.26/atk-2.26.1.tar.xz \
-LOC - http://ftp.gnome.org/pub/gnome/sources/gobject-introspection/1.54/gobject-introspection-1.54.1.tar.xz \
-LOC - http://cairographics.org/snapshots/cairo-1.15.12.tar.xz \
-LOC - https://www.freedesktop.org/software/harfbuzz/release/harfbuzz-1.8.1.tar.bz2 \
-LOC - http://download.icu-project.org/files/icu4c/61.1/icu4c-61_1-src.tgz \
-LOC - https://www.freedesktop.org/software/fontconfig/release/fontconfig-2.12.93.tar.gz \
-LOC - https://download.savannah.gnu.org/releases/freetype/freetype-2.9.tar.bz2 \
-LOC - http://download.osgeo.org/libtiff/tiff-4.0.9.tar.gz \
-LOC - http://ftp.gnome.org/pub/gnome/sources/at-spi2-atk/2.26/at-spi2-atk-2.26.2.tar.xz \
-LOC - https://dbus.freedesktop.org/releases/dbus/dbus-1.13.4.tar.gz \
-LOC - https://github.com/libexpat/libexpat/releases/download/R_2_2_5/expat-2.2.5.tar.bz2 \
-LOC - http://ftp.gnome.org/pub/gnome/sources/at-spi2-core/2.28/at-spi2-core-2.28.0.tar.xz
# Configure build envexportGTK3_INSTALL_PATH="$HOME/opt/gtk3"exportPKG_CONFIG_PATH="$GTK3_INSTALL_PATH/lib/pkgconfig:/usr/lib/pkgconfig:/usr/lib64/pkgconfig:/usr/share/pkgconfig"exportCPPFLAGS="-I$GTK3_INSTALL_PATH/include"exportCFLAGS="-I$GTK3_INSTALL_PATH/include"exportCXXFLAGS="-I$GTK3_INSTALL_PATH/include"exportLDFLAGS="-L$GTK3_INSTALL_PATH/lib"exportLD_LIBRARY_PATH="$GTK3_INSTALL_PATH/lib:$LD_LIBRARY_PATH"exportPATH="$GTK3_INSTALL_PATH/bin:$PATH"# install meson
pip3 install --user meson
# util-linux (libmount)
tar xf util-linux-2.32.tar.xz
cd util-linux-2.32
./configure \
--prefix "$GTK3_INSTALL_PATH"\
--disable-all-programs \
--enable-libblkid \
--enable-libmount
make -j16
make install
cd ..
# PCRE
tar xf pcre-8.42.tar.bz2
cd pcre-8.42
./configure \
--prefix "$GTK3_INSTALL_PATH"\
--enable-pcre16 \
--enable-pcre32 \
--enable-utf \
--enable-unicode-properties
make -j16
make install
cd ..
# glib
tar xf glib-2.54.3.tar.xz
cd glib-2.54.3
./configure \
--prefix "$GTK3_INSTALL_PATH"
make -j16
make install
cd ..
# ICU
tar xf icu4c-61_1-src.tgz
cd icu/source
./configure \
--prefix "$GTK3_INSTALL_PATH"
make -j16
make install
cd ../..
# Freetype
tar xf freetype-2.9.tar.bz2
cd freetype-2.9
./configure \
--prefix "$GTK3_INSTALL_PATH"
make -j16
make install
cd ..
# Fontconfig
tar xf fontconfig-2.12.93.tar.gz
cd fontconfig-2.12.93
make -j16
make install
cd ..
# Cairo
tar xf cairo-1.15.12.tar.xz
cd cairo-1.15.12
./configure \
--prefix "$GTK3_INSTALL_PATH"
make -j16
make install
cd ..
# Harfbuzz
tar xf harfbuzz-1.8.1.tar.bz2
cd harfbuzz-1.8.1
./configure \
--prefix "$GTK3_INSTALL_PATH"
make -j16
make install
cd ..
# Freetype (bis)cd freetype-2.9
./configure \
--prefix "$GTK3_INSTALL_PATH"
make -j16
make install
cd ..
# Pango
tar xf pango-1.40.14.tar.xz
cd pango-1.40.14
./configure \
--prefix "$GTK3_INSTALL_PATH"
make -j16
make install
cd ..
# libtiff
tar xf tiff-4.0.9.tar.gz
cd tiff-4.0.9
./configure \
--prefix "$GTK3_INSTALL_PATH"
make -j16
make install
cd ..
# Gdk-pixbuff
tar xf gdk-pixbuf-2.36.12.tar.xz
cd gdk-pixbuf-2.36.12
./configure \
--prefix "$GTK3_INSTALL_PATH"
make -j16
make install
cd ..
# atk
tar xf atk-2.26.1.tar.xz
cd atk-2.26.1
./configure \
--prefix "$GTK3_INSTALL_PATH"
make -j16
make install
cd ..
# Expat
tar xf expat-2.2.5.tar.bz2
cd expat-2.2.5
./configure \
--prefix "$GTK3_INSTALL_PATH"
make -j16
make install
cd ..
# Dbus
tar xf dbus-1.13.4.tar.gz
cd dbus-1.13.4
./configure \
--prefix "$GTK3_INSTALL_PATH"
make -j16
make install
cd ..
# At-Spi2
tar xf at-spi2-core-2.28.0.tar.xz
cd at-spi2-core-2.28.0
mkdir build
cd build
~/.local/bin/meson .. \
--prefix "$GTK3_INSTALL_PATH"\
--libdir lib
ninja
ninja install
cd ../..
# At-Spi2 Atk
tar xf at-spi2-atk-2.26.2.tar.xz
cd at-spi2-atk-2.26.2
./configure \
--prefix "$GTK3_INSTALL_PATH"
make -j16
make install
cd ..
# GTK3
tar xf gtk+-3.22.30.tar.xz
cd gtk+-3.22.30
./configure \
--prefix "$GTK3_INSTALL_PATH"
make -j16
make install
cd..
Mais y'a encore un peu de taf à faire
$ LD_LIBRARY_PATH="$HOME/opt/gtk3/lib"$HOME/vscode/bin/code-oss
/home/kilruana/opt/vscode/bin/../code-oss: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /home/kilruana/opt/vscode/bin/../code-oss)/home/kilruana/opt/vscode/bin/../code-oss: /lib64/libc.so.6: version `GLIBC_2.15' not found (required by /home/kilruana/opt/vscode/bin/../code-oss)
/home/kilruana/opt/vscode/bin/../code-oss: /lib64/libc.so.6: version `GLIBC_2.17' not found (required by /home/kilruana/opt/vscode/bin/../code-oss)/home/kilruana/opt/vscode/bin/../code-oss: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.14' not found (required by /home/kilruana/opt/vscode/bin/../code-oss)
/home/kilruana/opt/vscode/bin/../code-oss: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /home/kilruana/opt/vscode/bin/../code-oss)/home/kilruana/opt/vscode/bin/../code-oss: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.18' not found (required by /home/kilruana/opt/vscode/bin/../code-oss)
/home/kilruana/opt/vscode/bin/../code-oss: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.19' not found (required by /home/kilruana/opt/vscode/bin/../code-oss)/home/kilruana/opt/vscode/bin/../code-oss: /usr/lib64/libstdc++.so.6: version `CXXABI_1.3.5' not found (required by /home/kilruana/opt/vscode/bin/../code-oss)
/home/kilruana/opt/vscode/bin/../code-oss: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /home/kilruana/opt/vscode/libnode.so)/home/kilruana/opt/vscode/bin/../code-oss: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.14' not found (required by /home/kilruana/opt/vscode/libnode.so)
/home/kilruana/opt/vscode/bin/../code-oss: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /home/kilruana/opt/vscode/libnode.so)/home/kilruana/opt/vscode/bin/../code-oss: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.18' not found (required by /home/kilruana/opt/vscode/libnode.so)
/home/kilruana/opt/vscode/bin/../code-oss: /usr/lib64/libstdc++.so.6: version `CXXABI_1.3.5' not found (required by /home/kilruana/opt/vscode/libnode.so)/home/kilruana/opt/vscode/bin/../code-oss: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /home/kilruana/opt/vscode/libffmpeg.so)
# Gtk3 sous Centos6
Posté par jtremesay (site web personnel) . En réponse au journal Compilation de VSCode sous Centos 6. Évalué à 7.
Mais y'a encore un peu de taf à faire