![OIS를 설치한 후 이러한 문제를 해결하는 방법은 무엇입니까?](https://linux55.com/image/58743/OIS%EB%A5%BC%20%EC%84%A4%EC%B9%98%ED%95%9C%20%ED%9B%84%20%EC%9D%B4%EB%9F%AC%ED%95%9C%20%EB%AC%B8%EC%A0%9C%EB%A5%BC%20%ED%95%B4%EA%B2%B0%ED%95%98%EB%8A%94%20%EB%B0%A9%EB%B2%95%EC%9D%80%20%EB%AC%B4%EC%97%87%EC%9E%85%EB%8B%88%EA%B9%8C%3F.png)
FreeOrion을 설치하려고 하다가 orgre를 설치하려고 하다가 Ubuntu 13.10에 OIS를 설치하려고 합니다. 어쨌든, 내가 팔로우하는 페이지는 다음과 같습니다.협회다음 오류 메시지와 함께 1.1단계의 "make" 단계가 실패합니다.
./linux/LinuxJoyStickEvents.cpp: In member function 'virtual void OIS::LinuxJoyStick::capture()':
./linux/LinuxJoyStickEvents.cpp:100:77: error: 'read' was not declared in this scope
int ret = read(mJoyStick, &js, sizeof(struct input_event) * JOY_BUFFERSIZE);
^
./linux/LinuxJoyStickEvents.cpp: In static member function 'static OIS::JoyStickInfoList OIS::LinuxJoyStick::_scanJoys()':
./linux/LinuxJoyStickEvents.cpp:275:13: error: 'close' was not declared in this scope
close(fd);
^
./linux/LinuxJoyStickEvents.cpp:283:12: error: 'close' was not declared in this scope
close(fd);
^
./linux/LinuxJoyStickEvents.cpp: In static member function 'static void OIS::LinuxJoyStick::_clearJoys(OIS::JoyStickInfoList&)':
./linux/LinuxJoyStickEvents.cpp:294:20: error: 'close' was not declared in this scope
close(i->joyFileD);
^
make[1]: *** [LinuxJoyStickEvents.lo] Error 1
make[1]: Leaving directory `/home/alexander/opt/src/ois-v1-3/src'
make: *** [all-recursive] Error 1
이 문제를 어떻게 해결할 수 있나요? 어쩌면 "구성/제작/설치" 과정을 거치지 않고 직접 ois
설치 하는 방법이 있을까요 ?apt-get
orgre
apt.get
답변1
간단히 말해서:다음을 통해 얻을 수 있습니다 apt-get
.
sudo apt-get install libois-dev
그리고/또는
sudo apt-get install libois-1.3.0
긴: 부팅 테이프와 구성의 모든 경고에 따르면 조금 오래된 것 같습니다. 이것환매 계약갈라진 부분이 있기는 하지만 약 5년 동안 손대지 않았습니다.
apt를 통해 ogre를 설치하는 것도 가능하지만 오래된 버전입니다. ppa를 통해 사용 가능PPA: 팀 오우거/오우거