Mageia 8 breaks Qt5 builds [SOLVED]

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

Mageia 8 breaks Qt5 builds [SOLVED]

Postby mla » Mar 12th, '21, 19:34

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.
mla
 
Posts: 292
Joined: Sep 16th, '11, 16:10

Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest

cron