"cannot compile a simple Qt executable. Check you have the right $QTDIR"

Hi,

this error comes up when configuring the compilation of lyx 2.2rc. I have QT5.6 installed, including the development “pattern” from yast for qt.

$QTDIR was not set at all, so I defined it as /usr/lib64/qt5. The error message did not change.

Here are the last lines of output from ./configure:

checking for QT_CORE… checking for QT_FRONTEND… checking for X… libraries , headers
checking for gethostbyname… yes
checking for connect… yes
checking for remove… yes
checking for shmat… yes
checking for IceConnectionNumber in -lICE… no
checking for Qt library name… failed
configure: error: cannot compile a simple Qt executable. Check you have the right $QTDIR.

Many sincere thanks in advance for any guidance.

Regards,

Axel