You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I encountered a few errors in building the cartpole example.
I was able to get them sorted out, but still making this issue to document. Things I had to do to solve:
Install cmake (sudo apt install cmake)
This was a fresh installation that didn't happen to have cmake installed, which is unlikely, yet possible for beginners/students
Add the following lines to cargo.toml (not sure if this is strictly required... but nonetheless resolved an error)
and run cargo vcpkg build before cargo build
[package]
name = "gym-rs"
...
[dependencies]
...
+ [package.metadata.vcpkg]+ dependencies = ["sdl2", "sdl2-gfx"]+ git = "https://github.com/microsoft/vcpkg"+ rev = "501db0f" # or change based on the latest release in GitHub
Install libsdl2-gfx-dev in addition to libsdl2-dev
I feel that other users may encounter the same issue; perhaps would be good to update readme
Thanks for making this awesome library! Feel free to investigate more or close the issue.
The text was updated successfully, but these errors were encountered:
I had the same issue with /usr/bin/ld: cannot find -lSDL2_gfx: No such file or directory. Running sudo apt install libsdl2-gfx-dev fixed it for me, personally I did not need to add anything from the second bullet. Thank you for documenting this!
Hi, I encountered a few errors in building the cartpole example.
I was able to get them sorted out, but still making this issue to document. Things I had to do to solve:
cmake
(sudo apt install cmake)cmake
installed, which is unlikely, yet possible for beginners/studentscargo.toml
(not sure if this is strictly required... but nonetheless resolved an error)cargo vcpkg build
before cargo buildlibsdl2-gfx-dev
in addition tolibsdl2-dev
Thanks for making this awesome library! Feel free to investigate more or close the issue.
The text was updated successfully, but these errors were encountered: