Go to file
Arthur Nieuwland c9b05ca96b Fix version string in Help window 2022-07-08 17:09:06 +02:00
build-aux #27 - Building and publishing of Windows and Flathub versions (pull request #1) 2022-07-08 14:35:07 +00:00
data #27 - Building and publishing of Windows and Flathub versions (pull request #1) 2022-07-08 14:35:07 +00:00
po Updated translations 2021-01-02 13:15:22 +01:00
src Fix version string in Help window 2022-07-08 17:09:06 +02:00
.gitignore #25 #28 #32 - Optical and palette data support (pull request #2) 2022-02-28 15:16:28 +00:00
.pre-commit-config.yaml Added pre-commit configuration 2020-10-14 17:47:06 +02:00
CHANGELOG Added ability to export thermograms 2021-01-02 11:02:35 +01:00
COPYING Applied pre-commit hooks to all files 2020-10-14 18:18:23 +02:00
Cargo.lock #27 - Building and publishing of Windows and Flathub versions (pull request #1) 2022-07-08 14:35:07 +00:00
Cargo.toml #25 #28 - Optical and palette data support (pull request #3) 2022-07-08 14:10:40 +02:00
PREVIEW.md Updated previews 2020-12-31 10:48:33 +01:00
README.md Updated installation instructions to include flatpak 2020-12-31 10:52:51 +01:00
bitbucket-pipelines.yml Fix version string in Help window 2022-07-08 17:09:06 +02:00
eu.nimmerfort.blackbody-debug.json #25 #28 #32 - Optical and palette data support (pull request #2) 2022-02-28 15:16:28 +00:00
eu.nimmerfort.blackbody-flathub.json #27 - Building and publishing of Windows and Flathub versions (pull request #1) 2022-07-08 14:35:07 +00:00
eu.nimmerfort.blackbody.json #25 #28 #32 - Optical and palette data support (pull request #2) 2022-02-28 15:16:28 +00:00
meson.build Bumped version to 1.3.0-dev 2021-01-02 13:23:42 +01:00
rustfmt.toml Applied pre-commit hooks to all files 2020-10-14 18:18:23 +02:00

README.md

Blackbody

An image viewer specialized in rendering thermograms. For an animated example, visit here (loads a 7.5MB image).

Screenshot of the application

Features

  • Opens many FLIR thermograms, especially recent ones
  • Licensed under the EUPL, it is free software, both in price and in user rights
  • Works on Linux and Windows
  • Renders to several different color palettes (grayscale, turbo, inferno, and more)
  • Dynamically set minimum and maximum values for rendering
  • Zoom in and out
  • Written in Rust and therefore fast

Get it

Blackbody is available on Flathub. It can be installed using your software center, the linked page or the following commands:

flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak install flathub eu.nimmerfort.blackbody
flatpak run eu.nimmerfort.blackbody

The downloads page lists download options for Linux and Windows. The Linux version is available as a flatpak. After installing, Blackbody then appears in your overview. The Windows is provided as zip. You will have to unzip it and place the containing directory where you want to install it manually. Run the application by double clicking blackbody.exe.

Compile for Linux

Either use GNOME Builder (easier) or do it manually. Using Builder it is a matter of pressing the compile&run button. Doing it manually involves cargo build --release, copying the compiled 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 MINGW_PREFIX=/usr/x86_64-w64-mingw32/sys-root/mingw PKG_CONFIG_PATH=$MINGW_PREFIX/lib/pkgconfig cargo build --target=x86_64-pc-windows-gnu --release
  3. Copy DLLs, icons, glib schemas and the gresource to the same directory with the binary.
    1. mkdir blackbody-windows
    2. cp target/x86_64-pc-windows-gnu/release/*.exe blackbody-windows/
    3. cp /usr/x86_64-w64-mingw32/sys-root/mingw/bin/*.dll blackbody-windows/
    4. cp /usr/x86_64-w64-mingw32/sys-root/mingw/bin/gdbus.exe blackbody-windows/
    5. mkdir -p blackbody-windows/share/glib-2.0/schemas
    6. cp /usr/x86_64-w64-mingw32/sys-root/mingw/share/glib-2.0/schemas/gschemas.compiled blackbody-windows/share/glib-2.0/schemas/gschemas.compiled
    7. cp -r /usr/x86_64-w64-mingw32/sys-root/mingw/share/icons blackbody-windows/share/icons
    8. Compile the gresource bundle and copy it to blackbody-windows
  4. Run with Wine or zip up the release dir and ru non Windows! When using wine XDG_DATA_DIRS is correctly set however: XDG_DATA_DIRS=blackbody-windows/share wine blackbody.exe. In Windows it doesn't seem to matter.

Reference: Cross-compiling Rust Linux -> Windows