Open mtniehaus opened 1 year ago
(I figured out my build issue: The instructions at https://www.fsarchiver.org/installation/ are missing one dependency, libuuid-devel.)
I can compile a static binary of fsarchiver with the latest version of all the dependencies if anybody is interesed...
I found the following are needed to build non static (on Ubuntu with 0.8.7). Anyone help me with how to build a static binary. Added option to build as static but fails with libgcrypt error.
apt install build-essential apt install zlib1g zlib1g-dev apt install libbz2-dev liblzma-dev apt install pkg-config apt install liblzo2-dev apt install liblz4-dev apt install libzstd-dev apt install libgcrypt-dev apt install e2fslibs-dev apt install libblkid-dev
I add --disable-shared --enable-static
to ./configure
(before ./configure you must export PKG_CONFIG='pkg-config --static
and export LDFLAGS=--static
)
All the -dev packages you installed must include .a lib(s) for this to work
I don't install anything, I compile everything from scratch, I only compile static libs.. it's a complex process... in the end the completely static binary awaits...
Thanks wdlkmpx. Haven't managed to get it to compile a static yet, but useful info. Still libgcrypt error.
Since 0.8.6 isn't included in Fedora (https://bugzilla.redhat.com/show_bug.cgi?id=1965840), I was reading the docs at https://www.fsarchiver.org/installation/ to try to get this version myself. The docs say there will be a static binary, but that doesn't appear to be present for version 0.8.6. (Not having much luck building it myself either, but I think that's a personal problem.)