如何安装 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绝对或相对

相关内容