Page 1 of 1

Set Qt path for compiling (CentOS 7)

Posted: Sun Feb 15, 2015 10:04 pm
by TheEnvironmentGuy
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!

Re: Set Qt path for compiling (CentOS 7)

Posted: Sun Feb 15, 2015 11:23 pm
by Gps
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. ;)

Re: Set Qt path for compiling (CentOS 7)

Posted: Mon Feb 16, 2015 5:53 am
by TheEnvironmentGuy
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.

Re: Set Qt path for compiling (CentOS 7)

Posted: Mon Feb 16, 2015 12:57 pm
by Gps
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 ?

Re: Set Qt path for compiling (CentOS 7)

Posted: Wed Feb 18, 2015 1:44 am
by TheEnvironmentGuy
Thats what I ended up doing (using YUM). I would have preferred building the source though.