From yuwm@bii.a-star.edu.sg Wed Jun 13 02:41:50 2007 Date: Wed, 13 Jun 2007 17:36:36 +0800 From: Weimiao YU To: dmartin@cs.bc.edu, fowlkes@cs.berkeley.edu Cc: Lee Hwee Kuan Subject: the BSD in Mac Intel hi, Dear Martin and Fowlkes: We have successfully compiled the BSD code in Mac Intel. The modification is  ---------------------------------------------------------------------------- ------------------------- In gethosttype: case $uname_system in Linux) system=linux;; IRIX*) system=irix;; SunOS) system=solaris;; NetBSD) system=netbsd;; Darwin) system=macosx;; *) system=unknown;; esac ---------------------------------------------------------------------------- ------------------------- In GNUmakefile: # Determine the mex suffix. ifeq ($(hostType),ix86_linux) mexSuffix := mexglx endif ifeq ($(hostType),ix86_macosx) mexSuffix := mexmaci endif ifeq ($(hostType),x86_64_linux) mexSuffix := mexa64 endif ifndef mexSuffix $(error mexSuffix not defined) endif and we replace the part in GNUmakefile as: matlab -nodisplay -nojvm -r "mex $(mexFlags) $< $(buildObjs) $(mexLibs) $(mexLibs); exit" /Applications/MATLAB74/bin/matlab -nodisplay -nojvm -r "mex $(mexFlags) $< $(buildObjs) $(mexLibs) $(mexLibs); exit" (there are another three commands) After that, we run the make install in terminal. The builded mexmaci files work fine in Matlab R2007 for Mac Intel. Thanks a lot for your time to read our previous email. Best regards Yours Sincerely Weimiao