Am 26.11.2011 um 07:40 schrieb Sam Moffatt:
> I believe fuse.h is in /usr/local/include. You should probably use
> pkg-config to make sure you get the right configuration information
> for FUSE. For myself this results in the following output:
> silversaviour:~ pasamio$ pkg-config --cflags fuse
> -D__FreeBSD__=10 -D_FILE_OFFSET_BITS=64 -I/usr/local/include/fuse
Actually, these are the CFLAGS for MacFUSE. OSXFUSE's fuse.pc is slightly different:
$ pkg-config --cflags fuse
-D__DARWIN_64_BIT_INO_T=1 -D__FreeBSD__=10 -D_FILE_OFFSET_BITS=64 -I/usr/local/include/osxfuse/fuse
The file /usr/local/lib/pkg-config/fuse.pc is the only file that comes with MacFUSE and OSXFUSE (without MacFUSE compatibility stuff). In case of OSXFUSE it is a symlink pointing to osxfuse.pc.
> Updating the make script to do this should result in the code
> compiling properly. This also assumes an appropriate configured
> pkg-config setup (on my system I need "/usr/local/lib/pkgconfig" in my
> PKG_CONFIG_PATH environment variable)
> Cheers,
> Sam Moffatt
> http://pasamio.id.au
> On Tue, Oct 25, 2011 at 6:41 AM, Stuarty <stuartroberts...@gmail.com> wrote:
>> Has anyone used rdiff-backup-fs-1.0.0 on mac os x? I have rdiff-backup
>> working and would like to mount the backups using fuse.
>> When I try to make and install rdiff-backup-fs-1.0.0 I get the
>> following error
>> bash-3.2$ make
>> make all-recursive
>> Making all in layout
>> gcc -DHAVE_CONFIG_H -I. -I.. -Wall -O3 -MT all.o -MD -MP -
>> MF .deps/all.Tpo -c -o all.o all.c
>> In file included from all.h:5,
>> from all.c:1:
>> ../externs.h:6:18: error: fuse.h: No such file or directory
>> make[2]: *** [all.o] Error 1
>> make[1]: *** [all-recursive] Error 1
>> make: *** [all] Error 2
>> The code is at http://code.google.com/p/rdiff-backup-fs/
>> Thanks, Stuart