Am 17.11.2022 um 20:42 schrieb Alexey Edelev:

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:

Also IRRC, setting LD_LIBRARY_PATH to the directory containing the custom
library, may force using your library instead of the system one.


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
  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
../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/ | grep glib =>

ldd /home/linux/qt6_dev/qt6-build/lib/ | grep glib =>

Interest mailing list

Reply via email to