|
From: | julien pommier |
Subject: | Re: [Getfem-users] getfem-interface-2.0 compile error on OS X 10.4.8 on intel based Apple |
Date: | Fri, 03 Nov 2006 16:19:10 +0100 |
User-agent: | Thunderbird 1.5.0.7 (X11/20060922) |
Koenraad Janssens wrote:
Ok :) I don't think the gcc version is the problem. But maybe you will have to check your matlab installationCompiles but does not link properly: /usr/bin/ld: warning /Applications/MATLAB73/bin/mac/libmx.dylib cputype (18, architecture ppc) does not match cputype (7) for specified -arch flag: i386 (file not loaded) /usr/bin/ld: warning /Applications/MATLAB73/bin/mac/libmex.dylib cputype (18, architecture ppc) does not match cputype (7) for specified -arch flag: i386 (file not loaded) /usr/bin/ld: warning /Applications/MATLAB73/bin/mac/libmat.dylib cputype (18, architecture ppc) does not match cputype (7) for specified -arch flag: i386 (file not loaded) I'll install the gcc-3.3 compiler (never thought I would need that again ;) and get back if that does not work either. Thanks and have a nice weekend - Koen
If the command file /Applications/MATLAB73/bin/mac/libmx.dylibonly talks of ppc architecture and not i386, either you have to reinstall matlab, either matlab is not available as a universal binary (I don't know if it is).
If it is only ppc then you will have to rebuild all getfem with the -arch ppc flag and it will run through rosetta emulation :) not something that I would recommand!
-- Julien
On 3/11/06 15:56, "julien pommier" <address@hidden> wrote:Koenraad Janssens wrote:Thanks, in the mean time I figured so much by myself. Unfortunately compilation still crashes at the same location: /Applications/MATLAB73/bin/mex -output gf_matlab -g CDEBUGFLAGS="-g -O2" LD="g++" \ -I. -I./.. -DMATLAB_RELEASE=14 \ ./gfm_mex.c ./gfm_common.c ./../gfi_array.c \ ../.libs/libgetfemint.a /usr/local/lib/libgetfem.a -lqhull -lblas || (rm gf_matlab.mexmac; false) gcc-3.3: installation problem, cannot exec `cc1': No such file or directory mex: compile of './gfm_mex.c' failed.ok at this point, you have to try by hand some variations of the command line :) for example: /Applications/MATLAB73/bin/mex -v -output gf_matlab -g CDEBUGFLAGS="-g -O2" CC="gcc-4.0" LD="g++" -I. -I./.. -DMATLAB_RELEASE=14 ./gfm_mex.c ./gfm_common.c ./../gfi_array.c ../.libs/libgetfemint.a /usr/local/lib/libgetfem.a -lqhull -lblas you can use the "-v" flag with mex to see how it invokes the compilers. Apparently your gcc-3.3 is not working so I think the above command should work -- Julien
-- Julien Pommier, bureau 111 GMM, INSA Toulouse, tél:05 61 55 93 42
[Prev in Thread] | Current Thread | [Next in Thread] |