I'm trying to include the external ACML maths library in a
MEX file that I'm compiling.
The libraries are in /usr/local/acml/gnu64/lib/ and I have run:
export LD_LIBRARY_PATH=/usr/local/acml/gnu64/lib
in the shell prior to running MATLAB and trying to
compile/run. My mexopts.sh contains
LDFLAGS = "-lacml"
When I try to run the mex file, however, I get the following:
>> [inter,actualCov,nk,kValues,time,timebase,kScale] =
mdp2(1,params,rand*100000)
??? Invalid MEX-file '/home/apj24/pmd/mdp2.mexa64':
/usr/local/acml/gnu64/lib/libacml.so: undefined symbol: do_lio.
Any help or advice would be greatly appreciated.
MATLAB information:
>> ver
-------------------------------------------------------------------------------------
MATLAB Version 7.6.0.324 (R2008a)
MATLAB License Number: 201031
Operating System: Linux 2.6.22-14-generic #1 SMP Tue Feb 12
02:46:46 UTC 2008 x86_64
Java VM Version: Java 1.6.0_01 with Sun Microsystems Inc.
Java HotSpot(TM) 64-Bit Server VM mixed mode
-------------------------------------------------------------------------------------
MATLAB
Version 7.6 (R2008a)
Curve Fitting Toolbox
Version 1.2.1 (R2008a)
Image Processing Toolbox
Version 6.1 (R2008a)
MATLAB Compiler
Version 4.8 (R2008a)
Signal Processing Toolbox
Version 6.9 (R2008a)
Spline Toolbox
Version 3.3.4 (R2008a)
Statistics Toolbox
Version 6.2 (R2008a)
Many thanks,
Andy.
Joachim - 17 Jul 2008 18:35 GMT
"Andrew Jardine" <apj24@removethis.cam.andthis.ac.uk> wrote
> I'm trying to include the external ACML maths library in a
> MEX file that I'm compiling.
[quoted text clipped - 16 lines]
>
> Any help or advice would be greatly appreciated.
Set BLAS_VERSION to /usr/local/acml/gnu64/lib/libacml.so and
LAPACK_VERBOSITY to 1.
Joachim - 17 Jul 2008 18:43 GMT
Also, I have -L/usr/local/acml/gnu64/lib in my makefile
(before -lacml).