Sunday, June 10, 2012

Make 32-bit Applications Work on a 64-bit Operating System

This is what I encountered when trying to run Prof. David Lowe's SIFT detector in 64-bit ubuntu. The binary code of sift is compiled in 32-bit machine. So, you need to do the following things to make his code run for you.

It is possible to install and use 32-bit software on a 64-bit computer in different ways:

Wednesday, June 6, 2012

Run C executable code in MATLAB m file

use system() to run it, but usually you will get the following error:
/MATLAB/R2011a/sys/os/glnxa64/libstdc++.so.6: version `GLIBCXX_3.4.14' not found (required by /usr/lib/libppl_c.so.4)

so you need to do the following things to fix it.

cd $MATLAB
cd sys/os/glnx86
mkdir old
mv libstdc++.* libg2c.* libgcc_s* old
After i have to add /usr/lib to the enviroment variables
export LD_LIBRARY_PATH=/usr/lib32:/usr/lib:$LD_LIBRARY_PATH 
 
Take a reference to the link:
http://www.mathworks.se/matlabcentral/answers/8079-how-to-get-working-matlab-coder-in-linux 

This link is much clearer:

http://judsonsnotes.com/notes/index.php?option=com_content&view=article&id=659%3ainstalling-matlab-in-ubuntu-1110&catid=37%3atech-notes&Itemid=59