Comments

Log in with itch.io to leave a comment.

Anyone have tips on getting it working on Linux?

Honestly, I can't really support Linux binaries anymore. Although, it should be easy enough to compile the games yourself for Linux. All you need is a Rust compiler and cargo, and SDL.

https://github.com/liamoc/desktop_games

Don't use the Makefiles, they're for publishing to Itch. Looking at the Ubuntu packages for example, I think you'll need to run something like:

sudo apt install rustc cargo libsdl2 libsdl2-dev

Then just run

cargo run --release gatchi

from the directory where you cloned the above repository.

Thanks! It looks like I'm getting close. I'm pretty sure I needed to run  

sudo cargo new gatchi --bin

before running 

cargo run --release gatchi

and I needed to have its directory name in "snake-case". 

I got 

 Compiling gatchi-same v0.1.0 (/[dir]/gatchi-same)

    Finished release [optimized] target(s) in 0.28s

     Running `target/release/gatchi-same gatchi`
Hello, world!

But I'm not playing yet

Hi, it looks like you instead created a new Rust project called gatchi and built that. Try running this exact series of commands:


git clone https://github.com/liamoc/desktop_games.git
cd desktop_games
cargo run --release gatchi

I get

error: failed to read `/[dir]/littlewing/Cargo.toml`

Caused by:

  No such file or directory (os error 2)

It's similar to the problem I was encountering before - the lack of a cargo.toml file that led me to the "sudo cargo new gatchi --bin" command I tried above. 

I tried copying the Cargo.toml file from desktop_games into gatchi but that didn't seem to help.

Ah, it's trying to build the chess game for some reason.


Try just going

git clone https://github.com/liamoc/desktop_games.git
cd desktop_games
cd gatchi
cargo run --release