Koenraad Janssens wrote:
Compiles 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
Ok :) I don't think the gcc version is the problem. But maybe you will
have to check your matlab installation
If the command
file /Applications/MATLAB73/bin/mac/libmx.dylib
only 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" <[EMAIL PROTECTED]> 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
_______________________________________________
Getfem-users mailing list
[email protected]
https://mail.gna.org/listinfo/getfem-users