I mentioned in one of my earlier posts that Freemat is a cool substitute for MATLAB(TM Registered). Compiling FreeMat is slightly tricky.
- First you have to ensure that QT is beyond 4.5. If not you have to compile it from source or install as a package. I prefer compiling from source. The documentation says that the default installation directory is /usr/local/Trolltech; yes “Trolltech”. After installing, export the library and bin as export LD_LIBRARY_PATH=/usr/local/Trolltech/qt-version/lib:$LD_LIBRARY_PATH and export PATH=/usr/local/Trolltech/qt-version/bin:$PATH. Note that the QT path is prefixed to the system path. Reason for this is that Freemat searches for QT version based on the first QT executable it finds. Also, add these lines in your .bashrc or .bash_profile or in the system-wide files. Otherwise, FreeMat will fail with some weird “undefined symbol” error.
- One has to install LLVM 2.5 version only. LLVM’s dynamics change too much for the Freemat developers to cope. FreeMay packagers have nicely included a their dependencies on the source. So, you can find llvm here. Build and install it.
- Then one has to install ARPACK and a bunch of other stuff. Just turn on the USE_BUNDLED_PCRE etc. in the cmake step and you are set to go.