justadudewhohacks / justadudewhohacks/opencv4nodejs
Custom bin/lib/include path doesn't work on macOS ARM
- Dominant language
- C++
- Stars
- 5.1k
- Forks
- 826
- PR merge metrics
- No merged PRs in 30d
Description
The main problem seems to be that even though I'm disabling the AUTOBUILD for using opencv installed in /opt/homebrew, it seems to not work. I believe that the fixed path /usr/bin is being used. However, for ARM software, homebrew recommends using /opt/homebrew. Would be a non-issue, but it seems that the path seems to be ignored on macOS?
When I enable auto-builds and put the correct paths, it still compains that the opencv-build directories are not being found.
# Error Message
Uncaught Error: Cannot find module '[path]/node_modules/opencv4nodejs/build/Release/opencv4nodejs'
# Manual Build - Environment Information
"opencv4nodejs": {
"disableAutoBuild": 1,
"opencvIncludeDir": "/opt/homebrew/include",
"opencvLibDir": "/opt/homebrew/lib",
"opencvBinDir": "/opt/homebrew/bin"
}
AND/OR
export OPENCV4NODEJS_DISABLE_AUTOBUILD=1
export OPENCV_INCLUDE_DIR=/opt/homebrew/include
export OPENCV_BIN_DIR=/opt/homebrew/bin
export OPENCV_LIB_DIR=/opt/homebrew/lib
*OpenCV version* (example 3.4.1): 4.5.1
*With OpenCV-contrib?* (extra modules): no
*OS*: macOS on ARM
Contributor guide
Assessment
This issue has not been assessed yet.