Am 17.11.2022 um 20:42 schrieb Alexey Edelev:
Hi,
You may try to override the system library using the LD_PRELOAD environment
variable. So ld will prefer to resolve the missing symbols from your
library but not the system one:
https://man7.org/linux/man-pages/man8/ld.so.8.html
Also IRRC, setting LD_LIBRARY_PATH to the directory containing the custom
library, may force using your library instead of the system one.
Regards,
Alexey.
i will try that thanks
but why is that LD_PRELOAD/LD_LIBRARY_PATH-stuff not needed for a self
build Glib?
build Glib
cd ~/qt6_dev
git clone https://gitlab.gnome.org/GNOME/glib.git
cd glib
git checkout 2.72.1
cd ..
mkdir glib-build
cd glib-build
meson setup ../glib -Dbuildtype=debug --prefix ~/qt6_dev/glib-install
meson compile
meson install
rebuild qt6 with my build Glib
cd qt6-build
rm * -rf
PKG_CONFIG_PATH=~/qt6_dev/glib-install/lib/x86_64-linux-gnu/pkgconfig
../qt6/qtbase/configure -debug -opensource -nomake examples -nomake
tests -prefix ~/qt6_dev/qt6-install
cmake --build . --parallel 4
cmake --install .
only difference to dbus is the PKG_CONFIG_PATH
as a result is that all qt libs are directly refering to my self build Glib
ldd /home/linux/qt6_dev/qt6-build/lib/libQt6Core.so | grep glib
libglib-2.0.so.0 =>
/home/linux/qt6_dev/glib-install/lib/x86_64-linux-gnu/libglib-2.0.so.0
(0x00007f02e164b000)
ldd /home/linux/qt6_dev/qt6-build/lib/libQt6DBus.so.6 | grep glib
libglib-2.0.so.0 =>
/home/linux/qt6_dev/glib-install/lib/x86_64-linux-gnu/libglib-2.0.so.0
(0x00007fdbd319e000)
_______________________________________________
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest