Not sure if this helps anyone, but for Fedora I had the following problem:
CMake error in / usr / share / cmake / Modules / FindQt 4.cmake: 1386 (message): Found the wrong version of Qt "" from NOTFOUND, this code requires Qt 4.x Call stack (last call first): bgrive / CMakeLists .txt: 3 (find_package)
After going through FindQt4.cmake, I found this:
if (NOT QT_VERSION_MAJOR EQUAL 4) set(VERSION_MSG "Found unsuitable Qt version \"${QTVERSION}\" from ${QT_QMAKE_EXECUTABLE}") set(QT4_FOUND FALSE) if(Qt4_FIND_REQUIRED) message( FATAL_ERROR "${VERSION_MSG}, this code requires Qt 4.x") else() if(NOT Qt4_FIND_QUIETLY) message( STATUS "${VERSION_MSG}") endif() endif() else() FIND_PACKAGE_HANDLE_STANDARD_ARGS(Qt4 FOUND_VAR Qt4_FOUND REQUIRED_VARS ${_QT4_FOUND_REQUIRED_VARS} VERSION_VAR QTVERSION ) endif()
I know that my qt 4I solved this by simply doing:
sudo yum install qt-devel
source share