svlad-90 / DLT-Message-Analyzer

"Extended search" plugin for the DLT-viewer
GNU General Public License v3.0
77 stars 13 forks source link

[BUILD] CMake failure with QT < 5.15.0 #180

Closed svlad-90 closed 1 year ago

svlad-90 commented 1 year ago

After switching to the support of QT6, we've dropped support of the build in case of QT of version < 5.15.0.

The issue is related to the fact, that version-less functions, which we've started to use here ( qt_wrap_ctt, QT_WRAP_UI ) were introduced only in QT 5.15.0. So in e.g. 5.12.0, available on Ubuntu 20.04, that I'm currently using, the build fails, as CMake can't find those version-less functions.

The actual error is something like "qt_wrap_cpp was called with a wrong number of arguments".

We need to implement a glue-code, which would allow to build the project for: