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

Library not loaded: @loader_path/libmex.dylib #5

Closed
CXMANDTXW opened this issue Dec 15, 2020 · 7 comments
Closed

Library not loaded: @loader_path/libmex.dylib #5

CXMANDTXW opened this issue Dec 15, 2020 · 7 comments

Comments

@CXMANDTXW
Copy link

When I run demo_compute_VIDEVAL_feats.m, there is an error:
dlopen(/Users/XXX/VIDEVAL_release/include/matlabPyrTools/corrDn.mexmaci64,
6): Library not loaded: @loader_path/libmex.dylib

Can you give me some help?

@CXMANDTXW
Copy link
Author

Can you tell me what's your matlab version.

@vztu
Copy link
Owner

vztu commented Dec 15, 2020

Hi we have tested >=MATLAB 2018 on both Linux and Windows and it works fine. We only observed there are warnings and was much slower on Windows system.

We recommended you to run it on Linux or Mac OS.

@CXMANDTXW
Copy link
Author

I can not figure out this problem yet, my system is macos Catalina 10.15.7.
I try MATLAB 2018a and MATLAB 2019b, both them exist this problem.

@vztu
Copy link
Owner

vztu commented Dec 17, 2020

Sorry I have my friend tested in Mac and we also observed this problem.

Could you try compiling the corrDn.c file using MATLAB's mex command? It seems the pre-compiled corrDn.mexmaci64 provided by the author didn't work.

@CXMANDTXW
Copy link
Author

Unfortunately, a new error occurred when I use mex corrDn.c .

Error message:
Undefined symbols for architecture x86_64:
"_internal_reduce", referenced from:
_mexFunction in corrDn.o
"_internal_wrap_reduce", referenced from:
_mexFunction in corrDn.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

It seems that the program can't support MAC system.

@vztu
Copy link
Owner

vztu commented Dec 18, 2020

Hi I sincerely appreciate your findings! I'd add a note in README saying that MAC system will have errors.

I don't have a MAC machine, nor do I have experience in working with mex functions. Sorry that I can't help with this bug. The workaround is that you need to run on Linux/Windows.

The whole problem is with FRIQUEE features that depend on matlabPyrTools lib, which is a pretty old lib. I haven't got a time to update these old dependencies; instead, I just include all the initial implementations as is. It means that the FRIQUEE release in this link cannot support MAC system neither.

@CXMANDTXW
Copy link
Author

Thanks for your work, I will try to run on windows.Sometimes some old dependent libraries are always troublesome. 👍

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