You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
apt install libarchive-dev gcc-8
export CXX="g++-8" CC="gcc-8"
make
without these, you get:
In file included from src/unlocker.cpp:35:
include/archiveutils.h:6:10: fatal error: archive.h: No such file or directory
6 | #include <archive.h>
| ^~~~~~~~~~~
compilation terminated.
<builtin>: recipe for target 'src/unlocker.o' failed
make: *** [src/unlocker.o] Error 1
and
g++ -Wall -std=c++17 -Iinclude -c -o src/unlocker.o src/unlocker.cpp
src/unlocker.cpp:25:10: fatal error: filesystem: No such file or directory
#include <filesystem>
^~~~~~~~~~~~
compilation terminated.
<builtin>: recipe for target 'src/unlocker.o' failed
make: *** [src/unlocker.o] Error 1
The text was updated successfully, but these errors were encountered:
the dependencies and compilation instructions are explained in the readme, namely here
The program needs the following libraries:
libcurl
zlib
libarchive
and here
Linux: Use the embedded Makefile. Get needed libraries (or compile them and install) first, then run make
Note regarding default g++ version on Ubuntu: by default, Ubuntu ships with g++ v7, which doesn't support natively c++17 features. To compile the program you have to install at least g++-8, set CXX variable when running make and add stdc++fs library dependence (make CXX=g++-8 LIBS=-lstdc++fs)
Alternatively, you can install g++-9 and avoid adding the library dependency.
apt install libarchive-dev gcc-8
export CXX="g++-8" CC="gcc-8"
make
without these, you get:
and
The text was updated successfully, but these errors were encountered: