On Wednesday 15 Jan 2014 9:41:55 PM GAURAV Agrawal wrote:
> Hello
> 
> On executing the steps of compiling Okular,it gives the following error
> even after installing all the dependencies by the command
> 
>                                            * sudo apt-get build-dep okular*
> as I am having ubuntu.
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> *gaurav@gaurav-Inspiron-5520:~/okular/build$ cmake
> -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` ..-- Found Qt-Version 5.0.2
> (using /usr/bin/qmake)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/gaurav/okular/build/CMakeFiles/CMakeTmpCMake Error: Internal CMake
> error, TryCompile configure of cmake failed CMake Error at
> /usr/share/kde4/apps/cmake/modules/FindKDE4Internal.cmake:1311 (message):
> Unable to compile a basic Qt application.  Qt has not been found
> correctly.Call Stack (most recent call first):
> /usr/share/cmake-2.8/Modules/FindKDE4.cmake:95 (find_package)
> CMakeLists.txt:3 (find_package)-- Configuring incomplete, errors
> occurred!gaurav@gaurav-Inspiron-5520:~/okular/build$ qmake -versionQMake
> version 3.0Using Qt version 5.0.2 in /usr/lib/i386-linux-gnu *
> 
> 
> 
> I have installed Qt Creator 2.4.1 based on Qt 4.7.4 on my system but still
> it says
> 
> 
> 
> *QMake version 3.0                                          Using Qt
> version 5.0.2 in /usr/lib/i386-linux-gnu *
> please help me fix it.
> 
> Thanks
> Gaurav
Try  "cmake -DQT_QMAKE_EXECUTABLE=/usr/bin/qmake-qt4"

Remove the CMakeCache.txt file first

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

Reply via email to