From owner-freebsd-questions@FreeBSD.ORG Sat Jun 25 13:49:51 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8763816A41C for ; Sat, 25 Jun 2005 13:49:51 +0000 (GMT) (envelope-from calculus@softhome.net) Received: from blaster.systems.pipex.net (blaster.systems.pipex.net [62.241.163.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4F90843D49 for ; Sat, 25 Jun 2005 13:49:47 +0000 (GMT) (envelope-from calculus@softhome.net) Received: from SPECULUSHX1THE (81-178-228-87.dsl.pipex.com [81.178.228.87]) by blaster.systems.pipex.net (Postfix) with SMTP id AE22FE000114 for ; Sat, 25 Jun 2005 14:49:37 +0100 (BST) Message-ID: <028601c5798c$be8fe1d0$0201a8c0@SPECULUSHX1THE> From: "cali" To: References: <006201c57678$8919ce10$0201a8c0@SPECULUSHX1THE> Date: Sat, 25 Jun 2005 14:48:24 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2527 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 Subject: Re: matlab mex files on FreeBSD X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Jun 2005 13:49:51 -0000 ----- Original Message ----- From: "cali" To: 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