2013-06-22 2 views
0

내 쿠분투 64b에서 opengl 테스트를 시작하려고합니다. OpenGL, glew 및 freeglut이 설치되어 있지만 컴파일 할 때 glut을 찾을 수 없다고 표시됩니다.-lglut을 찾을 수 없지만 freeglut3-dev가 설치되었습니다.

CLEAN SUCCESSFUL (total time: 52ms) 

"/usr/bin/make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf 
make[1]: Entering directory `/home/rxp/NetBeansProjects/Cpptest' 
"/usr/bin/make" -f nbproject/Makefile-Debug.mk dist/Debug/GNU-Linux-x86/cpptest 
make[2]: Entering directory `/home/rxp/NetBeansProjects/Cpptest' 
mkdir -p build/Debug/GNU-Linux-x86 
rm -f build/Debug/GNU-Linux-x86/main.o.d 
g++ -c -g -I../oglpg-8th-edition/include -MMD -MP -MF build/Debug/GNU-Linux-x86/main.o.d -o build/Debug/GNU-Linux-x86/main.o main.cpp 
mkdir -p dist/Debug/GNU-Linux-x86 
g++  -o dist/Debug/GNU-Linux-x86/cpptest build/Debug/GNU-Linux-x86/main.o -L../oglpg-8th-edition/lib -lGL -lGLEW -lGLU -lGLUT 
/usr/bin/ld: cannot find -lGLUT 
collect2: error: ld returned 1 exit status 
make[2]: *** [dist/Debug/GNU-Linux-x86/cpptest] Error 1 
make[2]: Leaving directory `/home/rxp/NetBeansProjects/Cpptest' 
make[1]: *** [.build-conf] Error 2 
make[1]: Leaving directory `/home/rxp/NetBeansProjects/Cpptest' 
make: *** [.build-impl] Error 2 


BUILD FAILED (exit value 2, total time: 358ms) 

도와 주시겠습니까?

답변

2

-lGLUT을 사용하고 있습니다. 라이브러리는 대소 문자를 구분하므로 -lglut을 대신 사용해야합니다. 빌드 명령에서 라이브러리는 다음과 같이 연결해야합니다.

-lGL -lGLEW -lGLU -lglut 
관련 문제