且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

CMake错误:以下变量在此项目中使用,但它们设置为NOTFOUND

更新时间:2022-10-21 14:45:45

证明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