Set Qt path for compiling (CentOS 7)

Having trouble with LMMS? Ask about it here.
Hello I am trying to compile LMMS on CentOS 7. When compiling the following error occures

Code: Select all

> cmake ../
PROCESSOR: x86_64
Machine: x86_64-redhat-linux
-- Target host is 64 bit
CMake Error at /usr/local/share/cmake-3.1/Modules/FindQt4.cmake:1326 (message):
  Found unsuitable Qt version "" from NOTFOUND, this code requires Qt 4.x
Call Stack (most recent call first):
  CMakeLists.txt:117 (FIND_PACKAGE)


-- Configuring incomplete, errors occurred!
See also "/home/theenvironmentguy/Desktop/sysSetup/programs/LMMS/build/CMakeFiles/CMakeOutput.log".
See also "/home/theenvironmentguy/Desktop/sysSetup/programs/LMMS/build/CMakeFiles/CMakeError.log".

I have built Qt 4.8.6 from source and installed it in /usr/local/Trolltech/Qt-4.8.6. How can I specify the Qt path for CMake? Also is it possible to use Qt5 instead of Qt4?

Thanks!
I don't think you need to specify the path.

I think you have to install the qt devel file. I will be called something like qt 4.8.6-dev(el)

When you compile something and they say you need XXXX, you also need the XXXX-devel file. ;)
Perhaps I am missing something but Qt only provides one source.

http://download.qt.io/archive/qt/4.8/4.8.6/

There is the tar ball and a zip. I compiled both of them and they are the same thing.
Can't you use the package manager to find the files ?

That how I did it on openSUSE, I used yast to search for qt, and then selected the devel file.

https://www.centos.org/docs/5/html/Depl ... l-rpm.html ?
Thats what I ended up doing (using YUM). I would have preferred building the source though.