New comment by newbluemoon on void-packages repository https://github.com/void-linux/void-packages/pull/52406#issuecomment-2561752683 Comment: Made a slight modification to the pkg-config-wrapper to find the qt6 tools when cross building on 64 bit host for 32 bit target: ``` diff --git a/common/hooks/pre-configure/02-script-wrapper.sh b/common/hooks/pre-configure/02-script-wrapper.sh index 3d5d6c2ab3b..e2db9e400e9 100644 --- a/common/hooks/pre-configure/02-script-wrapper.sh +++ b/common/hooks/pre-configure/02-script-wrapper.sh @@ -103,7 +103,7 @@ pkgconfig_wrapper() { export PKG_CONFIG_SYSROOT_DIR="$XBPS_CROSS_BASE" export PKG_CONFIG_PATH="$XBPS_CROSS_BASE/usr/lib/pkgconfig:$XBPS_CROSS_BASE/usr/share/pkgconfig\${PKG_CONFIG_PATH:+:\${PKG_CONFIG_PATH}}" export PKG_CONFIG_LIBDIR="$XBPS_CROSS_BASE/usr/lib/pkgconfig\${PKG_CONFIG_LIBDIR:+:\${PKG_CONFIG_LIBDIR}}" -exec /usr/bin/pkg-config "\$@" +exec /usr/bin/pkg-config "\$@" | sed s/lib32/lib/g _EOF chmod 755 ${XBPS_WRAPPERDIR}/${XBPS_CROSS_TRIPLET}-pkg-config if [ -z "$no_generic_pkgconfig_link" ]; then ``` This is the smallest change I could come up with that makes it work, but maybe there's a better solution?