Page 1 of 1

Mageia 8 breaks Qt5 builds [SOLVED]

PostPosted: Mar 12th, '21, 19:34
by mla
Just in case anybody else is scratching their heads over this one...

Mageia 8 Qt5 devel packages relocate header files from /usr/lib64/qt5/include/ to far more logical /usr/include/qt5/

So, if you a build scrip containuing e.g.

Code: Select all
cpp *.cpp -c \
    -I/usr/lib64/qt5/include \
    -I/usr/lib64/qt5/include/QtWebKitWidgets \
    -I/usr/lib64/qt5/include/QtWidgets \
    -I/usr/lib64/qt5/include/QtCore \
    -I/usr/lib64/qt5/include/QtGui \
...

then for building your executable under both mga7 and mga8, you need to change it to

Code: Select all
cpp *.cpp -c \
    -I/usr/lib64/qt5/include \
    -I/usr/include/qt5 \
    -I/usr/lib64/qt5/include/QtWebKitWidgets \
    -I/usr/include/qt5/QtWebKitWidgets \
    -I/usr/lib64/qt5/include/QtWidgets \
    -I/usr/include/qt5/QtWidgets \
    -I/usr/lib64/qt5/include/QtCore \
    -I/usr/include/qt5/QtCore \
    -I/usr/lib64/qt5/include/QtGui \
    -I/usr/include/qt5/QtGui \
...

And once mga7 is but a fond memory, you can, of course, drop the lib64 lines altogether.