It was a while ago and I’m not an expert — but looking back, here’s what I think I did:
* Added the line #define MATLAB_RELEASE 2014 (2016 for you, I think) at the start of gfm_common.h
* I took the gf_matlab file (with whatever the extension was) and saved it as gf_matlab.mexmaci64.
Hope this helps.
Best regards,
Ryan
Dear Ryan,
I see that you already solved your problem. Now I have the same problem as you had. I don't understand what you mean when you said "and later set the extension on the gf_matlab file (mexmaci64 for me) to get make install to work.
I have used macbook pro with osx 10.12.2, getfem-5.1, matlab r2016a.
PS. I can oly find the gf_matlab.mexmaci64 file from the matlab_toolbox which I downloaded from the getfem++'s homepage. There is no such file in the getfem++ stable version I downloaded.
Hope to get your help, thank you so much.
DINH Anh Thi.
I’ve fixed the problem and successfully installed. I had to set MATLAB_RELEASE
in interface/src/matlab/gfm_common.h,
and later set the extension on the gf_matlab file (mexmaci64 for me) to get
make install to work.
On Feb 11, 2015, at 5:30 PM, Walker, Ryan T. (GSFC-615.0)[UNIV OF MARYLAND]
<ryan.t.wal...@nasa.gov> wrote:
> I’m trying to compile on Mac OS X 10.9 with Matlab 2014a. I read previous
> posts about problems with clang and superlu, so I’m using gcc 4.9 (obtained
> from Sourceforge) installed in /usr/local/bin.
>
> First I ran ./configure --with-pic --enable-matlab --enable-python="no"
> CC="/usr/local/bin/gcc -arch x86_64" CXX="/usr/local/bin/g++ -arch x86_64"
>
> I noticed that this didn’t find my Matlab release or path.
>
> Compilation ends with this error:
>
> Making all in private
> make[5]: Nothing to be done for `all'.
> make[5]: Nothing to be done for `all-am'.
> ../../../bin/extract_doc ./.. matlab-com || (rm -f gf_mesh.m; /bin/false )
> mex -largeArrayDims -output gf_matlab -g CDEBUGFLAGS="-O3 -fPIC"
> LD="/usr/local/bin/g++ -arch x86_64" \
> -I. -I./.. -DMATLAB_RELEASE= \
> ./gfm_mex.c ./gfm_common.c ./../gfi_array.c \
> ../.libs/libgetfemint.a ../../../src/.libs/libgetfem.a -lmuparser
> -lblas -llapack || (rm gf_matlab; false)
> Building with 'Xcode with Clang'.
> /Users/rtwalker/getfem-4.3/interface/src/matlab/gfm_mex.c:127:20: error:
> invalid token at start of a preprocessor _expression_
> #if MATLAB_RELEASE == 12
> ^
> 1 error generated.
>
> rm: gf_matlab: No such file or directory
> make[4]: *** [gf_matlab] Error 1
> make[3]: *** [all-recursive] Error 1
> make[2]: *** [all-recursive] Error 1
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2
>
> I really don’t know what to make of this. Suggestions would be greatly
> appreciated!
>
> Thanks,
> Ryan
>
**********************************************
Dr. Ryan T. Walker
Earth System Science Interdisciplinary Center
University of Maryland at College Park
Cryospheric Sciences Laboratory, Code 615
NASA Goddard Space Flight Center
8800 Greenbelt Road
Greenbelt, MD 20771 USA
|