Building blitz++ from source

Development seems to have stopped with version 0.9. This is what we use for MeqTrees. Get it from http://sourceforge.net/projects/blitz/.

Ubuntu 10.04

Ubuntu 10.04 seems to have a very slow version of blitz. However, to build 0.9 yourself from source, you'll need to edit a couple of files:

* Strip out the system version:

* Download and unpack blitz-0.9. Configure with:

* For newer versions of g++, you need to add #include <cstdlib> at the beginning of blitz/funcs.h and blitz/mathfunc.h. Alternatively, if you have g++-4.1 available on your system, you can use it to compile blitz by adding CXX=g++-4.1 to the configure arguments above.

* Build with:

Note that if you're rebuilding Timba which was previously configured for the standard Ubuntu blitz package, you'll need to clear out your build/release directory and redo cmake as follows:

Older Ubuntus

Ubuntus prior to 10.04 ship a perfectly functional libblitz-dev package, so I never had cause to build it.

Older Linux variants

(This information very likely only applies to the old build system.)

* Configure & build with:

* The make install script of Blitz is slightly broken (as of version 0.8 or 0.9 at least), you may need to copy an additional file over manually. Note that this issue may have been solved, so only do this if your Timba build fails with a blitz-related error:

* If you've installed blitz under /usr/local (as in the example above), the Timba lofarconf script should be able to locate it automatically. Should you use a non-standard path (or if you have another version of blitz that lofarconf incorrectly latches on), you can tell lofarconf where to find it by supplying it with the --with-blitz=/path/to/blitz option. You can also add this option to the compiler configuration in your variants.hostname file.

BuildingTimba/RequiredSoftware/BlitzBuildNotes (last edited 2011-04-14 08:56:03 by OlegSmirnov)