Skip to content
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

Error with 'zig build' #93

Open
OpenSourceJesus opened this issue Oct 14, 2024 · 3 comments
Open

Error with 'zig build' #93

OpenSourceJesus opened this issue Oct 14, 2024 · 3 comments

Comments

@OpenSourceJesus
Copy link

OpenSourceJesus commented Oct 14, 2024

I cloned the game on Pop!_OS 22.04 and ran 'sudo apt-get install python3 git clang libsdl2-dev'. Then after changing directory into the cloned game, I ran 'zig build'. The terminal responded with:

fatal: No names found, cannot describe anything.
unable to spawn the following command: ExitCodeFailure
git -C /home/gilead/legend-of-swarkland describe --tags 
error: the following build command failed with exit code 1:
/home/gilead/legend-of-swarkland/.zig-cache/o/d047539bab64d9a9882a3770e1a4bfc6/build /home/gilead/Downloads/zig-linux-x86_64-0.13.0-dev.351+64ef45eb0/zig /home/gilead/legend-of-swarkland /home/gilead/legend-of-swarkland/.zig-cache /home/gilead/.cache/zig --seed 0xe5fc55cd -Zc0c5f8f0bfbf8c99
@OpenSourceJesus
Copy link
Author

Wait I might be using the wrong version of Zig. I will check later.

@thejoshwolfe
Copy link
Owner

I often update the codebase to use the latest version of zig at the time of making the updates. You can check the commit history for which version of zig i've updated to most recently. Currently it's zig 0.14.0-dev.1743+eb363bf84.

@thejoshwolfe
Copy link
Owner

However, looking at that error, it looks like you didn't include the .git directory when trying to build? The game embeds some git commit information in the compiled binary to display it on the main menu, so the .git history is necessary to build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants