Error when compiling a code obtained from github

4 次查看(过去 30 天)
when I run a certain code that I downloaded from github, I'm faced with an error. The code is being compiled using mex. Can someone please explain to me what the error says and what I must do to fix it? I have provided the error below.
Error using mex
/usr/bin/ld: /usr/local/lib/librfftw.a(rplanner.o): relocation R_X86_64_32 against
`rfftw_config' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/librfftw.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
Error in make (line 41)
mex('-O','./mexFMM3D.cpp',src1, src2,'-largeArrayDims',['-I',eigenDIR],['-I',fmmDIR],...
Error in example (line 11)
make(r,kernel,homogen,symmetry,outputfile);
Please let me know if you need more information. Also, I don't have a Computer Science (or significant coding experience)background. So, I would appreciate it if you can refrain from using Computer Science jargon when explaining what I must do to fix the problem.
  1 个评论
Jan
Jan 2018-3-20
Did you ask the author of this code already?
Posting the error message only does not allow to fix the code. Providing a link to the code would be required.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 MATLAB Compiler 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by