CMake错误:以下变量在此项目中使用,但它们设置为NOTFOUND [英] CMake Error: The following variables are used in this project, but they are set to NOTFOUND

查看:5408
本文介绍了CMake错误:以下变量在此项目中使用,但它们设置为NOTFOUND的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在CentOS 6上运行一个CMake构建脚本, >  CMake错误:以下变量在此项目中使用,但它们设置为NOTFOUND。 
请设置它们或确保它们在CMake文件中正确设置和测试:
QT_QTOPENGL_INCLUDE_DIR(ADVANCED)
用作目录/ home / auser / Documents / Projects / Framework中的include目录/ src / AFrameworkFolder
QT_QTWEBKIT_INCLUDE_DIR(ADVANCED)
用作目录/ home / auser / Documents / Projects / Framework / src / BFrameworkFolder中的include目录

我安装了QT 4.8.4,我使用CMake版本2.8.10.2。我使用的构建脚本也可以在Mac OSX 10.8上正常工作。



任何人都可以告诉我这里发生了什么?



对我来说,它找不到所需的一些QT文件夹,我没有看到任何文件夹在QT提到OpenGL或Webkit。如果这些都缺失我将如何去安装他们?如果这不是问题,有人可以指导我修复解决方案?

解决方案

证明OpenGL和Webkit的文件夹失踪。我只是不得不重新下载QT的干净的副本,并执行安装指示这里安装它: http://qt-project.org/doc/qt-4.8/install-x11.html


I'm running a CMake build script for a project on CentOS 6 and I'm getting the following errors:

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_QTOPENGL_INCLUDE_DIR (ADVANCED)
  used as include directory in directory /home/auser/Documents/Projects/Framework/src/AFrameworkFolder
QT_QTWEBKIT_INCLUDE_DIR (ADVANCED)
  used as include directory in directory /home/auser/Documents/Projects/Framework/src/BFrameworkFolder

I have QT 4.8.4 installed and I'm using CMake version 2.8.10.2. The build script I'm using also works fine on Mac OSX 10.8.

Can anyone tell me what is happening here?

To me it looks like its having trouble finding some of the QT folders it needs and I don't see any folders in QT mentioning OpenGL or Webkit. If these are missing how would I go about installing them? If this is not the issue can someone please guide me to fixing the solution?

解决方案

Turns out that the folders for OpenGL and Webkit were missing. I just had to redownload a clean copy of QT and run through the installation directions here to install it: http://qt-project.org/doc/qt-4.8/install-x11.html

这篇关于CMake错误:以下变量在此项目中使用,但它们设置为NOTFOUND的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆