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)がシステムにすでに存在している必要があります。パスは、絶対的か相対的か

関連情報