通过cmake编译freenect的问题

时间:2015-03-05 17:20:29

标签: cmake openkinect

我正在尝试编译freenect,这是我第一次使用cmake反对make。由于依赖性,我有一些错误的问题,我能够通过谷歌搜索解决,但现在我再次陷入困境。我该如何解决这个问题?终端输出如下:

~/libfreenect-master $ sudo cmake -L
-- Operating system is Linux
-- Got System Processor armv6l
-- libfreenect will be installed to /usr/local
-- Headers will be installed to /usr/local/include/libfreenect
-- Libraries will be installed to /usr/local/lib
-- Found libusb-1.0:
--  - Includes: /usr/include/libusb-1.0
--  - Libraries: /usr/lib/arm-linux-gnueabihf/libusb-1.0.so
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:
GLUT_Xmu_LIBRARY (ADVANCED)
    linked by target "freenect-chunkview" in directory /home/pi/libfreenect-master/examples
    linked by target "freenect-glpclview" in directory /home/pi/libfreenect-master/examples
    linked by target "freenect-glview" in directory /home/pi/libfreenect-master/examples
    linked by target "freenect-hiview" in directory /home/pi/libfreenect-master/examples
    linked by target "freenect-micview" in directory /home/pi/libfreenect-master/examples
    linked by target "freenect-regview" in directory /home/pi/libfreenect-master/examples
    linked by target "freenect-cpp_pcview" in directory /home/pi/libfreenect-master/wrappers/cpp
    linked by target "freenect-cppview" in directory /home/pi/libfreenect-master/wrappers/cpp

-- Configuring incomplete, errors occurred!
-- Cache values
BUILD_AS3_SERVER:BOOL=OFF
BUILD_CPACK_DEB:BOOL=OFF
BUILD_CPACK_RPM:BOOL=OFF
BUILD_CPACK_TGZ:BOOL=OFF
BUILD_CPP:BOOL=ON
BUILD_CV:BOOL=OFF
BUILD_C_SYNC:BOOL=ON
BUILD_EXAMPLES:BOOL=ON
BUILD_FAKENECT:BOOL=ON
BUILD_OPENNI2_DRIVER:BOOL=OFF
BUILD_PYTHON:BOOL=OFF
BUILD_REDIST_PACKAGE:BOOL=ON
CMAKE_BUILD_TYPE:STRING=
CMAKE_INSTALL_PREFIX:PATH=/usr/local
LIBUSB_1_INCLUDE_DIR:PATH=/usr/include/libusb-1.0
LIBUSB_1_LIBRARY:FILEPATH=/usr/lib/arm-linux-gnueabihf/libusb-1.0.so

1 个答案:

答案 0 :(得分:0)

在mac osx上我能够使用自制软件来安装freenect,这非常简单。

  

brew install libfreenect

     

就是这样,你完成了! glview的副本   demo现在应该在你的PATH中,所以你可以简单地运行:

     

freenect-glview

http://openkinect.org/wiki/Getting_Started#Homebrew