2d3028a605 | ||
---|---|---|
build-aux | ||
data | ||
po | ||
src | ||
.gitignore | ||
.pre-commit-config.yaml | ||
COPYING | ||
Cargo.lock | ||
Cargo.toml | ||
README.md | ||
eu.nimmerfort.blackbody.json | ||
meson.build |
README.md
Blackbody
An image viewer specialized for thermograms. Currently supported are many FLIR cameras and single-banded TIFF files.
Compile for Linux
Either use GNOME Builder (easier) or do it manually. Using Builder it is a
question of pressing the compile&run button. Doing it manually involves
cargo build --release
, copying the compile gresource to the same directory as
the binary, and then cargo run --release
.
Compile for Windows
Compiling for Windows is more involved, but does work.
- Install the necessary mingw packages
- Run the build command with cross-compilation flags set. On Fedora:
PKG_CONFIG_ALLOW_CROSS=1 PKG_CONFIG_PATH=/usr/x86_64-w64-mingw32/sys-root/mingw/lib/pkgconfig/ MINGW_PREFIX=/usr/x86_64-w64-mingw32/sys-root/mingw/ cargo run --target=x86_64-pc-windows-gnu
- Copy DLLs, icons, glib schemas and the gresource to the same directory with the binary.
mkdir /wherever/release
cp target/x86_64-pc-windows-gnu/release/*.exe /wherever/release
cp $GTK_INSTALL_PATH/bin/*.dll /wherever/release
mkdir -p /wherever/release/share/glib-2.0/schemas && cp $GTK_INSTALL_PATH/share/glib-2.0/schemas/* /wherever/release/share/glib-2.0/schemas
mkdir -p /wherever/release/share/glib-2.0/schemas && cp -r $GTK_INSTALL_PATH/share/icons/* /wherever/release/share/icons
- Run with Wine or zip up the release dir and ru non Windows! Make sure
XDG_DATA_DIRS
is correctly set however:XDG_DATA_DIRS=path/to/app/share blackbody.exe
Reference: Cross-compiling Rust Linux -> Window