[Android:Bugfix] Add missing diffusion_session and sana_session sourc… - #4569
Merged
wangzhaode merged 1 commit intoJun 25, 2026
Merged
Conversation
…es to CMakeLists diffusion_jni.cpp and sana_jni.cpp depend on DiffusionSession and SanaSession classes defined in diffusion_session.cpp and sana_session.cpp, but these source files were missing from CMakeLists.txt, causing UnsatisfiedLinkError at runtime. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Contributor
Author
|
这是来自QQ邮箱的自动回复邮件。邮件收到^_^
|
wangzhaode
reviewed
Jun 25, 2026
wangzhaode
left a comment
Collaborator
There was a problem hiding this comment.
Thanks for the fix! The root cause is confirmed — commit 66fd356a accidentally removed these four source files from CMakeLists.txt. The change is correct and complete.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
问题
fix #4562
diffusion_jni.cpp 和 sana_jni.cpp 依赖的 DiffusionSession、SanaSession 类实现(分别位于 diffusion_session.cpp 和 sana_session.cpp)未加入 CMakeLists.txt,导致链接时符号缺失,运行时抛出 UnsatisfiedLinkError。
修复
在 CMakeLists.txt 中补充缺失的源文件:
diffusion_session.cppsana_session.cpp验证
本地编译 APK 验证通过。