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

Failing to build with dependencies installed #1040

Open
du82 opened this issue Feb 13, 2025 · 8 comments
Open

Failing to build with dependencies installed #1040

du82 opened this issue Feb 13, 2025 · 8 comments

Comments

@du82
Copy link

du82 commented Feb 13, 2025

du@newnovo:~/Desktop/Cubyz-master$ ./run_linux.sh 
Detecting Zig compiler...
Zig compiler is valid.
Building Zig Cubyz (-Doptimize=ReleaseFast) from source. This may take a few minutes...
install
└─ install Cubyzig
   └─ zig build-exe Cubyzig ReleaseFast native failure
error: error: unable to find dynamic system library 'x11' using strategy 'paths_first'. searched paths:
  /usr/local/lib64/libx11.so
  /usr/local/lib64/libx11.a
  /usr/local/lib/libx11.so
  /usr/local/lib/libx11.a
  /usr/lib/x86_64-linux-gnu/libx11.so
  /usr/lib/x86_64-linux-gnu/libx11.a
  /lib64/libx11.so
  /lib64/libx11.a
  /lib/libx11.so
  /lib/libx11.a
  /usr/lib64/libx11.so
  /usr/lib64/libx11.a
  /usr/lib/libx11.so
  /usr/lib/libx11.a
  /lib/x86_64-linux-gnu/libx11.so
  /lib/x86_64-linux-gnu/libx11.a

error: the following command exited with error code 1:
/home/du/Desktop/Cubyz-master/compiler/zig/zig build-exe /home/du/.cache/zig/p/1220234373ac197e8dad7a2d1beeb81619a6112e44dba6b2672af9a38fb01a16eef8/lib/libcubyz_deps_x86_64-linux-musl.a -lasound -lx11 -lGL -OReleaseFast -I /home/du/.cache/zig/p/1220f83952166e8649c95fdbc3585c7fc8cc2d0de878c26feec2d4b0277cc0c86106/include --dep gui --dep server -Mroot=/home/du/Desktop/Cubyz-master/src/main.zig -OReleaseFast -Mgui=/home/du/Desktop/Cubyz-master/src/gui/gui.zig -OReleaseFast -Mserver=/home/du/Desktop/Cubyz-master/src/server/server.zig -lc++ -lc --cache-dir /home/du/Desktop/Cubyz-master/.zig-cache --global-cache-dir /home/du/.cache/zig --name Cubyzig --zig-lib-dir compiler/zig/lib/ --listen=- 
Build Summary: 0/3 steps succeeded; 1 failed
install transitive failure
└─ install Cubyzig transitive failure
   └─ zig build-exe Cubyzig ReleaseFast native failure
error: the following build command failed with exit code 1:
/home/du/Desktop/Cubyz-master/.zig-cache/o/5937b04c16c45e6160c09a7493d0d2e0/build /home/du/Desktop/Cubyz-master/compiler/zig/zig compiler/zig/lib /home/du/Desktop/Cubyz-master /home/du/Desktop/Cubyz-master/.zig-cache /home/du/.cache/zig --seed 0x6463c908 -Z88e0a2a6b2b44e89 -Doptimize=ReleaseFast
Press enter key to continue. (Or export NO_PAUSE=1 to skip this prompt.)

@IntegratedQuantum
Copy link
Member

How did you install the dependencies?

@du82
Copy link
Author

du82 commented Feb 13, 2025

with the command in the readme

@IntegratedQuantum
Copy link
Member

Can you show me the output of that command?
Also what linux distribution do you use?

@du82
Copy link
Author

du82 commented Feb 13, 2025

That is the output, and I use the latest stable release of KDE Neon

@IntegratedQuantum
Copy link
Member

I mean the output of the install command.

@IntegratedQuantum
Copy link
Member

Either way it looks like x11 is missing, are you using wayland? (Wayland is currently not supported by Cubyz: #358).

@du82
Copy link
Author

du82 commented Feb 14, 2025

Thats odd, I've played Cubyz on this same machine just last week, and the machine hasn't been updated between then and now

@IntegratedQuantum
Copy link
Member

That's even more weird. I also didn't change anything with regards to the build system, and I didn't update Zig either.
Could you try removing and reinstalling the packages maybe?

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