Go to file
Arthur Nieuwland 2d3028a605 Added pre-commit configuration 2020-10-14 17:47:06 +02:00
build-aux Initial import in Builder project 2020-05-03 07:47:25 +02:00
data Updated packaging details 2020-10-14 16:13:39 +02:00
po Initial import in Builder project 2020-05-03 07:47:25 +02:00
src Made location gresource more flexible 2020-10-14 14:07:43 +02:00
.gitignore Made application slightly more portable by loading glade file relative to exec path 2020-10-13 14:49:54 +02:00
.pre-commit-config.yaml Added pre-commit configuration 2020-10-14 17:47:06 +02:00
COPYING License is EUPL 1.2 2020-10-11 17:31:14 +02:00
Cargo.lock Bumped version number for development 2020-10-14 15:35:27 +02:00
Cargo.toml Bumped version number for development 2020-10-14 15:35:27 +02:00
README.md Updated details 2020-10-14 15:31:47 +02:00
eu.nimmerfort.blackbody.json Updated packaging details 2020-10-14 16:13:39 +02:00
meson.build Successfully managed to build with Meson through Builder's build button. Needed SDK rust-stable 19.0x 2020-10-14 12:27:31 +02:00

README.md

Blackbody

An image viewer specialized for thermograms. Currently supported are many FLIR cameras and single-banded TIFF files.

Screenshot of the application

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.

  1. Install the necessary mingw packages
  2. 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
  3. Copy DLLs, icons, glib schemas and the gresource to the same directory with the binary.
    1. mkdir /wherever/release
    2. cp target/x86_64-pc-windows-gnu/release/*.exe /wherever/release
    3. cp $GTK_INSTALL_PATH/bin/*.dll /wherever/release
    4. 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
    5. mkdir -p /wherever/release/share/glib-2.0/schemas && cp -r $GTK_INSTALL_PATH/share/icons/* /wherever/release/share/icons
  4. 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