Quote Originally Posted by ChrisW67 View Post
The CMake Qt find module uses the Qt4 qmake: is it in the PATH?
Yes it is.
You could try this at the top of DemoUI/ CMakeLists.txt:
Qt Code:
  1. FIND_PACKAGE(Qt4 COMPONENTS QtSvg QtScript REQUIRED)
To copy to clipboard, switch view to plain text mode 
Thank you very much! This worked to remove this particular error, but now I am getting the following error:
Qt Code:
  1. Scanning dependencies of target DemoUI
  2. [ 58%] Building CXX object DemoUI/CMakeFiles/DemoUI.dir/GroupSelWidget.cpp.o
  3. In file included from /home/samjnaa/sr/_repos/hg/cornucopia-lib/DemoUI/GroupSelWidget.cpp:21:0:
  4. /home/samjnaa/sr/_repos/hg/cornucopia-lib/DemoUI/GroupSelWidget.h:26:19: fatal error: QWidget: No such file or directory
  5. #include <QWidget>
  6. ^
  7. compilation terminated.
  8. make[2]: *** [DemoUI/CMakeFiles/DemoUI.dir/GroupSelWidget.cpp.o] Error 1
  9. make[1]: *** [DemoUI/CMakeFiles/DemoUI.dir/all] Error 2
  10. make: *** [all] Error 2
To copy to clipboard, switch view to plain text mode 
But I have the Qt headers installed (indeed I'm sure it would have complained earlier if I had not):
Qt Code:
  1. $ dpkg -S QWidget
  2. ...
  3. libqt4-dev: /usr/include/qt4/QtGui/QWidget
  4. ...
To copy to clipboard, switch view to plain text mode 
I am guessing that some CMake command is pointing to the wrong include directory or something. (Or perhaps the code needs to use "QtGui/" as in #include <QtGui/QWidget> but I'd prefer to hack the CMakeLists.txt if possible.) Please tell me what correction I have to do to get *this* working now?