It is suggested to get the library directly by pulling it from our git repository (Git installation instructions):
git clone https://github.com/NGS-lib/NGSplusplus.git
Alternatively you could obtain the latest stable tagged release from our github.
Generally it is best to get the latest version as it will contain recent features and bug fixes.
- C++ 11 compliant version of gcc. We recommend 4.7 or higher. Click here for some help in upgrading your GCC version if needed
- zlib for the BamTools API. Note that many distributions have zlib included. If yours does not, please see the zlib website for installation help. (If you use a package manager to install zlib, make sure to use the devel version).
Open a terminal and move to the directory you download to. Run make:
Note, the make assumes that ‘g++’ is the appropriate name for your compiler. If that is not the case, you can specify it. For example if your compiler is installed as “g++-4.7”, type:
If you want to create a shared library:
Assuming everything went well, the library is now built! It is recommended ( but not mandatory ) to move the libraries to /usr/lib and the headers to /usr/headers by running:
sudo make install
Finally, you may build the samples provided with the library by running:
cd sample-src make
If your c++11 standard complient compiler is not named g++, you can call the Makefile with another compiler. In the next example, the compiler is name g++-4.7:
If everything went well, the library is now built and installed! If this is your first time using NGS++, we suggest you move on to our Tutorial page.