davidgiven / fluxengine

PSOC5 floppy disk imaging interface
MIT License
352 stars 68 forks source link

Again, Fluxengine doesn't install on Mac #734

Open Yserra opened 8 months ago

Yserra commented 8 months ago

Hi David, I'm not sure that it is related to #733, but I'm now unable to make fluxengine work on my Mac M1 with latest macOS Sonoma 14.2.

So, first, running my previous fluxengine command line says:

$ ./fluxengine read dyld[79872]: Library not loaded: /opt/homebrew/opt/protobuf/lib/libprotobuf.24.3.0.dylib Referenced from: <4A8AD69F-83D2-3A79-88D0-4930CE979152> /Applications/Emulation/Divers/GestionDisquettes/fluxengine/fluxengine Reason: tried: '/opt/homebrew/opt/protobuf/lib/libprotobuf.24.3.0.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/opt/protobuf/lib/libprotobuf.24.3.0.dylib' (no such file), '/opt/homebrew/opt/protobuf/lib/libprotobuf.24.3.0.dylib' (no such file), '/opt/homebrew/Cellar/protobuf/25.1/lib/libprotobuf.24.3.0.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/Cellar/protobuf/25.1/lib/libprotobuf.24.3.0.dylib' (no such file), '/opt/homebrew/Cellar/protobuf/25.1/lib/libprotobuf.24.3.0.dylib' (no such file) Abort trap: 6

Obviously, protobuf has since been updated:

$ brew list protobuf /opt/homebrew/Cellar/protobuf/25.1/bin/protoc /opt/homebrew/Cellar/protobuf/25.1/bin/protoc-25.1.0 /opt/homebrew/Cellar/protobuf/25.1/include/google/ (233 files) /opt/homebrew/Cellar/protobuf/25.1/include/java/core/src/main/java/com/google/protobuf/java_features.proto /opt/homebrew/Cellar/protobuf/25.1/include/ (2 files) /opt/homebrew/Cellar/protobuf/25.1/lib/libprotobuf-lite.25.1.0.dylib /opt/homebrew/Cellar/protobuf/25.1/lib/libprotobuf.25.1.0.dylib /opt/homebrew/Cellar/protobuf/25.1/lib/libprotoc.25.1.0.dylib /opt/homebrew/Cellar/protobuf/25.1/lib/cmake/ (10 files) /opt/homebrew/Cellar/protobuf/25.1/lib/pkgconfig/ (3 files) /opt/homebrew/Cellar/protobuf/25.1/lib/python3.10/ (56 files) /opt/homebrew/Cellar/protobuf/25.1/lib/python3.11/ (56 files) /opt/homebrew/Cellar/protobuf/25.1/lib/python3.12/ (56 files) /opt/homebrew/Cellar/protobuf/25.1/lib/ (5 other files) /opt/homebrew/Cellar/protobuf/25.1/share/emacs/site-lisp/protobuf/protobuf-mode.el /opt/homebrew/Cellar/protobuf/25.1/share/protobuf/ (25 files) /opt/homebrew/Cellar/protobuf/25.1/share/vim/vimfiles/syntax/proto.vim

So, I choose to install the new prebuilt package for macOS. It says it installed Fluxengine in /Applications folder with success. But... it installed nothing:

$ ls -d /Applications/F* /Applications/F5Access.app

Ok. So, I then choose to do it the old way, by downloading and building source code. But it fails dramatically:

MacBook-Yann:fluxengine-dev yserra$ cd /Users/yserra/Downloads/fluxengine-dev MacBook-Yann:fluxengine-dev yserra$ gmake AB loading build.py loading build/c.py loading build/protobuf.py loading build/pkg.py loading build/utils.py loading config.py fluxengine-testdata not found; skipping corpus tests loading src/build.py loading dep/adflib/build.py loading dep/agg/build.py loading dep/fatfs/build.py loading dep/hfsutils/build.py loading dep/libusbp/build.py loading dep/stb/build.py loading lib/build.py loading arch/build.py loading src/formats/build.py loading scripts/build.py loading tests/build.py loading src/gui/build.py loading extras/build.py loading src/gui/drivetypes/build.py loading tools/build.py loading dep/snowhouse/build.py .obj/build.mk:8: *** Required package 'protobuf' not installed.. Stop.

Yserra commented 7 months ago

Hi David. Just to tell you the latest code now perfectly builds on macOS. Thank you!

And, a strange but very appreciable thing: the prebuilt installer actually doesn't necessarily install FluxEngine at the root of the Application folder. It installs it into the subfolder where the user (me) moved the previous release. For instance, I manually moved FluxEngine into /Applications/FloppyDrive/FluxEngine then run it from here. Now the installer installs the new version in that exact folder by default (without telling it, by the way).

Thanks again for all your fantastic work! Best, Yann