glut.lib是OpenGL辅助库
从网上下一个glut
解压后你会看到glut.h glut.dll glut32.dll glut.lib
将glut.dll glut32.dll 拷到system32中
glut.h拷到vc/include中
glut.lib拷到vc/lib中
一定行 我整天都是这样用的!
VS2010設置部份:
3. In the C/C++ section, under the General node, select =>Additional Include Directories and
add "$(OPEN_NI_INCLUDE)". This is an environment variable that points to the location of
the OpenNI Include directory. (The default location is: C:/Program files/OpenNI/Include.)
4. In the Linker section, under the General node, select Additional Library Directories and add
"$(OPEN_NI_LIB)". This is an environment variable that points to the location of the OpenNI
include directory. (The default location is: C:/Program files/OpenNI/Lib.)
5. In the Linker section, under the Input node, select Additional Dependencies and add
OpenNI.lib.