GithubHelp home page GithubHelp logo

hariseldon99 / gsl-win64 Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 1.0 62.85 MB

Standalone Installer for the GNU Scientific Library

Home Page: https://sites.google.com/phys.buruniv.ac.in/programming-workshop-cbcs/setup

License: GNU General Public License v3.0

Shell 4.39% C 67.82% M4 0.17% Roff 0.06% Makefile 25.71% Python 0.04% TeX 1.78% NSIS 0.04%
gsl scientific-computing gnu-scientific-library c-language c-programming gsl-implementations gsl-library windows

gsl-win64's Introduction

GSL-WIN64

Standalone 64-bit Windows Installer for the GNU Scientific Library. Can be installed without dependencies. Use from the powershell or with any IDE such as Code::Blocks, geany or VS Code. Tested with codeblocks.

Download and Install

If you just want to download and install the libraries, click here to obtain the installer.

The installer will install the GSL libraries into a folder of your choice (defaults to 'C:\Program Files\GSL_W64\gsl-x.y.z' where 'x.y.z' is the version number) and makes registry entries for the uninstaller.

Note that if you install other (earlier or later) versions later, they will coexist with older installations. Therefore, it is possible to have multiple versions, and old versions will not be uninstalled automatically. However, the installer tells the system (via the 'PATH' environment variable) that GSL path can be found in the value of the variable 'GSL_LIBRARY_PATH', which is set to the folder where you told the installer to put GSL. So if you need to compile/run programs with other versions, you'll have to (gingerly) edit the 'GSL_LIBRARY_PATH' environment variable afterwards. I advise against editing 'PATH' manually unless you absolutely have to.

Build Instructions

If you want to build the installer from scratch, read on.

Here are the instructions to build the Windows Installer on any Linux distribution. If you want to build on Windows, simply install MSYS2 and continue inside the bash shell installed by it.

Let's say that this repo has been cloned to the directory given by the environment variable:

GSL_WIN64DIR=/home/me/gitrepos/GSL-WIN64.

Let's also say that the latest version of GSL is stored in the environment variable:

GSL_VERSION=2.7.1

The values need to be changed to meet your requirements. You can set them explicitly if you want by running (assuming bash shell or zsh) the export command

Obtain GSL

Download the latest tarball of the GNU Scientific Library Source Code:

$ cd $GSL_WIN64DIR
$ wget https://mirror.ibcp.fr/pub/gnu/gsl/gsl-latest.tar.gz
$ tar zxvf gsl-latest.tar.gz src/

Cross-Compile

To prepare GNU Scientific Library for Windows, download the source code and cross-compile on Linux.

On Linux, download the latest gsl tarball, then install the following dependencies using your Linux package manager

  1. mingw-w64 Windows C-cross-compiler for Linux
  2. NSIS: Nullsoft Scriptable Install System for building Windows Installers for Linux

Both packages are available in the Ubuntu repositories

In addition, the EnVar Plug-in for NSIS needs to be installed. Download from The EnVar Plugin Page

In a shell, cross-compile for windows with

$ cd $GSL_WIN64DIR/src/gsl-$GSL_VERSION
$ ./configure --host=x86_64-w64-mingw32 --prefix=$GSL_WIN64DIR/gsl-$GSL_VERSION
$ make
$ make install

Note: If you're compiling natively on Windows, then simply run the './configure' command above without the '--host' flag.

Build Windows Executable

Once cross-compilation is complete, build the Windows Installer executable in the same shell with:

$ cd $GSL_WIN64DIR
$ makensis GSL-WIN64.nsi

It'll create the "GSL-WIN64.exe" file in $GSL_WIN64DIR. Copy it over to a running instance of Microsoft Windows and double-click for installation.

License

GSL-WIN64 is an installer for GSL, therefore inherits the GPL license.

gsl-win64's People

Contributors

fake-github-acc avatar hariseldon99 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

liao007

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.