LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Short Tutorial on Building a Package for FreeMat (https://www.linuxquestions.org/questions/slackware-14/short-tutorial-on-building-a-package-for-freemat-782628/)

Alexvader 01-16-2010 01:19 PM

Short Tutorial on Building a Package for FreeMat
 
Hi my friend Slackers :)

I found out this package FreeMat http://freemat.sourceforge.net/index.html

It is a sort of Matlab emulator, like Octave, or Scilab.

It has fewer toolboxes, since it is not such a mature project than the other two... but it is said that the scripting language compatibility with Matlab is greater... don't know yet...

Must check this out.

Anyway, you download tha Tarball of source code, http://downloads.sourceforge.net/fre...-Source.tar.gz

extract it, cd into FreeMat-4.0-Source/FreeMat-4.0.1-Source/dependencies/volpack-1.0c7

and ./configure , make, trackinstall

You created the package volpack, which is a dependency of FreeMat, Install it.

Do not need to use the llvm-2.5 of the tarball, there is a much better slackbuild fro it, in Slackbuilds.org.

This is also a dependency, other required dependencies existing at Slackbuilds are lapack, blas, fftw3, and ocaml.

All these must be built and installed before going into building llvm-2.5.


After having built and installed lapack, blas, fftw3, ocaml, volpack and llwm-2.5, you proceed to above the main source tree of freeMat..., and create a BuildDir folder and cd into it ( this will hold your cmake build files ).


From there, you launch ccmake ../path/to/freemat/source/tree

You configure, toggle the advanced user options, configure again, generate the cmake lists, and ccmake exits ( menus should be self explanatory )

From command prompt you type #make, and when it ends, you type trackinstall.


This will create your Freemat-4.0 slackware package in /tmp, install it, and enjoy. :)

TODO :

Building llvm-2.5 as well as FreeMat with Intel compilers, to generate faster code.


BRGDS

Alex


All times are GMT -5. The time now is 03:35 AM.