syzygy
syzygy copied to clipboard
"make install" is missing
# Let's compile it
me@host:~$ sudo apt-get install libsdl2-dev python curl curl libssl-dev cargo rustc
me@host:~$ git clone https://github.com/mdsteele/syzygy
me@host:~$ cd syzygy
me@host:~/syzygy$ cargo build --release
# It does not run
me@host:~/syzygy$ ./target/release/syzygy
thread 'main' panicked at 'screen_fade: Error { repr: Os { code: 2, message: "No such file or directory" } }', libcore/result.rs:916:5
# So let's debug
me@host:~/syzygy/target/release$ strace -f ./syzygy 2>&1 | grep -i fade
[pid 25810] openat(AT_FDCWD, "/usr/lib/syzygy/data/sprites/screen_fade.ahi", O_RDONLY|O_CLOEXEC <unfinished ...>
[pid 25810] write(2, "screen_fade: Error { repr: Os { "..., 81 <unfinished ...>
[pid 25815] write(16, "\1\0\0\0\0\0\0\0", 8screen_fade: Error { repr: Os { code: 2, message: "No such file or directory" } } <unfinished ...>
# It seems like it is trying to open something that does not exist at that location
me@host:~/syzygy/target/release$ ls -lh /usr/lib/syzygy/data/sprites/screen_fade.ahi
ls: cannot access '/usr/lib/syzygy/data/sprites/screen_fade.ahi': No such file or directory
# How would I go about installing this in the proper place?
# Why is it not accessing it using paths relative to the main executable?
me@host:~/syzygy$ find . -name '*screen_fade*'
./data/sprites/screen_fade.ahi
sudo mkdir -p /usr/lib/syzygy/
sudo cp -r ./data /usr/lib/syzygy/
# This is my system
me@host:~/syzygy$ cat /etc/os-release
NAME="Ubuntu"
VERSION="18.04 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04 LTS"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic
sudo mkdir -p /usr/lib/syzygy/
sudo cp -r ./data /usr/lib/syzygy/
Works :)
make install appears to be missing?
Hi, sorry for the trouble. Instructions for running locally (recently updated) are here: https://github.com/mdsteele/syzygy#building-and-running-locally
There's no make install script, but current instructions for installing on Ubuntu are here: https://github.com/mdsteele/syzygy#debian-linux
Maybe you'd like to change
https://github.com/mdsteele/syzygy/blob/569475d88add3c59a4790354b88e23a82218d19f/.travis.yml#L13-L20
once the AppImage build on Travis CI is known good working. It is working as-is for me now, so the changes would be merely to reduce the number of manual steps in that file.
Thanks.