From: Luc B. <Luc...@ma...> - 2004-02-25 20:49:34
|
MacOS X (at least 10.2 and 10.3) comes with BLAS and LAPACK already installed. However the hooks in addons.py (i.e. setting the environment variable USE_LAPACK and then filling the lists lapack_libs and lapack_dirs) don't work because it will typically pass the arguments -llapack, -lblas to the linker although Apple does not supply any liblapack.a or libblas.a. Instead Apple uses the standard MacOS X distribution scheme: a framework (vecLib is the name). So the correct way to compile numarray with the native blas and lapack on MacOS X is to fix the addons.py as follow: Extension('numarray.linear_algebra.lapack_lite2', sourcelist, include_dirs = ["Packages/LinearAlgebra2/Src", 'Include/numarray'], extra_objects = ["-bundle", "-framework", "vecLib",]), I checked it worked (but the -bundle may not be necessary) HtH somebody, -- Luc Bourhis Chemical Crystallography Laboratory University of Durham |