ogre-meshviewer를 설치하는 방법은 무엇입니까?

ogre-meshviewer를 설치하는 방법은 무엇입니까?

을(를) 설치하려고 하는데 ogre-meshviewer다음 오류가 발생합니다.

(base) comp@comp:~$ sudo snap install ogre-meshviewer
snap "ogre-meshviewer" is already installed, see 'snap help
              refresh'
(base) comp@comp:~$ 
(base) comp@comp:~$ sudo ogre-meshviewer
mkdir: cannot create directory '/run/user/0': Permission denied
realpath: '': No such file or directory
realpath: '': No such file or directory
realpath: '': No such file or directory
realpath: '': No such file or directory
realpath: '': No such file or directory
realpath: '': No such file or directory
realpath: '': No such file or directory
realpath: '': No such file or directory
usage: ogre_mesh_viewer.py [-h] [-c RESCFG] infile
ogre_mesh_viewer.py: error: the following arguments are required: infile

이 문제를 어떻게 해결할 수 있나요?

답변1

명령 출력에서 sudo snap install ogre-meshviewer​​알 수 있듯이 ogre-meshviewer성공적으로 설치되었습니다.

발생하는 오류는 입력 파일인 ogre-meshviewer필수 위치 인수 없이 실행하려고 하기 때문에 발생합니다 .infile

usage: ogre_mesh_viewer.py [-h] [-c RESCFG] infile
ogre_mesh_viewer.py: error: the following arguments are required: infile

따라서 다음과 같이 실행하면:

ogre-meshviewer /path/to/mesh_file

올바르게 작동해야 합니다.

/path/to/mesh_file.mesh예상한 대로 파일(또는 다른 경로)의 경로입니다.지원되는 형식, 즉 .obj, .ply또는 .fbx)이 이미 시스템에 존재합니다. 경로는 다음 중 하나일 수 있습니다.절대 또는 상대.

관련 정보