Turbo icon indicating copy to clipboard operation
Turbo copied to clipboard

请不要使用submodule

Open GuoZiyangTYUST opened this issue 1 year ago • 5 comments

warning: redirecting to https://github.com/KhronosGroup/KTX-Software.git/ remote: Enumerating objects: 35616, done. remote: Counting objects: 100% (805/805), done. remote: Compressing objects: 100% (427/427), done. remote: Total 35616 (delta 403), reused 686 (delta 355), pack-reused 34811 MiB | 13.89 MiB/s Receiving objects: 100% (35616/35616), 211.77 MiB | 13.33 MiB/s, done. Resolving deltas: 100% (23135/23135), done. git-lfs filter-process: line 1: git-lfs: command not found fatal: the remote end hung up unexpectedly warning: Clone succeeded, but checkout failed. You can inspect what was checked out with 'git status' and retry with 'git restore --source=HEAD :/'

submodule 这个功能很难用,问题很多

GuoZiyangTYUST avatar Apr 24 '24 03:04 GuoZiyangTYUST

首先,感谢关注该项目。

确实,submodule 在下载和同步 KTX-Software 的时候经常会失败,其实有时 git clone 都会克隆不下来。应该是国内网络“特色“。可以使用浏览器下载源码压缩包,再将文件解压缩到固定目录下就行。

考虑使用 submodule 是因为这是一种自动化配置 Turbo 编译依赖的方式。为了开发者方便配置选择的该方式。

如果您有更好的方式,愿意恭听。 ๐•ᴗ•๐

FuXiii avatar Apr 24 '24 12:04 FuXiii

warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'

我看有这个提示。说是 克隆 成功了,但是 checkout 失败了。提示执行 git restore --source=HEAD :/ 进行尝试。

FuXiii avatar Apr 24 '24 12:04 FuXiii

最后还是没搞成,暂时不搞了。

当年还在学校的时候,有个同学在国内期刊上发表了一片英文论文。 老师笑话他的论文:"这种文章老外不看,中国人也不看。"

你如果如果主要针对国内市场,就请符合国内市场的需求。

虚幻引擎的做法是找了个仓库专门放编译好的第三方库,简单且实用。可以参考

GuoZiyangTYUST avatar Apr 24 '24 12:04 GuoZiyangTYUST

从技术角度来说,使用编译好的库在某些平台确实是一个方便的方式,但有如下理由说明使用编译好的库并不是一个好选择:

  • 每人开发的环境各异。
  • Turbo 目标是多平台(PC嵌入式移动浏览器等)。不同平台会生成不同的库文件。
  • 不同编译器会生成不同内部结构的库文件(除非您确保编译器生成的为通用库格式)。
  • Turbo 可以在配置时设置生成为静态库还是动态库
  • Visual Studio 不同版本之间编译并不一定互相兼容(特别是2015之前和之后)。
  • 依赖的 C++ 标准库方式。和 ABI 等等。

所以使用编译好的库后,当产品开发中进行不同平台适配时将会出问题。

FuXiii avatar Apr 25 '24 00:04 FuXiii

hey, 我看到錯誤訊息中有個 git-lfs filter-process: git-lfs: command not found 或許可以試試先去安裝這個 command. 近期剛好有遇到一樣的錯誤訊息在其他專案上,後來也是在安裝後重新進行 git clone 就可以使用了

paopa avatar May 17 '24 15:05 paopa