problem using mex files, rtdal_print not found

9 views
Skip to first unread message

ra

unread,
Feb 28, 2014, 8:10:28 PM2/28/14
to flex...@googlegroups.com
Hi all,

When I run the lte_dl.m, I get the following error:

K>> am_gen_crc(input(k:(k+params.src_bits_x_slot(s)-1)),crc_params);
Invalid MEX-file '/usr/local/mex/am_gen_crc.mexa64': /usr/local/mex/am_gen_crc.mexa64:
undefined symbol: rtdal_printf

After reading the CMakeLists.txt file, I placed a softlink to usr/local/include in $MATLAB_ROOT/extern/include and to /usr/local/lib in $MATLAB_ROOT/bin/glnxa64 and recompiled but that didn't help. 



Did anybody face similar problems? Or know how to solve this problem? 



My mex configuration is the following:
----------------------------------------------------------------
->    MATLAB                = /usr/local/MATLAB201402/R2013a
->    CC                    = gcc
->    CC flags:
         CFLAGS             = -ansi -D_GNU_SOURCE  -fexceptions -fPIC -fno-omit-frame-pointer -pthread
         CDEBUGFLAGS        = -g
         COPTIMFLAGS        = -O -DNDEBUG
         CLIBS              = -Wl,-rpath-link,/usr/local/MATLAB201402/R2013a/bin/glnxa64 -L/usr/local/MATLAB201402/R2013a/bin/glnxa64 -lmx -lmex -lmat -lm -lstdc++
         arguments          =  -DMX_COMPAT_32
->    CXX                   = g++
->    CXX flags:
         CXXFLAGS           = -ansi -D_GNU_SOURCE -fPIC -fno-omit-frame-pointer -pthread
         CXXDEBUGFLAGS      = -g
         CXXOPTIMFLAGS      = -O -DNDEBUG
         CXXLIBS            = -Wl,-rpath-link,/usr/local/MATLAB201402/R2013a/bin/glnxa64 -L/usr/local/MATLAB201402/R2013a/bin/glnxa64 -lmx -lmex -lmat -lm
         arguments          =  -DMX_COMPAT_32
->    FC                    = gfortran
->    FC flags:
         FFLAGS             = -fexceptions -fbackslash -fPIC -fno-omit-frame-pointer
         FDEBUGFLAGS        = -g
         FOPTIMFLAGS        = -O
         FLIBS              = -Wl,-rpath-link,/usr/local/MATLAB201402/R2013a/bin/glnxa64 -L/usr/local/MATLAB201402/R2013a/bin/glnxa64 -lmx -lmex -lmat -lm
         arguments          =  -DMX_COMPAT_32
->    LD                    = gcc
->    Link flags:
         LDFLAGS            = -pthread -shared -Wl,--version-script,/usr/local/MATLAB201402/R2013a/extern/lib/glnxa64/mexFunction.map -Wl,--no-undefined
         LDDEBUGFLAGS       = -g
         LDOPTIMFLAGS       = -O
         LDEXTENSION        = .mexa64
         arguments          = 
->    LDCXX                 = 
->    Link flags:
         LDCXXFLAGS         = 
         LDCXXDEBUGFLAGS    = 
         LDCXXOPTIMFLAGS    = 
         LDCXXEXTENSION     = 
         arguments          = 
----------------------------------------------------------------






Ra.

ra

unread,
Mar 6, 2014, 7:27:31 PM3/6/14
to flex...@googlegroups.com
Hi all,

I have the same trouble with Octave too. Anybody had similar issues? 

Ra.
Reply all
Reply to author
Forward
0 new messages