Cross-compiled libs present a naming mismatch?

オープン
#107 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
python
領域
build-system

調査の方向性

godot-cpp/tools/windows.py と、クロスコンパイルされた Android 拡張機能に使用される SCons の呼び出しから始めます。生成された demo/bin/android/godot_photogrammetry.android.template_debug.arm64.so の名前を、demo/bin/photogrammetry.gdextension が想定するパスと比較します。サポートされる命名動作が確立され、不一致が修正または文書化されれば完了です。

索引モデルが issue の本文から書いたものです。

説明

bug
Godot version

v4.5.1.stable.official [f62fdbde1]

godot-cpp version

godot-4.5-stable [e83fd09]

System information

Windows 11

Issue description

Could easily be use-error; delving into here-be-dragons territory here to make myself a GDExtension as a workaround to a (perceived) limitation in Core. But following on from @dsnopek 's GodotCon2024 workshop, and another GDE I built last year as a test, I do appear to have an appropriately functional build pipeline. Albeit a cross-compiling one; Android extension built on a Win11 device.

I'm assuming - what with Godot being Godot, reliance on CI, etc - this is indeed a supported workflow!?

TL;DR - What I'm seeing is the final library coming out of scons being named demo\bin\android\godot_photogrammetry.android.template_debug.arm64.so.
Whereas both convention and Godot (via \demo\bin\photogrammetry.gdextension) expect to see demo/bin/android/libgodot_photogrammetry.android.template_debug.x86_64.so instead.

I rename the wee bandit and she works fine. It's a nuisance, obviously, however. And could put others off from leveraging the awesomeness of GDE I suspect. Just wondering if this is expected behaviour of the template, a supported / unsupported workflow, bug... or some silly setting on my side I've simply not configured properly. 🤦

Clearly the behaviour itself comes from godot-cpp/tools/windows.py setting env["SHLIBPREFIX"] = "", and scons running with that, post resolution of Issue #55

Thoughts? TIA.

主要言語
Python
スター
499
フォーク
140
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

godotengine/godot-cpp-template のほかの issue

godotengine/godot-cpp-template の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。