vztu / VIDEVAL

[IEEE TIP'2021] "UGC-VQA: Benchmarking Blind Video Quality Assessment for User Generated Content", Zhengzhong Tu, Yilin Wang, Neil Birkbeck, Balu Adsumilli, Alan C. Bovik
https://ieeexplore.ieee.org/document/9405420
MIT License
125 stars 19 forks source link

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

Closed CXMANDTXW closed 3 years ago

CXMANDTXW commented 3 years ago

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 commented 3 years ago

Can you tell me what's your matlab version.

vztu commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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