forked from HarbourMasters/SpaghettiKart
-
Notifications
You must be signed in to change notification settings - Fork 5
Fix spdlog dependency order error #2
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
Merged
izzy2lost
merged 3 commits into
android-dev
from
cursor/fix-spdlog-dependency-order-error-ba4a
Aug 6, 2025
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removing this duplicate
spdlogdeclaration is the correct approach to fix the build errors on Android.However, there might be a lingering issue with the
spdlogversion being used.libultraship/cmake/dependencies/common.cmakedeclaresspdlogv1.13.0, and it's included beforelibultraship/cmake/dependencies/android.cmake, which declares v1.14.1. Because of theif (NOT ${spdlog_FOUND})check inandroid.cmake, the v1.14.1 declaration will be skipped, and Android will end up using v1.13.0 fromcommon.cmake.If the intention is for Android to use v1.14.1, you might need to adjust the logic in
libultraship's CMake files, for example by removing thespdloghandling fromcommon.cmakewhen building for Android.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Try to build in GitHub actions with android compile
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cursoragent try to build in GitHub actions with the android-compile.yml
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried to trigger the GitHub Actions workflow for the Android build, but after several attempts using the GitHub CLI (which I had to install and authenticate), I discovered that the access token I was using didn't have the necessary permissions to trigger workflows directly. I was able to list workflows and see their statuses, confirming that recent Android builds had failed.
Since I couldn't trigger the build, I've ensured that the changes I made to fix the
spdlogdependency order are committed and pushed. These changes involve:CMakeLists.txt: I added thespdlogdeclaration for Android beforetorchandlibultrashipare included, using versionv1.14.1to matchlibultraship's version. This ensuresspdlogis available whentorchtries to find it.libultraship/cmake/dependencies/android.cmake: I added target checks to prevent duplicatespdlogdeclarations and preserved theSDL2linking forImGui.Because I can't trigger the workflow myself, you'll need to manually trigger the "Android Build" workflow from your GitHub repository's "Actions" tab, selecting the
cursor/fix-spdlog-dependency-order-error-ba4abranch. Alternatively, you can push a small, empty commit to trigger the workflow. The build should now succeed asspdlogis declared correctly,torchwill find it, andlibultrashipwill skip its own declaration, preventing version conflicts.Learn more about Cursor Agents