Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/cmake/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Compilation 在Ubuntu上构建亮度HDR_Compilation_Cmake_Ubuntu 12.04_Luminance - Fatal编程技术网

Compilation 在Ubuntu上构建亮度HDR

Compilation 在Ubuntu上构建亮度HDR,compilation,cmake,ubuntu-12.04,luminance,Compilation,Cmake,Ubuntu 12.04,Luminance,我正在安装基于Ubuntu 12.04的luminance-hdr-2.3.0,但出现以下错误: 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/gc

我正在安装基于Ubuntu 12.04的luminance-hdr-2.3.0,但出现以下错误:

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".

有什么想法吗?

这与您的Qt安装有关。尝试安装qt-dev软件包。sudo apt get install qt4 dev toolsotherwise更新您的CMake,您使用的是哪个版本?最新版本是CMake 2.8.9我已经安装了qt4开发工具,我使用的CMake版本是2.8.7,这是Ubuntu 12.04上的最新版本。你检查过这个答案吗?谢谢,我已经看过了那个页面,但没有尝试第二个答案!我不得不对第二个答案进行调整,并将其添加到MainWindow/CMakeLists.txt文件中:find_packageQt4 include${QT_USE_file}