MRCIEU / Lifecourse-GWAS

MIT License
5 stars 0 forks source link

flashpca compilation #32

Closed explodecomputer closed 3 days ago

explodecomputer commented 3 days ago

Note that flashpca needed to be compiled statically

  1. Download BOOST, SPECTRA and EIGEN libraries.
  2. Compile BOOST because it needs the program_options shared object
  3. modify the final g++ command to include the -static flag
cd flashpca
make all EIGEN_INC=/home/gh13047/downloads/eigen-3.4.0 \
   BOOST_INC=/home/gh13047/downloads/boost_1_86_0 \
   SPECTRA_INC=/home/gh13047/downloads/spectra/include \
   BOOST_LIB=/home/gh13047/downloads/boost_1_86_0/stage/lib

g++ -I/home/gh13047/downloads/spectra/include -I/home/gh13047/downloads/boost_1_86_0/libs -I/home/gh13047/downloads/eigen-3.4.0 -march=native -std=c++0x -O3 -DNDEBUG -DVERSION=\"2.1\" -funroll-loops -ftree-vectorize -ffast-math -o flashpca flashpca.o randompca.o data.o util.o svdwide.o svdtall.o -L/home/gh13047/downloads/boost_1_86_0/stage/lib -lboost_program_options -static