Introduction Build Status

Here is the guideline for anyone who might want to compile PRSice from source.

Note

Only the C++ executable need to be built

Using CMake

With CMake, you can simply do the following:

git clone https://github.com/choishingwan/PRSice.git
cd PRSice
mkdir build
cd build
cmake ../
make

Then the PRSice executable will be located within PRSice/bin

If you don't have git installed, you can still do

curl https://codeload.github.com/choishingwan/PRSice/tar.gz/2.1.0.beta > PRSice.tar.gz
tar -xvf PRSice.tar.gz
cd PRSice-2.1.0.beta
mkdir build
cd build
cmake ../
make

Note

The above procedure was not tested on Windows

Without CMake

Without CMake, you can simply do the following

git clone https://github.com/choishingwan/PRSice.git
cd PRSice
g++ -std=c++11 -O2 -isystem lib -I inc src/*.cpp -lpthread -lz -o PRSice

Then PRSice will be located in the current directory

Alternatively, if you don't have git installed, you can still do

curl https://codeload.github.com/choishingwan/PRSice/tar.gz/2.1.0.beta > PRSice.tar.gz
tar -xvf PRSice.tar.gz
cd PRSice-2.1.0.beta
g++ -std=c++11 -O2 -isystem lib -I inc src/*.cpp -lpthread -lz -o PRSice