PDA

View Full Version : Qt_qt_include_dir



pinnerite
3rd August 2015, 12:09
When trying to compile Simon-0.4.1, I get this error:

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
QT_QT_INCLUDE_DIR
used as include directory in directory /home/alan/Programs/simon-0.4.1/build/CMakeFiles/CMakeTmp

What must I do to overcome it?

I am running Mageia 5 (x86_64) and I have installed every qt devel file I could find on the repo, including an i586 one without success.

TIA

anda_skoa
3rd August 2015, 12:20
Can you check if you have the devel packages for the correct Qt version installed?
E.g. if that software looks for Qt4 that you have the Qt4 devel packages installed, respectively for Qt5?

Cheers,
_

pinnerite
3rd August 2015, 12:25
I am using qt4 and urpmi returns ....

lib64qt4-devel-4.8.6-9.mga5.x86_64 is already installed

anda_skoa
3rd August 2015, 14:54
If your run qmake --version, it is the qmake matching these headers?

Cheers,
_

pinnerite
3rd August 2015, 15:53
[root@albury alan]# qmake --version

QMake version 3.0

Using Qt version 5.4.0 in /usr/lib64

I'm not sure where that leaves me? :)

anda_skoa
3rd August 2015, 17:23
Your system finds the qmake of Qt5 before it finds the one for Qt4.
So it is likely that CMake finds the Qt5 installation before as well and simon-0.4.1 needs Qt4.

Try:



export QT_SELECT=4
qmake --version

if that works (qmake outputs some Qt4 version), try running cmake in that shell

Cheers,
_

pinnerite
3rd August 2015, 18:34
qmake --version
still returns version 5.40

Thanks for your help though

anda_skoa
3rd August 2015, 19:37
Then you'll have to find out how your system distinguishes between the two qmake versions.
Maybe they are in different paths.

Cheers,
_

pinnerite
4th August 2015, 10:11
Well, both qt4 and qt5 are installed and all the references I see within the 'simon' files point to qt5.
Nothing I do seems to reduce the number of error responses. It maybe that the problem is
elsewhere in Mageia 5. I'll make enquiries there before coming back here.

Thank you for your patience.

pinnerite
5th August 2015, 11:17
I'm afraid I cheated.
A subscriber to the Mageia newsgroup suggested trying the PCLinuxOS rpms.

I did and they appear to have worked.

If they don't, as Arnie says 'I'll be back'.

Thanks again