Crates.io | orbclient |
lib.rs | orbclient |
version | 0.3.48 |
source | src |
created_at | 2016-02-09 02:42:51.323466 |
updated_at | 2024-10-16 18:10:00.878309 |
description | The Orbital Client Library |
homepage | |
repository | https://gitlab.redox-os.org/redox-os/orbclient |
max_upload_size | |
id | 4132 |
size | 4,970,316 |
The Orbital Client Library. Compatible with Redox and SDL2 (on Linux and Macos).
If you are NOT using the "bundled" feature (which is off by default) then you need SDL (sdl2) installed on your system.
On macos you can install the SDL2 library using brew install sdl2
The "serde"
feature can be used to include code for Color
deserialization using the serde
crate (which is an
optional dependency). This is not enabled by default. To enable, either build using the --features "serde"
command
line option, or use features = ["serde"]
in your crate, where it declares a dependency on orbclient.
The std
feature is used to allow building orbclient
with our without rust std
.
This is to enable use by some UEFI apps (e.g. System76 firmware setup, System76 firmware updater) that don't have std
.
The "unifont
feature (on by default is used to include the "unifont" font).
The bundled
feature removes the need to have SDL2 installed locally. The SDL library is compiled from source
as part of the crate build and bundled with it.
nightly
version of Rust
rustup override set nightly
nightly
version of Rust with rustup update nightly
libsdl2-dev
manually
sudo apt-get install libsdl2-dev
in your consolesudo dnf install SDL2-devel SDL2-static
in your console before building.
could not find native static library `SDL2main`, perhaps an -L flag is missing?
.
Providing the path to the static library might help. You can provide this path via RUSTFLAGS='-L <path-to-folder-with-libSDL2.a>' cargo b ...
.
At the moment of writing, the SDL2 library is stored under /usr/lib64 on fedora. In this case you would type RUSTFLAGS='-L /usr/lib64' cargo r --example simple
to start the simple example.