[Interest] how to link my own GLib build to a Qt 6.4 build?

Dennis Luehring dl.soluz at gmx.net
Wed Nov 9 16:54:38 CET 2022


Am 09.11.2022 um 11:12 schrieb Alexandru Croitor:
> Hi,
>
> Qt find glib2 using this code https://github.com/qt/qtbase/blob/dev/cmake/3rdparty/extra-cmake-modules/find-modules/FindGLIB2.cmake
> which uses pkg-config underneath.
>
> According to https://askubuntu.com/questions/210210/pkg-config-path-environment-variable
> you can try setting the PKG_CONFIG_PATH env variable to the location of your newly installed glib.
>
> According to https://cmake.org/cmake/help/latest/module/FindPkgConfig.html#variable:PKG_CONFIG_USE_CMAKE_PREFIX_PATH
>
> it should be also possible to add a path to the CMAKE_PREFIX_PATH cache var, which will be treated as an extra pkg-config prefix. You would pass it to configure like ./qtbase/configure -debug -- -DCMAKE_PREFIX_PATH=/some/path
>
> So i would play around with those alternatives.
>
> > On 9. Nov 2022, at 11:01, Dennis Luehring <dl.soluz at gmx.net> wrote:
> >
> > i want to test building with TSAN that means i should also build Glib
> > with TSAN
> > - that works but i can't make the Qt 6.4 configure to use my own Glib built
>

thanks for the hints - i will check that


More information about the Interest mailing list