David Astély - 2004-01-09

Just discovered something probably known for a long time, the developer tools shipped with Mac OS X 10.2 (and higher ?)  contain LAPACK and BLAS in the framework vecLib. Not fully understanding this, it turns out that it is in fact very simple to get it++ running with BLAS/LAPACK.

instead of going through the pain of downloading/compiling etc (although fink helps out here), one simply needs to add   -framework vecLib  when linking instead of linking with -llapack -lf77blas -lcblas -latlas -lg2c

To test this when building debug libraries and the tests, i changed line 353 in configure from

itpp_libs_debug= ..... -lit++_d $cblas_lapack_libs"

to

itpp_libs_debug= ..... -lit++_d -framework vecLib"

(change line 352 if you wnat to build optimized libs)
This is probably not the neatest way of including this change into it++ but it works...

after doing this, all tests passed in the tests lib with small numerical differences, and no sound. With ATLAS 3.4.1-2 from fink and libg2c from g77 package of fink,  i had some big diffs in some of the eigen_test.cpp results. These diffs are no longer present...

further, to gain some performance on a G4 wit altivec, altivec should be enabled. One way to do this (assuming that all macs have altivec supporting processors, which i guess the G3 does not yet !?:-) is to modify line 32 in configure , from

*Macintosh*) cxx_extraflag=-D__unix ;;

into

*Macintosh*) cxx_extraflag="-D__unix -faltivec" ;;

So try it out!
/david