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.2.8 > PRSice.tar.gz
tar -xvf PRSice.tar.gz
cd PRSice-2.2.8
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 -O3 -DNDEBUG -march=native -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.2.8 > PRSice.tar.gz
tar -xvf PRSice.tar.gz
cd PRSice-2.2.8.beta
g++ -std=c++11 -O3 -DNDEBUG -march=native -isystem lib -I inc src/*.cpp -lpthread -lz -o PRSice

Intel MKL

If you know how to setup the Intel \(\circledR\) MKL library, you can compile PRSice with it to speed up the processing speed. You can use this to help you with the linking.