AppImageCommunity / zsync3

Work-in-progress third incarnation of zsync.
Other
4 stars 2 forks source link

Cannot build on FreeBSD #1

Open probonopd opened 3 years ago

probonopd commented 3 years ago

Is zsync3 already in a working state` For helloSystem we need a zsync client, the one in FreeBSD is based on the original zsync and hence cannot download from e.g., GitHub Releases.

Hence I was trying to compile this, but am getting a (Boost related?) error.

% uname -v
FreeBSD 12.1-RELEASE r354233 GENERIC 

% sudo pkg install boost-libs

% make -j4                  
[ 16%] Building CXX object src/CMakeFiles/zsync3.dir/rollingchecksum.cpp.o
[ 33%] Building CXX object src/CMakeFiles/zsync3.dir/client_p.cpp.o
[ 50%] Building CXX object src/CMakeFiles/zsync3.dir/client.cpp.o
/tmp/zsync3/src/rollingchecksum.cpp:1:10: fatal error: 'boost/endian/conversion.hpp' file not found
#include <boost/endian/conversion.hpp>
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/zsync3/src/client_p.cpp:4:10: fatal error: 'boost/algorithm/string.hpp' file not found
#include <boost/algorithm/string.hpp>
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /tmp/zsync3/src/client.cpp:2:
/tmp/zsync3/src/../include/client_p.hpp:6:10: fatal error: 'boost/filesystem.hpp' file not found
#include <boost/filesystem.hpp>
         ^~~~~~~~~~~~~~~~~~~~~~
1 error generated.
1 error generated.
--- src/CMakeFiles/zsync3.dir/client_p.cpp.o ---
*** [src/CMakeFiles/zsync3.dir/client_p.cpp.o] Error code 1

make[2]: stopped in /tmp/zsync3/build
--- src/CMakeFiles/zsync3.dir/rollingchecksum.cpp.o ---
*** [src/CMakeFiles/zsync3.dir/rollingchecksum.cpp.o] Error code 1

make[2]: stopped in /tmp/zsync3/build
1 error generated.
--- src/CMakeFiles/zsync3.dir/client.cpp.o ---
*** [src/CMakeFiles/zsync3.dir/client.cpp.o] Error code 1

make[2]: stopped in /tmp/zsync3/build
3 errors

make[2]: stopped in /tmp/zsync3/build
--- src/CMakeFiles/zsync3.dir/all ---
*** [src/CMakeFiles/zsync3.dir/all] Error code 2

make[1]: stopped in /tmp/zsync3/build
1 error

make[1]: stopped in /tmp/zsync3/build
*** [all] Error code 2

make: stopped in /tmp/zsync3/build
1 error

make: stopped in /tmp/zsync3/build
antony-jr commented 3 years ago

What version of boost did you install?

antony-jr commented 3 years ago

Also have you tried zsync2 to build in FreeBSD?

probonopd commented 3 years ago

1.72.0. zsync2 also does not compile but TheAssassin said he has no interest in supporting FreeBSD.

https://github.com/probonopd/zsync-curl/issues/38 does compile with a small workaround that should be easy to fix, but its performance is not great (uses only 1 core).

This issue is low priority, so no hurries.