1

I'm following the INSTALL for luminance-hdr-2.3.0, building on Ubuntu 12.04, but I'm getting the following error:

root@ben-laptop:/usr/src/luminance# cmake /usr/src/luminance-hdr-2.3.0/src
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
CMake Error at MainWindow/CMakeLists.txt:14 (QT4_WRAP_CPP):
Unnown CMake command "QT4_WRAP_CPP".

Any ideas?

Ben Rogers
  • 21
  • 3
  • This is something related with your Qt installation. Try to install qt dev packages. sudo apt-get install qt4-dev-tools – linello Sep 25 '12 at 08:17
  • otherwise update your CMake, which version are you using? The latest is CMake 2.8.9 – linello Sep 25 '12 at 08:17
  • I have already installed qt4-dev-tools, the version of cmake I'm using is 2.8.7 (which is the latest on Ubuntu 12.04) – Ben Rogers Sep 25 '12 at 08:52
  • have you checked this answer http://stackoverflow.com/questions/5998100/error-in-cmake-path ? – Sergei Nikulov Sep 25 '12 at 09:07
  • Thanks, I had looked at that page already, but not tried the 2nd answer! I had to do a tweak on the second answer and added this to the MainWindow/CMakeLists.txt file: `find_package(Qt4) include(${QT_USE_FILE})` – Ben Rogers Sep 25 '12 at 09:15

0 Answers0