I'm very new to the matlab. Recently, I have compiled the c-file into mex file through the make file and after having been through all trouble compile the source code into the object and link them, the mex file crash.
I'm using Intel Macbook Pro, Mac OS X 10.5 and Matlab 7.4(2007a).
Here is the detail of the Makefile used for compile the c-file to mex file
****************************************************************************
#
# Unix/Linux Makefile for MATLAB interface to sba
#
MEX=/Applications/MATLAB_SV74/bin/mex
MEXCFLAGS=-I.. -O #-g
# WHEN USING LAPACK, CHANGE THE NEXT TWO LINES TO WHERE YOUR COMPILED LAPACK/BLAS & F2C LIBS ARE!
LAPACKBLASLIBS_PATH=/Volumes/Research/Documents/PhD/CODE/SRC/lapack-3.1.1
#F2CLIBS_PATH=/usr/local/lib
# I had to specify the absolute path to the libs, otherwise mex linked against their dynamic versions...
INTFACESRCS=sba.c
INTFACESOBJ=sba.mexmaci
SBALIB=../libsba.a
LAPACKLIBS=$(LAPACKBLASLIBS_PATH)/liblapack.a $(LAPACKBLASLIBS_PATH)/libblas.a #$(F2CLIBS_PATH)/libf2c.a
# On systems with a FORTRAN (not f2c'ed) version of LAPACK, libf2c.a is
# not necessary; on others, libf2c.a comes in two parts: libF77.a and libI77.a
LIBS=$(SBALIB) $(LAPACKLIBS) #-ldl
dummy: $(INTFACESOBJ) projac.dylib
$(INTFACESOBJ): $(INTFACESRCS)
$(MEX) $(MEXCFLAGS) $(INTFACESRCS) $(LIBS)
projac.dylib: projac.c
gcc -fPIC -O3 -dynamic -dynamiclib -o projac.dylib projac.c
clean:
@rm -f $(INTFACESOBJ) projac.dylib
realclean cleanall: clean
depend:
makedepend -f Makefile $(INTFACESRCS)
# DO NOT DELETE THIS LINE -- make depend depends on it.
****************************************************************************
I have used the liblapack.a from my own compiled version. Also I have changed all of the projac.dylib from projac.so, since when it was .so file, it does not seem to be happy to compile at all.
With that makefile, the sba.mexmaci was compiled successfully.
But when I launch the function, the matlab crash and quit unexpected. I dont know how to launch the program in the linux command line, so I cant see the details of the bugs. But the Mac OS X automatically produced the report and here is the detail of the faults from the report.
****************************************************************************
Process: MATLAB [416]
Path: /Applications/MATLAB_SV74/bin/maci/MATLAB.app/Contents/MacOS/MATLAB
Identifier: com.mathworks.matlab
Version: MATLAB version 7.1 ()
Code Type: X86 (Native)
Parent Process: launchd [1]
Date/Time: 2008-03-28 04:21:11.772 +0000
OS Version: Mac OS X 10.5.2 (9C7010)
Report Version: 6
Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000002, 0x0000000000000000
Crashed Thread: 1
Dyld Error Message:
Symbol not found: scopy
Referenced from: /Volumes/Research/Documents/PhD/CODE/matlab/sba-1.4/matlab/sba.mexmaci
Expected in: flat namespace
****************************************************************************
Here is the link of the source code I have obtained from:
http://www.ics.forth.gr/~lourakis/sba/
And I have downloaded sba-1.4
Please help because I have stuck with this for so long and I really want to get the code to work in Matlab.
Any help would be most useful.
Macbook Pro, Intel, Mac OS X (10.5.2), Matlab 7.4 (2007a)
- Trusted Mac download Grand Theft Auto: San Andreas 1.1. Virus-free and 100% clean download. Get Grand Theft Auto: San Andreas alternative downloads.
- Logic Pro X 10.4.8 Crack Plus Serial Key Free Download (Mac/Win) Logic Pro X 10.4.8 Crack is a beautiful music station that gives you the capability to produce good music in less time. This brilliant product developed by Apple and compatible with Mac OS devices. However, it contains a sound library that has a massive selection of patches.
Platform availability depends on the version MATLAB. The most up-to-date MATLAB version is available for MS Windows, Mac OS X and Linux as follows: Computer Rooms: Windows 64bit; Office PCs: Mac OS X and Windows 32 or 64bit; Personally-owned computers: Linux 64bit, Mac OS X 64bit and Windows 32 or 64bit. License Expiration. Do you having trouble downloading MATLAB to your Mac? MATLAB is a programming software that most undergraduate engineering students will download and use during their college career. This article will explain step-by-step how to download MATLAB. Operating System; Optimizer. Free download simplify3d mac simplify3d mac crack simplify3d mac download simplify3d mac free simplify3d mac os x.
Matlab Mac Crack
Posted on Mar 27, 2008 9:33 PM