Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The directory returned by pkg-config fuse-t --cflags does not exist on Sonoma 14.5 (M1) #77

Open
chmue opened this issue Nov 25, 2024 · 1 comment

Comments

@chmue
Copy link

chmue commented Nov 25, 2024

I installed fuse-t as suggested in the README like this and everything worked fine.

brew install macos-fuse-t/homebrew-cask/fuse-t

Then, I try to compile ext4fuse against fuse-t, so I change fuse to fuse-t in the pkg-config statementes in the Makefile. Running make returns the following error.

› make
cc -I/usr/local/include/fuse -DFUSE_USE_VERSION=26 -std=gnu99 -g3 -Wall -Wextra -DEXT4FUSE_VERSION=\"v0.1.3-20-g6b23d8d\" -mmacosx-version-min=10.5 -D_FILE_OFFSET_BITS=64   -c -o fuse-main.o fuse-main.c
fuse-main.c:14:10: fatal error: 'fuse.h' file not found
   14 | #include <fuse.h>
      |          ^~~~~~~~
1 error generated.
make: *** [fuse-main.o] Error 1

I track the error and find that pkg-config fuse-t --cflags returns -I/usr/local/include/fuse which does not exist on my system.

› pkg-config fuse-t --cflags
-I/usr/local/include/fuse

› ls -l /usr/local/include/fuse
ls: /usr/local/include/fuse: No such file or directory

I solved my issue by adding the path, where the header files are stored on my system, explicity CFLAGS += -I/Library/Frameworks/fuse_t.framework/Versions/Current/Headers.

I just want to bring this to your attention. Feel free to close if it is irrelevant.

@macos-fuse-t
Copy link
Owner

Try this link
https://github.com/macos-fuse-t/ext4fuse

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants