Matlab How To
From KnowWiki
| Matlab |
|---|
| Matlab Topics |
| How To · Troubleshooting |
[edit] How to compile 32-bit mex using a 64-bit system
First make sure Matlab is installed in both architectures glnx86 and glnxa64 For cross compilation to work make sure to
sudo apt-get install g++-multilib libc6-dev-i386
run mex ARCH=glnx86 -v file.c make sure that the lib shows up correctly If it is still listed as glnx64 edit Matlab/bin/mex file and move get_arch call to be after the end of command line parsing (case "$1" in...)
|
|||||