[Gammaray-interest] Compile with QtSdk installed
Kevin Funk
kevin.funk at kdab.com
Thu Feb 9 15:16:59 CET 2012
On Thursday 09 February 2012, 13:15, Stefano Cordibella wrote:
> Hi all,
> I am trying to compile latest snapshot in a linux box where is
> installed QtSdk and no other Qt library installed system wide.
>
> I am getting the following error:
> -- Building GammaRay 1.1.50 (revision: e09ffa1) in Release mode
> CMake Error at
> /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:91
> (MESSAGE):
> Could NOT find Qt4 (missing: QT_QMAKE_EXECUTABLE QT_MOC_EXECUTABLE
> QT_RCC_EXECUTABLE QT_UIC_EXECUTABLE QT_INCLUDE_DIR QT_LIBRARY_DIR
> QT_QTCORE_LIBRARY) (Required is at least version "4.7.0")
> Call Stack (most recent call first):
> /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:252
> (_FPHSA_FAILURE_MESSAGE)
> /usr/share/cmake-2.8/Modules/FindQt4.cmake:1162
> (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
> CMakeLists.txt:73 (find_package)
> I think that depends on the lack of a Qt4 installation system wide.
> I'm not an expert in CMake, is there any way to tell CMake what kind of
> Qt4 version use during build process?
> I have tryed to set environ vars like QT_QMAKE_EXECUTABLE and others,
> but without success.
>
> Thanks in advance,
> Stefano.
Hey there,
CMake tries to lookup the "qmake" executable on your system but cannot find
it.
There are two solutions, either one should fix it:
* Add the directory containing "qmake" to your PATH variable
e.g. export PATH=/opt/QtSdk/bin:$PATH
* Point the QTDIR environment variable to the the QtSDK dir
e.g. export QTDIR=/opt/QtSdk
Not sure where qt-sdk is installed by default, so change the above directories
according to your installation.
Greets
--
Kevin Funk | kevin.funk at kdab.com | Software Engineer
KDAB (Deutschland) GmbH&Co KG, a KDAB Group company
Tel. Germany +49-30-521325470, Sweden (HQ) +46-563-540090
KDAB - Qt Experts - Platform-independent software solutions
More information about the Gammaray-interest
mailing list