Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux: Miria for Linuxのビルド #1

Closed
Npepperlinux opened this issue Jul 6, 2023 · 13 comments
Closed

Linux: Miria for Linuxのビルド #1

Npepperlinux opened this issue Jul 6, 2023 · 13 comments

Comments

@Npepperlinux
Copy link
Owner

MiriaをLinuxデスクトップ上で動作させるために必要なことをまとめる。

@Npepperlinux
Copy link
Owner Author

現在の検証環境

OS: Ubuntu 22.04 LTS
CPU: Intel Core i7-7500
RAM: 8GB

@Npepperlinux
Copy link
Owner Author

ビルド環境の構築

  1. Flutter公式ドキュメントを参考にFlutterの開発環境をセットアップする

  2. 追加のパッケージをインストールする

sudo apt install libjsoncpp-dev libsecret-1-dev
  1. リポジトリのクローン
git clone https://github.com/Npepperlinux/miria
cd miria
flutter pub get
  1. 実行
flutter run -d linux

@Npepperlinux
Copy link
Owner Author

現状

flutter run -d linuxの実行中、libjsoncpp.so.25からエラーが返される。

@Npepperlinux Npepperlinux added the help wanted Extra attention is needed label Jul 6, 2023
@Npepperlinux
Copy link
Owner Author

gccのバージョンが悪いという噂(gcc10あたりまで戻す?)を聞いたのでUbuntu 18.04 LTSでビルドしたら動いた(力技)

@Npepperlinux
Copy link
Owner Author

ざっくりこんな感じ-> https://misskey.io/notes/9gw0p4wade

@Npepperlinux
Copy link
Owner Author

現状

flutter build linuxして作ったからかはわからないがAPIキーが保存されない(閉じて開き直すとログイン画面に戻される)
日本語入力ができるか試してない(即席weston環境だったので)(ビルド方法とかwaylandだったりとかで日本語入力できない事例があるらしい?)

@Npepperlinux
Copy link
Owner Author

snapcraft.yaml作ったまではいいが、

flutter kernel_snapshot failed: Exception

を吐いてて進まない

@Npepperlinux
Copy link
Owner Author

別枠で https://github.com/Npepperlinux/miria-snap を建てた

@Npepperlinux
Copy link
Owner Author

flutter_secure_storageがlibjsoncpp1に依存しているのがビルドできない原因だった。
最新バージョン8が2月にリリース後、6月にlibjsoncpp1の依存が削除されたので、flutter_secure_storageが更新されるのを待つしかない

@Npepperlinux Npepperlinux removed the help wanted Extra attention is needed label Aug 10, 2023
@Npepperlinux
Copy link
Owner Author

更新されるまでは18.04か20.04を使いましょう…

@Npepperlinux
Copy link
Owner Author

現在までの成果物
https://misskey.io/notes/9i9i7tv0t3

@Npepperlinux
Copy link
Owner Author

https://github.com/Npepperlinux/miria-snap
snapビルドできるようになった→Ubuntu 22.04で動くようになった

Npepperlinux pushed a commit that referenced this issue Aug 22, 2023
Npepperlinux pushed a commit that referenced this issue Aug 22, 2023
@Npepperlinux
Copy link
Owner Author

make_config.yamlなりを適切に書いてあげればビルド可能であることがわかったのでこれにて終了(今後のアップデートでビルドできなくなったら別のIssueで)

Npepperlinux pushed a commit that referenced this issue Nov 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant