Re: Mex Error

28 views
Skip to first unread message
Message has been deleted

Rafal

unread,
May 27, 2023, 8:53:53 AM5/27/23
to HDR VDP
The MEX file did not compile properly, but it would be difficult for me to say what went wrong based on the error message. 

I assume you ran `compilePyrTools.m` and then compiled the compiled the MEX files to the `matlabPyrTools_1.4_fixed` folder. This should work. 

I would recommend that you use instead version 3.0.7, which does not require any MEX files. 

Another option is to run the 2.2.1 on Ubuntu or Windows, which should hopefully work with the precompiled MEX files. 

Best,

Rafal





On Thursday, 25 May 2023 at 18:49:34 UTC+1 lange...@gmail.com wrote:
Hello,

i am using hdrvdp 2.2.1 on MATLAB2023 and i am getting the follwing Error:

Invalid MEX-file '/Users/rl/Documents/MATLAB/hdrvdp-2.2.1/matlabPyrTools_1.4_fixed/pointOp.mexmaci64':
dlopen(/Users/rl/Documents/MATLAB/HdM/hdrvdp-2.2.1/matlabPyrTools_1.4_fixed/pointOp.mexmaci64, 0x0006): Library not loaded:
@loader_path/libmat.dylib
  Referenced from: <9F1237D5-8AD4-BB28-F5F8-A352CDC5C208>
  /Users/rl/Documents/MATLAB/hdrvdp-2.2.1/matlabPyrTools_1.4_fixed/pointOp.mexmaci64
  Reason: tried: '/Users/rl/Documents/MATLAB/hdrvdp-2.2.1/matlabPyrTools_1.4_fixed/libmat.dylib' (no such file),
  '/usr/local/lib/libmat.dylib' (no such file), '/usr/lib/libmat.dylib' (no such file, not in dyld cache)

Error in hdrvdp_visual_pathway (line 144)
    P_LMR(:,:,ii) = pointOp( log10( clamp(R_LMSR(:,:,k), 10^pn.Y{ph_type}(1), 10^pn.Y{ph_type}(end)) ), ...

Error in hdrvdp (line 266)
[B_R L_adapt_reference band_freq bb_padvalue] = hdrvdp_visual_pathway( reference, 'reference', metric_par, -1 );

Error in Contents (line 46)
res1 = hdrvdp( T3, R3, 'XYZ', 1920/45 );

I did successfully compile the MEX. And I'm quite new to Matlab, so I'm not really sure what the problem is.

It would be great if someone could help me out :)
Reply all
Reply to author
Forward
0 new messages