torarnv / sparsebundlefs

FUSE filesystem for reading macOS sparse-bundle disk images
BSD 2-Clause "Simplified" License
330 stars 38 forks source link

Makefile depends on pkg-config #32

Closed joshenders closed 3 years ago

joshenders commented 4 years ago

It might be obvious but it may be worth documenting that compilation depends on pkg-config.

$ make
make: pkg-config: Command not found
make: pkg-config: Command not found
g++ sparsebundlefs.cpp -o sparsebundlefs -std=c++11 -Wall -pedantic -O2 -g  -Wl,-rpath= -DFUSE_USE_VERSION=26
In file included from /usr/include/fuse/fuse.h:26,
                 from /usr/include/fuse.h:9,
                 from sparsebundlefs.cpp:47:
/usr/include/fuse/fuse_common.h:33:2: error: #error Please add -D_FILE_OFFSET_BITS=64 to your compile flags!
 #error Please add -D_FILE_OFFSET_BITS=64 to your compile flags!
  ^~~~~
make: *** [Makefile:144: sparsebundlefs] Error 1

This is on a newly installed Debian 10 system

torarnv commented 4 years ago

Thanks, that's a good point, I'll fix it 😊