Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build error for boost.cmake on Linux #20

Closed
dmccloskey opened this issue Jul 10, 2018 · 2 comments
Closed

Build error for boost.cmake on Linux #20

dmccloskey opened this issue Jul 10, 2018 · 2 comments

Comments

@dmccloskey
Copy link
Collaborator

No description provided.

@pcolaianni
Copy link
Contributor

  • rename FindBoost.cmake to Findboost.cmake

Commands used:

mkdir build1
mkdir build2
cd build2
cmake -DUSE_SUPERBUILD=ON -G "Unix Makefiles" ..
make
cd ../build1
cmake -DEIGEN_USE_GPU=OFF -DUSE_SUPERBUILD=OFF -DBOOST_USE_STATIC=OFF -G "Unix Makefiles" -DCMAKE_PREFIX_PATH="/home/pasdom/OpenMS-build/" -DEIGEN3_INCLUDE_DIR=/home/pasdom/SmartPeak2/build2/Dependencies/Source/eigen -DBOOST_ROOT=/home/pasdom/SmartPeak2/build2/Dependencies/Source/boost ..
make

ps: my folder names are hardcoded (ie. pasdom/)

@pcolaianni
Copy link
Contributor

pcolaianni commented Oct 3, 2018

This comment is out of date. The updated instructions can be found in the wiki pages:

Old instructions

I compiled OpenMS and SmartPeak2 on my local machine.
Following the guide from OpenMS, I can confirm it's not necessary to build contrib (tested on Ubuntu 18.04).

Note: It is assumed that code resides in ~/OpenMS and ~/SmartPeak2

cd ~
mkdir OpenMS-build
cd OpenMS-build
cmake -DBOOST_USE_STATIC=OFF -DHAS_XSERVER=OFF -DWITH_GUI=OFF -DENABLE_TUTORIALS=OFF -DENABLE_DOCS=OFF -DGIT_TRACKING=OFF -DENABLE_UPDATE_CHECK=OFF -DCMAKE_BUILD_TYPE=Debug -DPYOPENMS=OFF -DOPENMS_COVERAGE=OFF ~/OpenMS
make -j4 OpenMS

cd ~
mkdir SmartPeak2_build
cd SmartPeak2_build
cmake -DEIGEN_USE_GPU=OFF -DUSE_SUPERBUILD=OFF -DBOOST_USE_STATIC=OFF -G "Unix Makefiles" -DCMAKE_PREFIX_PATH=$HOME/OpenMS-build/ -DCMAKE_BUILD_TYPE=Debug ~/SmartPeak2
make -j4

Some dependencies one might have to install:
sudo apt install qt5-default libboost-dev libeigen3-dev libxerces-c-dev coinor-libcbc-dev libsvm-dev libboost-iostreams-dev libboost-date-time-dev libboost-math-dev libwildmagic-dev libsqlite3-dev libglpk-dev seqan-dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants