Skip to content

Working local MacOS Installation #183

Description

@kaneviggers

Config
Chip: M1 Pro
OS: Tahoe 26
Node: v20.15.1

Install packages via Brew
brew update
brew install cmake pkg-config
brew install python@3.11
brew install opencv@4
brew link --force opencv@4

Export variables
export PATH="/opt/homebrew/opt/python@3.11/bin:$PATH"
export OPENCV4NODEJS_DISABLE_AUTOBUILD=1
export OPENCV_LIB_DIR=/opt/homebrew/opt/opencv/lib
export OPENCV_INCLUDE_DIR=/opt/homebrew/opt/opencv/include/opencv4

Finally install @u4/opencv4nodejs
npm install --save @u4/opencv4nodejs

Hope this helps someone!
-K

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions