I am tring to compile QGIS1.8 on CentOS6.3 after reading this this post.
I have added the below code into /qgis-1.8.0/python/CMakeLists.txt
at the top 1,2,3 line
cmake_minimum_required(VERSION 2.6)
find_package(Qt4)
include(${QT_USE_FILE})
However I still have the below errors:
CMake Error at plugins/plugin_installer/CMakeLists.txt:18 (PYQT4_WRAP_UI):
Unknown CMake command "PYQT4_WRAP_UI".
-- Configuring incomplete, errors occurred!
-- Cache values
CMAKE_BACKWARDS_COMPATIBILITY:STRING=2.4
CMAKE_BUILD_TYPE:STRING=
CMAKE_INSTALL_PREFIX:PATH=/usr/local
EXECUTABLE_OUTPUT_PATH:PATH=
LIBRARY_OUTPUT_PATH:PATH=
QT_QMAKE_EXECUTABLE:FILEPATH=/usr/bin/qmake-qt4
How can I continue to compile the qgis source code?