Compiling LAPACK 3.5.0 Shared libraries

Post here if you have a question about the installation process

Compiling LAPACK 3.5.0 Shared libraries

Postby gmarco » Tue Mar 11, 2014 10:11 am


I've currently compiled LAPACK 3.5.0 static libraries without problems. However, I need to compile LAPACK shared libraries (this also includes BLAS) to install Lapack++.
I'm looking over the internet and the best tutorial I found is: ... ry-in.html, however it's not working for me with version 3.5.0.

Any help would be appreciated, I also would like to know if i'ts possible to build both static/shared libraries on same compilation. I'm asking this because after compiling LAPACK I need to install ATLAS (this requires lapack *.a static library to be compilled since I don't want ATLAS to automatically compile LAPACK because it just builds static libraries).

Thank you.

Best regards,
Posts: 1
Joined: Tue Mar 11, 2014 9:59 am

Re: Compiling LAPACK 3.5.0 Shared libraries

Postby admin » Tue Mar 11, 2014 11:13 am

Dear Guillermo,
I would use the cmake build for that, he should be able to compile either static or dynamic, and maybe both at the same time.
The LAPACK cmake build package is included in the LAPACK package.

Download cmake from and follow instructions.
In the cmake interface, select the appropriate options (check BUILD_STATIC_LIB, and BUILD_SHARED_LIB)
Hope it helps
Site Admin
Posts: 616
Joined: Wed Dec 08, 2004 7:07 pm

Re: Compiling LAPACK 3.5.0 Shared libraries

Postby marcomaggi » Sun Jun 01, 2014 6:57 am

You can try my GNU Autotools repackagings:
which also install pkg-config files, making it easier to link.
Posts: 7
Joined: Mon Feb 08, 2010 6:14 am

Return to Installation

Who is online

Users browsing this forum: No registered users and 4 guests