-
Notifications
You must be signed in to change notification settings - Fork 826
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
new Error('library dir does not exist: ' + libDir) #806
Comments
@74staz You might try this steps: #775 (comment) It will help you solve a lot. And then if your OpenCV installation is correct and matched opencv4nodejs version, than it will build fully. But quickly, you can just disable auto build in terminal with : |
Thanks a lot, this looks really detailed. I switched to Python to work with OpenCV, now I am gonna try this for NodeJS. |
Okay so I installed it on my Mac but when I run it via
The path exists but there is another folder "obj.target" like |
@74staz the file hasn't been created. There is some error on the node-gyp build. When its created, it will be a |
@74staz follow my suggestion here #775 (comment) And this will increase greatly your chance to install it by understanding things better. |
@74staz you might also try this if you want to use OpenCV 4.5.0: |
|
|
add to
|
Ran into this now:
|
Don't know how it works on Mac. Just install / build plain opencv. Make links in
Then |
@staz9 then you are very close to it. But you need a bit of easy hacks like I did. First, forget about OpenCV version 4.5.1, that causes the Multitracker error, that has been moved to another directory and that this package did not know about this change. With version 4.5.0, not Multitracker error, but you'll get SIFT error for sure in both versions. So as a hack, you will have to comment out 2 or 3 lines of code in modules source code to tell it to ignore the SIFT feature, which is now private and removed. Alternative for SIFT is SURF and 2 others. You will find SURF for sure, not sure for the 2 others. SURF is said to be faster in most use cases. And chances are you're not even gonna use any of them in your project. I didn't need their calculation, but SURF is still available. You can follow this Issue #805 , I showed every step you need to do from where you are right now, after Tracking error. And you'll get it done. |
export OPENCV4NODEJS_DISABLE_AUTOBUILD=1
npm install -g opencv-build // you might get error occur, try to set opencv4nodejs flag(https://github.com/justadudewhohacks/opencv4nodejs/issues/775#issuecomment-878141077)
npm install -g opencv4nodejs // you should encounter an error, leave it out
sudo ln -s $(npm root -g)/opencv-build $(npm root -g)/opencv4nodejs/node_modules // create a link of opencv-build under $(npm root -g)/opencv4nodejs/node_modules. remove if already exists
cd $(npm root -g)/opencv4nodejs/
node install/install.js // complie error should be met, for me, it's `MultiTracker` I finally got successful after comment out
|
|
it dosen't work! |
Hello, I have been trying to install opencv4nodejs on MacOS Mojave with npm i opencv4nodejs and it keeps giving me this error:
Have tried so many things but it just wouldn't work. Would be great if someone can help me with this.
The text was updated successfully, but these errors were encountered: