Tim,
1) The command "sudo apt-get install libfftw3-dev" worked just fine.
I upgraded to Karmic last week and I had to do a complete, fresh
install. So it would appear that that works just fine.
2) On the command for "Install other libraries", I got an error for
the "libsuitesparse". I looked around and found a package for
"libsuitesparse-dev" instead and used that. It appeared to work.
Tell me if that's not right.
3) Couldn't find your Cmake.txt file, so I simply opened the one in
the FreeMat source and changed all of the "2.5"s that were in the LLVM
section to "2.6".
4) When I did the "make" command, I got the following error(s):
[ 1%] Built target portaudio
[ 5%] Built target FreeMatlib
[ 5%] Building CXX object libs/libGraphics/CMakeFiles/Graphics.dir/
HandleWindow.cpp.o
In file included from /usr/include/llvm/Attributes.h:18,
from /usr/include/llvm/Argument.h:18,
from /usr/include/llvm/Function.h:23,
from /usr/include/llvm/Module.h:18,
from /home/gary/Downloads/FreeMat-4.0.1-Source/libs/
libMatC/JIT.hpp:32,
from /home/gary/Downloads/FreeMat-4.0.1-Source/libs/
libFreeMat/FunctionDef.hpp:30,
from /home/gary/Downloads/FreeMat-4.0.1-Source/libs/
libFreeMat/Context.hpp:26,
from /home/gary/Downloads/FreeMat-4.0.1-Source/libs/
libGraphics/HandleAxis.hpp:30,
from /home/gary/Downloads/FreeMat-4.0.1-Source/libs/
libGraphics/HandleWindow.cpp:20:
/usr/include/llvm/Support/MathExtras.h: In function ‘bool llvm::isInt
(int64_t)’:
/usr/include/llvm/Support/MathExtras.h:57: error: there are no
arguments to ‘INT64_C’ that depend on a template parameter, so a
declaration of ‘INT64_C’ must be available
/usr/include/llvm/Support/MathExtras.h:57: note: (if you use ‘-
fpermissive’, G++ will accept your code, but allowing the use of an
undeclared name is deprecated)
/usr/include/llvm/Support/MathExtras.h:57: error: there are no
arguments to ‘INT64_C’ that depend on a template parameter, so a
declaration of ‘INT64_C’ must be available
/usr/include/llvm/Support/MathExtras.h: In function ‘bool llvm::isUint
(uint64_t)’:
/usr/include/llvm/Support/MathExtras.h:62: error: there are no
arguments to ‘UINT64_C’ that depend on a template parameter, so a
declaration of ‘UINT64_C’ must be available
make[2]: *** [libs/libGraphics/CMakeFiles/Graphics.dir/
HandleWindow.cpp.o] Error 1
make[1]: *** [libs/libGraphics/CMakeFiles/Graphics.dir/all] Error 2
make: *** [all] Error 2
If you have any suggestions for how I can complete this, I'd very much
appreciate it! And thanks for putting this together! I hope to do
some more work on the Freemat Primer when I get the chance between
classes.
Thanks, again!
Gary
> All,
>
> I've successfully compiled on both Ubuntu Jaunty and Karmic. The
> instructions for both are pretty much the same. I'll upload a simple sh file
> to the google group that automates as much of this as possible when I get
> the chance.
>
> *Step 1: Install QT4*
>
> sudo apt-get install libqt4-dev
>
> *Step 2: Install fftw and fftwf -* here, you may be able to get away with
> installing from the repo's (*sudo apt-get install libfftw3-dev*), but I
> forgot to try before following the below instructions.* *Can someone try
> this from a fresh install?
>
> wgethttp://
www.fftw.org/fftw-3.2.2.tar.gz
> tar xvfz fftw-3.2.2.tar.gz
> cd fftw-3.2.2
> mkdir build_fftw
> cd build_fftw
> ../configure
> make && sudo make install
> mkdir build_fftwf
> cd build_fftwf
> ../configure --enable-single
> make && make install
>
> *Step 3: Install cmake & ccmake*
>
> sudo apt-get install cmake cmake-curses-gui
>
> *Step 4: Install other libraries*
>
> sudo apt-get install libncurses5-dev build-essential llvm-dev gfortran
> liblapack-dev libsuitesparse libpcre3-dev libportaudio-dev
>
> mkdir cbuild && cd cbuild
>
> *Important Note: Ubuntu Karmic has llvm 2.6 (instead of 2.5). To reflect
> this, replace your CMakeLists.txt file in the FreeMat-4.0.1-Source directory
> with the one I've uploaded to the freemat google group. I simply changed
> '2.5' in the file to '2.6' so it wouldn't give me any errors using the new
> build (otherwise the configure wont find it).*
>
> ccmake ../FreeMat-4.0.1-Source
>
> Type 'c' (sans quotes) to configure your install. You shouldn't come up with
> any errors, although it does regularly warn that using compiler optimization
> may bork your lapack install. I ignored this. Hit 'e' to get back to the
> original screen, then scroll down to the option 'Force_Bundled_portaudio'
> and hit 'enter' to change it to 'yes'. Configure again (so it ignores the
> error and lets you generate your makefiles - I had to do this twice for some
> reason). Hit 'g' to generate your makefiles, and it should put you back at
> your prompt.
>
> *Step 7: Compile and Install*
>