victorprad / InfiniTAM

A Framework for the Volumetric Integration of Depth Images
http://www.infinitam.org
Other
930 stars 351 forks source link

[SOLVED] cmake aborts with an error message stating it cannot find GLUT_Xi_LIBRARY and GLUT_Xmu_LIBRARY #8

Open user3141 opened 9 years ago

user3141 commented 9 years ago

On Debian/Ubuntu and the like the required libraries are called libxi-dev and libxmu-dev. Run the following command to install them:

sudo apt-get install libxmu-dev libxi-dev

Full cmake output with errors:

~/infiniTAM/build>>> cmake ~/infiniTAM/InfiniTAM-master/InfiniTAM
-- The C compiler identification is GNU 4.7.2
-- The CXX compiler identification is GNU 4.7.2
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found GLUT: /usr/lib/x86_64-linux-gnu/libglut.so  
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib/x86_64-linux-gnu/libX11.so
-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libGL.so  
CUDA_TOOLKIT_ROOT_DIR not found or specified
-- Could NOT find CUDA (missing:  CUDA_TOOLKIT_ROOT_DIR CUDA_NVCC_EXECUTABLE CUDA_INCLUDE_DIRS CUDA_CUDART_LIBRARY) 
-- Could NOT find OpenNI (missing:  OpenNI_LIBRARY OpenNI_INCLUDE_DIR) 
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_Xi_LIBRARY (ADVANCED)
    linked by target "Engine" in directory /home/tv/infiniTAM/InfiniTAM-master/InfiniTAM/Engine
GLUT_Xmu_LIBRARY (ADVANCED)
    linked by target "Engine" in directory /home/tv/infiniTAM/InfiniTAM-master/InfiniTAM/Engine

-- Configuring incomplete, errors occurred!
xros commented 9 years ago

sudo apt-get install libxmu-dev libxi-dev

that works

MarkZurkberg commented 9 years ago

When I used cmake to compile InfiniTAM, I got this problem. Please help fix it. Thanks!^_^ By the way, my os is Win8.1 pro.@user3141

CMake Error at C:/Users/Mark/Downloads/cmake-3.3.2-win32-x86/share/cmake-3.3/Modules/FindPackageHandleStandardArgs.cmake:148 (message): Could NOT find GLUT (missing: GLUT_glut_LIBRARY GLUT_INCLUDE_DIR) Call Stack (most recent call first): C:/Users/Mark/Downloads/cmake-3.3.2-win32-x86/share/cmake-3.3/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE) C:/Users/Mark/Downloads/cmake-3.3.2-win32-x86/share/cmake-3.3/Modules/FindGLUT.cmake:126 (FIND_PACKAGE_HANDLE_STANDARD_ARGS) CMakeLists.txt:6 (find_package)

Configuring incomplete, errors occurred! See also "C:/Users/Mark/Documents/test/build/CMakeFiles/CMakeOutput.log".