Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error in CMake path

Tags:

cmake

I'm trying to build the Visual Studio project for a kinect demo thing, rgbddemo. According to the instructions on the page, I need to set the PATH variable to include QMAKE from QT. I did that, but I keep getting this error:

CMake Error at CMakeLists.txt:1 (QT4_WRAP_CPP): Unknown CMake command "QT4_WRAP_CPP".

From what I could gather from google, it's a problem with CMake knowing where something from QT is. The page I linked above also mentions that you can set the path for QMAKE within CMake, but I don't know how to do that. Does anyone have any suggestions? Thanks.

like image 458
blueintegral Avatar asked Apr 16 '26 19:04

blueintegral


1 Answers

You could try inserting the line

FIND_PACKAGE(Qt4)

into the top-level CMakeLists.txt file after the line

INCLUDE("${nestk_BINARY_DIR}/UseNestk.cmake")

That should cause it to try to find qmake for you. I'm not sure why they don't have that though, but then I'm not that familiar with cmake.

like image 80
Troubadour Avatar answered Apr 21 '26 14:04

Troubadour



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!