Closed vincentkam closed 1 year ago
You're trying to link to the binary in the app bundle. You need to link to the libmpv dylib. Run brew install --formula mpv
and try again.
Ah thanks! Seems I had both the cask and the formula installed.
vincent@Azure ➜ libmpv git:(master) brew install --formula mpv
Warning: mpv 0.36.0 is already installed, it's just not linked.
To link this version, run:
brew link mpv
vincent@Azure ➜ libmpv git:(master) brew link mpv
Linking /opt/homebrew/Cellar/mpv/0.36.0...
Error: Could not symlink bin/mpv
Target /opt/homebrew/bin/mpv
already exists. You may want to remove it:
rm '/opt/homebrew/bin/mpv'
To force the link and overwrite all conflicting files:
brew link --overwrite mpv
To list all files that would be deleted:
brew link --overwrite --dry-run mpv
vincent@Azure ➜ libmpv git:(master) brew link --overwrite --dry-run mpv
Would remove:
/opt/homebrew/bin/mpv -> /Applications/mpv.app/Contents/MacOS/mpv
/opt/homebrew/share/man/man1/mpv.1 -> /opt/homebrew/Caskroom/mpv/0.36.0/documentation/man/mpv.1
vincent@Azure ➜ libmpv git:(master) brew link --overwrite mpv
Linking /opt/homebrew/Cellar/mpv/0.36.0... 9 symlinks created.
vincent@Azure ➜ libmpv git:(master)
After running brew link
, make
worked:
vincent@Azure ➜ Memento git:(master) ✗ make
mkdir -p build
cd build; \
cmake -DCMAKE_BUILD_TYPE=Release -DOCR_SUPPORT=ON ..; \
cmake --build . -j
-- Found mpv: /opt/homebrew/lib/libmpv.dylib
-- Found SQLite3: /Library/Frameworks/Mono.framework/Headers (found version "3.26.0")
-- Found Python: /opt/homebrew/opt/python@3.11/Frameworks/Python.framework/Versions/3.11/include/python3.11 (found version "3.11.5") found components: Development Development.Module Development.Embed
-- Configuring done (2.3s)
-- Generating done (0.3s)
-- Build files have been written to: /Users/vincent/projects/Memento/build
I gave a quick go at updating the readme: https://github.com/ripose-jp/Memento/pull/181
So after installing the prereqs, I tried running
make
:Here's where MPV is:
I tried setting some environment variables to no avail:
I even tried cloning the
mpv
project and settingmpv_INCLUDE_DIR