libfuse / sshfs

A network filesystem client to connect to SSH servers
GNU General Public License v2.0
5.74k stars 488 forks source link

meson build fails on Apple M1 Mac #265

Closed poetaman closed 2 years ago

poetaman commented 2 years ago

Meson build fails on macOS Apple M1 devices. The reason I tried this is: 1) The osxfuse/sshfs repository points to this as the "latest" version: https://github.com/osxfuse/sshfs#latest-version, 2) osxfuse website has a binary that works only on PowerPC+Intel as per the screenshot below. Is macOS destined to work only with sshfs 2.5.0? Here's a related issue on osx/sshfs: https://github.com/osxfuse/sshfs/issues/69

~/Downloads/sshfs/build master
❯ meson ..
The Meson build system
Version: 0.59.1
Source dir: /Users/reportaman/Downloads/sshfs
Build dir: /Users/reportaman/Downloads/sshfs/build
Build type: native build
Project name: sshfs
Project version: 3.7.2
C compiler for the host machine: cc (clang 12.0.5 "Apple clang version 12.0.5 (clang-1205.0.22.9)")
C linker for the host machine: cc ld64 650.9
Host machine cpu family: aarch64
Host machine cpu: arm64
../meson.build:8: WARNING: Consider using the built-in warning_level option instead of using "-Wall".
../meson.build:8: WARNING: Consider using the built-in warning_level option instead of using "-Wextra".
Program rst2man rst2man.py found: NO
Configuring config.h using configuration
Found pkg-config: /opt/homebrew/bin/pkg-config (0.29.2)
Found CMake: /usr/local/bin/cmake (3.19.3)
Run-time dependency fuse3 found: NO (tried pkgconfig, framework and cmake)

../meson.build:47:0: ERROR: Dependency "fuse3" not found, tried pkgconfig, framework and cmake

A full log can be found at /Users/reportaman/Downloads/sshfs/build/meson-logs/meson-log.txt

Screen Shot 2021-09-18 at 10 25 00 PM

Nikratio commented 2 years ago

Thanks for the report. Note that SSHFS 3.x requires libfuse3, which isn't (yet?) available for MacOS.