justadudewhohacks / justadudewhohacks/opencv4nodejs
Build OK but failed to run tests
- Dominant language
- C++
- Stars
- 5.1k
- Forks
- 826
- PR merge metrics
- No merged PRs in 30d
Description
Succesfully built with a fresh install of opencv@3 (which might or might fit opencv4nodejs's manual saying it must be in /usr/local). Yarn add seems happy.
````
$ brew install opencv@3
$ export LDFLAGS="-L/usr/local/opt/opencv@3/lib"
$ export CPPFLAGS="-I/usr/local/opt/opencv@3/include"
$ OPENCV4NODEJS_DISABLE_AUTOBUILD=1 yarn add opencv4nodejs
````
success Saved 1 new dependency.
info Direct dependencies
└─ opencv4nodejs@4.14.1
When I ran some actual tests, it fails with linking issue:
````
$ node scripts/test-opencv4nodejs.js
module.js:682
return process.dlopen(module, path._makeLong(filename));
^
Error: dlopen(/Users/wc/testproj/node_modules/opencv4nodejs/build/Release/opencv4nodejs.node, 1): Symbol not found: __ZNK2cv12MatAllocator3mapEPNS_8UMatDataEi
````
It looks to me that some hardwired path is still there, noticing that opencv is installed in /usr/local/opt/opencv@3/lib not /usr/local/lib. Any suggestions?
System: MacOS 10.13.3, Latest homebrew
Contributor guide
Assessment
This issue has not been assessed yet.