Bypass Qt while compiling SWI

Hi,
I’m compiling SWI from source on red hat.
Everything goes smootly except the linking against Qt. In particular, at the end of the compilation step I get

[100%] Linking CXX executable swipl-win
.../anaconda3/lib/libQt5Widgets.so.5.15.2: undefined reference to `std::pmr::monotonic_buffer_resource::~monot
onic_buffer_resource()@GLIBCXX_3.4.28'

and other similar errors.
Before compiling I call

cmake -DCMAKE_INSTALL_PREFIX=$WORK -DSWIPL_PACKAGES_X=OFF -DINSTALL_DOCUMENTATION=OFF ..

inside the build folder.
Is there a flag or smething to bypass the Qt issue and disable this part? Is it mandatory? I do not need a GUI for SWI (nor a SWI version for windows).

Thanks

I have found in this document this suggestion:

cmake -DSWIPL_M32=ON \
      -DSWIPL_PACKAGES_JAVA=OFF -DSWIPL_PACKAGES_QT=OFF \
      -G Ninja ..

HTH

Using -DSWIPL_PACKAGES_QT=OFF should work. Fixing this would be even better of course. Which version of redhat?

I think we’re on Qt 6 now…

Ubuntu 22.04 is (still) on Qt5 and swipl-win compiles and runs fine on it. Thanks to your involvement it also runs on Qt6 :slight_smile:

The version is 8.6

Ok. While one can download the redhat 8.6 docker image, actually installing software on it requires a license. That is a bit too much hassle for something that is not really a problem now.