help-gsl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-gsl] Building GSL under Visual C++, Mission Impossible


From: Ilya Zavorin
Subject: Re: [Help-gsl] Building GSL under Visual C++, Mission Impossible
Date: Wed, 10 Mar 2004 12:31:31 -0800 (PST)

> Hi,
> 
> I was trying to follow a few sets of intructions to build GSL (static) libs 
> under DevStudio and
> had to do a lot of "filtering and modification" of these instructions. Below 
> are the steps I
> followed. I hope someone may find these useful. They are not the most 
> efficient and may probably
> be optimized quite a bit (for instance, I create two very similar variants of 
> the gsl
> directory), but they got me from A to Z. 
> 
> Note that you need to install Cygwin to follow these steps, although I don't 
> think it's much of
> a restriction.
> 
> Regards,
> 
> Ilya Zavorin
> ==================



> Installation of GSL (Gnu Scientific Library)
> ============================================
> 
> This document describes how to download and install GSL. Specifically, it 
> explains how to create
> UNIX-type (".a") and MS-Windows-type (".lib") static libraries. This is an 
> example of how to
> create a .lib library out of a project created for the UNIX/Linux world.
> 
> IMPORTANT REMARK: 
> My goal was not to do this in the most efficient way; rather, I just wanted 
> to create the
> libraries enduring the least possible amount of pain and suffering. I was 
> following several
> README-type files located in various places on the Web, trying to extract 
> only the pieces needed
> to get me from point A (source code) to point Z (compiled libs in both 
> formats). The refs are
> listed at the end of this document.
> 
> SOFTWARE REQUIREMENTS:
> - Cygwin installed (www.cygwin.com)
> - MS DevStudio installed (This was done with v6.0)
> 
> NOTE:
> Below are the step-by-step instructions. A number in "[]" refers to an item 
> listed under
> REFERENCES where a specific step originated from.
> 
> 
> Part I: Initial download
> ------------------------
> 
> I.1 [1]. Download the latest distribution (in my case, 1.4) from a mirror, 
> e.g.
> ftp://ftp.mirror.ac.uk/sites/ftp.gnu.org/gnu/gsl/gsl-1.4.tar.gz to, say, 
> c:\GSL. We will denote this directory by $ROOT$.
> 
> I.2. Unzip into $ROOT$\gsl-1.4; keep gsl-1.4.tar.gz in $ROOT$.
> 
> !!!! May also need to download libtool and put it into $ROOT$\gsl-1.4 !!!!
> 
> I.3. Go to the GSL CVS archive 
> (http://sources.redhat.com/cgi-bin/cvsweb.cgi/gsl/?cvsroot=gsl),
> click on HACKING and then download the latest version of this file into 
> $ROOT$\gsl-1.4
> 
> 
> Part II. Cygwin
> ---------------
> 
> II.1 [3]. Go to $ROOT$ and download the a CVS distrib of GSL:
> 
> cvs -d :pserver:address@hidden:/cvs/gsl login
>      (password is ``anoncvs'')
> cvs -d :pserver:address@hidden:/cvs/gsl checkout gsl
> 
> This will create $ROOT$/gsl. I know, I know, it seems to be an extra copy of 
> the same thing
> (gsl-1.4) but it's not, at least to the extent that I could make things work 
> without downloading
> the CVS distrib.
> 
> NOTE: If you just need the ".a"s, you can skip this step and proceed to II.2.
> 
> II.2 [4]. Create libgsl.a and libcblas.a. To this end, in $ROOT$/gsl-1.4:
> 
> II.2.1 Run './configure'
> 
> II.2.2 Run 'make'. This will generate the two (static) libs in $ROOT$/.libs/ 
> and
> $ROOT$/cblas/.libs/
> 
> II.2.3 Run 'make install', if want to install the libraries (default is 
> /usr/local)
> 
> NOTE: If you need only ".a"s, you can stop here!
> 
> II.3 [2]. Create $ROOT$/gsl/msvc/usr/lib and copy the two ".a"s there.
> 
> II.4 [2]. Go to $ROOT$/gsl/msvc and run 'make update' there.
> 
> II.5. Move gsl-1.4.tar.gz to $ROOT$/gsl
> 
> II.5 [2]. Go to $ROOT$/gsl and run 'scripts/windists.sh gsl-1.4.tar.gz' 
> there. This will create
> gsl-1.4.zip in $ROOT$/gsl.
> 
> II.6. Go to $ROOT$ and run 'unzip gsl/gsl-1.4.zip'. This will essentially 
> append various
> files/folders from the zip file into the gsl-1.4 directory.
> 
> 
> Part III: Dev Studio
> --------------------
> 
> III.1 [sort of 2]. Fire up DevStudio and open GSLLIBML.dsw in $ROOT$\gsl-1.4. 
> Build both the
> Debug and the Release versions of gsl.lib and gslcblas.lib. Upon successful 
> completion of the
> builds the libs will be in ./gsl-1.4/GSLLIBML/Debug/ and 
> ./gsl-1.4/GSLLIBML/Release/.
> 
> III.2 [sort of 2]. Open GSLLIBMLTESTS.dsw in $ROOT$\gsl-1.4. Select all 
> "test_" projects and
> build them (Debug & Release).
> 
> III.3. Open Windows console (not a Cygwin console!), go to 
> $ROOT$\gsl-1.4\GSLLIBML\ and run
> MAKE_CHECK_Debug.bat and MAKE_CHECK_Release.bat. These should produce 0 
> errors.
> 
> III.4. That's it!
> 
> 
> REFERENCES:
> -----------
> 
> [1]. http://mail.gnu.org/archive/html/help-gsl/2003-12/msg00000.html
> 
> [2]. The HACKING file, section "Preparing a windows version (Microsoft Visual 
> C)"
> 
> [3]. http://sources.redhat.com/gsl, "CVS Access"
> 
> [4]. The INSTALL file in $ROOT$\gsl-1.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]