Date: Sat, 25 Jun 2005 14:48:24 +0100 From: "cali" <calculus@softhome.net> To: <freebsd-questions@freebsd.org> Subject: Re: matlab mex files on FreeBSD Message-ID: <028601c5798c$be8fe1d0$0201a8c0@SPECULUSHX1THE> References: <006201c57678$8919ce10$0201a8c0@SPECULUSHX1THE>
next in thread | previous in thread | raw e-mail | index | archive | help
----- Original Message ----- From: "cali" <calculus@softhome.net> To: <freebsd-questions@freebsd.org> Sent: Tuesday, June 21, 2005 4:47 PM Subject: matlab mex files on FreeBSD > Has anyone managed to get matlab mex files compiling and running properly > with matlab on FreeBSD? I'm still interested in this question because I don't know if my solution below totally solves the problem. > I suppose the problem is that matlab is a Linux binary and matlab is > running in Linux ABI mode, but the compiler is compiling to FreeBSD > native, or something? It's obvious that this was the problem, one can fix it by changing the compilers pointed to in the glnx86 section of /compat/linux/usr/local/matlab/bin/mexopts.sh to CC='/compat/linux/usr/bin/cc' CXX='/compat/linux/usr/bin/g++' and possibly FC='/compat/linux/usr/bin/f77' (not sure if this is necessary because I didn't try compiling fortran files yet) Just changing the compiler seems to work, at least for simple files anyway. If anyone else has experience, please let me know. Cali
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?028601c5798c$be8fe1d0$0201a8c0>