LoginSignup
1
2

More than 3 years have passed since last update.

WSL2でHonKitのPDF出力に失敗したら

Posted at

結論

Ubuntu@WSL2環境でaptからcalibreをインストールしたのが原因。
calibreの公式サイトの記述に従ってインストールしましょう。

失敗するとどんなエラーが出るのか

aptからインストールしていると以下のようなエラーが出ました。

QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-hogepiyo'
WebEngineContext used before QtWebEngine::initialize() or OpenGL context creation failed.

なぜaptでは駄目なのか

こちらのサイトに記載されていますが、入るバージョンが大分古いようです。
このサイトではpdfの出力に成功しているようなので、環境次第ではビルドできそうですが、新しいものを入れた方が無難そうです。

と、言ってもあくまで推測なので、100%これで直る保証はないですが。

1
2
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
1
2