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

Rvision stoped loading #40

Open
Eli-S-Bridge opened this issue Mar 28, 2021 · 2 comments
Open

Rvision stoped loading #40

Eli-S-Bridge opened this issue Mar 28, 2021 · 2 comments

Comments

@Eli-S-Bridge
Copy link

Hi. I have been using Rvison for a while now, but it recently quit working (see errors below). I updated cmake and installed the latest openCV with ROpenCVLite. Got the same errors.

For what it's worth, there is a file called Rvision.so in:
/Library/Frameworks/R.framework/Versions/4.0/Resources/library/opencv/lib/libopencv_calib3d.4.3.dylib
Referenced from: /Library/Frameworks/R.framework/Versions/4.0/Resources/library/Rvision/libs/

Thanks for any help....

library(Rvision)
Error: package or namespace load failed for ‘Rvision’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/Library/Frameworks/R.framework/Versions/4.0/Resources/library/Rvision/libs/Rvision.so':
dlopen(/Library/Frameworks/R.framework/Versions/4.0/Resources/library/Rvision/libs/Rvision.so, 6): Library not loaded: /Library/Frameworks/R.framework/Versions/4.0/Resources/library/opencv/lib/libopencv_calib3d.4.3.dylib
Referenced from: /Library/Frameworks/R.framework/Versions/4.0/Resources/library/Rvision/libs/Rvision.so
Reason: image not found

library(ROpenCVLite)
isOpenCVInstalled()
[1] TRUE
opencvVersion()
[1] "Version 4.5.1"

@Eli-S-Bridge
Copy link
Author

Manually deleted the Rvision library folder and reinstalled. Working now. Sorry for the trouble.

@sjmgarnier
Copy link
Member

@Eli-S-Bridge Yes, this is normal. Every time a new version of OpenCV is compiled and installed, Rvision needs to be recompiled as well to be linked to it. I need to figure out a way to automatically detect this and throw a message to users when they need to reinstall Rvision. It's not on the top of my priority list at the moment (I'm currently focused on GPU support and video buffering), so I'll keep this thread open in case other people run into the same issue. Thanks.

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