2012-08-20 3 views
2

우분투 12.04에서 libhand.org 핸드 모델 라이브러리를 작성하려고합니다. 라이브러리는 ogre 및 opencv 라이브러리를 사용합니다. 필자는 ogre와 opencv를 성공적으로 설치할 수 있도록 저자가 제공 한 지침을 따랐습니다. 불행하게도 (".. cmake"명령에 의해) cmake를 사용하여 libhand 라이브러리 자체를 구성 할 때 내가 얻을 다음과 같은 오류 :이 오류가 발생하고 무엇을 할 수있는 이유cmake를 사용한 Libhand 라이브러리 컴파일 오류

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: OGRE_RenderSystem_GL_INCLUDE_DIR (ADVANCED) used as include directory in directory /home/roman/work_dir/libhand-0.9/hand_cpp/source used as include directory in directory /home/roman/work_dir/libhand-0.9/hand_cpp/source/dot_sceneloader
used as include directory in directory /home/roman/work_dir/libhand-0.9/hand_cpp/source/dot_sceneloader/tinyxml

-- Configuring incomplete, errors occurred!

사람이 알고 있나요?

답변

3

나는 도서관의 저자 인 libhand이며 로마에서이 문제를 디버깅했습니다.

원인 :

The OpenGL developer headers/libraries were not installed before OGRE was compiled and then installed.

괴물이 자동으로 컴파일하지만 OpenGL을하지 않고 지원 여기에 원인과이 문제에 대한 수정 프로그램입니다. 그런 다음 OGRE를 사용하는 코드는 OGRE에서 OpenGL 지원이 누락되어 컴파일되지 않습니다.


이 문제에 대한 수정 :

1) 수행하여 OpenGL을 개발 헤더/라이브러리 설치가 :

sudo apt-get install freeglut3 freeglut3-dev 

2) 재 컴파일 /는 오우거를 다시 설치하십시오.

괴물은 의미 install_help/linux_ogre_static_installer 디렉토리 및 실행에가는 재 컴파일, libhand를 사용하여 :

./install_ogre_static.sh build 

sudo ./install_ogre_static.sh install 

3) 청소 & 재 빌드 다음

./install_ogre_static.sh clean 

을 libhand 또는 다른 조각 o f 소프트웨어에서이 오류를보고했습니다.

는 libhand를 들어, hand_cpp로 이동하십시오 다음

rm -rf build/* 

cd build 
cmake .. 

으로이 단계 이후에보고 된 오류가 표시되지 않아야 희망 libhand 상자 밖으로 작동합니다.

2

CMake는 OpenGL의 헤더 파일을 찾을 수 없습니다. libGL 용 -dev 패키지를 설치하십시오.

관련 문제