0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Ubuntu に LPub3D をインストール

Posted at

snap や Flatpak もあるらしいのですが、今回は公式の deb パッケージを使ってみました。

から以下をダウンロード。

LPub3D-2.4.9.86.4133_20250319-jammy-amd64.deb

インストールしようとするとエラーが出るので


$ sudo dpkg -i LPub3D-2.4.9.86.4133_20250319-jammy-amd64.deb 
以前に未選択のパッケージ lpub3d を選択しています。
(データベースを読み込んでいます ... 現在 568657 個のファイルとディレクトリがインストールされています。)
LPub3D-2.4.9.86.4133_20250319-jammy-amd64.deb を展開する準備をしています ...
lpub3d (2.4.9.4133) を展開しています...
dpkg: 依存関係の問題により lpub3d の設定ができません:
 lpub3d は以下に依存 (depends) します: freeglut3 (>= 2.8.1) ...しかし:
  パッケージ freeglut3 はまだインストールされていません。

dpkg: パッケージ lpub3d の処理中にエラーが発生しました (--install):
 依存関係の問題 - 設定を見送ります
mailcap (3.70+nmu1ubuntu1) のトリガを処理しています ...
gnome-menus (3.36.0-1ubuntu3) のトリガを処理しています ...
desktop-file-utils (0.26-1ubuntu3) のトリガを処理しています ...
hicolor-icon-theme (0.17-2) のトリガを処理しています ...
man-db (2.10.2-1) のトリガを処理しています ...
shared-mime-info (2.1-2) のトリガを処理しています ...
処理中にエラーが発生しました:
 lpub3d

以下の作業を予め行っておけばインストールできました。

$ sudo apt install freeglut3

初期設定

Dashメニューから呼び出せます。

image.png

ライブラリが見つからないというエラーが出ました。

image.png

「Show Details」を見てみると以下のように表示されました。

The following locations were searched for the LDraw library: /home/nanbuwks/ldraw /home/nanbuwks/Documents/ldraw /usr/share/gnome/ldraw /home/nanbuwks/.local/share/LPub3D Software/lpub3d24/ldraw You must select an LDraw library folder or extract the library. It is possible to create your library folder from the official LDraw LEGO archive file (complete.zip) and the unofficial parts archive file lpub3dldrawunf.zip. The extracted library folder will be located at ''

このPCには、 を以下の記事のように complete.zip を ~/LDraw にインストールしてあったのですが、解凍しないといけないみたいです。

「Ubuntu に LDCad をインストール」
https://qiita.com/nanbuwks/items/5d9eaaf42211a5bd2a7b

~/LDraw/complete.zip を解凍し、先の説明に合わせて、LDraw を ldraw に変更しました。~/ldraw は以下のようになっています。

~/ldraw$ tree -L 1
.
├── CAlicense.txt
├── CAlicense4.txt
├── CAreadme.txt
├── LDCfgalt.ldr
├── LDConfig.ldr
├── LDConfig_TLG.ldr
├── Readme.txt
├── complete.zip
├── ldraw
├── mklist-c.zip
├── mklist.exe
├── mklist1_4.zip
├── mklist1_6.zip
├── models
├── p
└── parts

起動しました。
image.png
サンプルデータを開けたところ。
image.png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?