Skip to content
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

Support OpenCV built with CUDA extensions #8

Open
cjntaylor opened this issue Mar 27, 2018 · 1 comment
Open

Support OpenCV built with CUDA extensions #8

cjntaylor opened this issue Mar 27, 2018 · 1 comment

Comments

@cjntaylor
Copy link

.filter(file => !file.includes('dnn_objdetect'))

Similar to the above, a CUDA based build also produces a libopencv_cudaobjdetect.so (or platform specific equivalent), which will cause the resulting opencv4nodejs module to fail to load at runtime (due to node-gyp missing symbol shenanigans, it builds just fine without the right libraries linked).

For now, it looks like another dirty hack of .filter(file => !file.includes('cuda')) is sufficient to get the right libraries linked. However, these hacks are a byproduct of a flawed approach to how you find the libraries in the first place. I've put more details along with a suggestion here: justadudewhohacks/opencv4nodejs#162 (the issue that I actually encountered)

This is not a request to actually support CUDA-based modules, just that their presence doesn't cause the module to fail to load.

@justadudewhohacks
Copy link
Owner

I will rather look for the full library name now, as you suggested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants