forked from bingmann/cobs
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Now forcing boost * Now compiling with boost * Linking boost statically * Forcing boost * boost * Fixing a recursion error with tests * Adding -DBOOST flag to force Boost * Trying to build with clang * Trying boost 1.72 * Boost 1.76 * -DBOOST=1 * Trying to install libomp on OS X * Compiling without pthreads * retry * ls /usr/local/Cellar/libomp/14.0.6 * listing libomp files * making clang find threads * Fixing finding boost * What??? * what * Maybe was a $ in the path * Debugging * Maybe there is no need to find boost? * resintalling libomp * libomp * Removing -fopenmp * Adding fopenmp back and llvm * Improving CMakeLists * Improving warning messages * Updating README * Updating build.yaml * Using static linking * Making test a little bit more lenient * Removing static linking * Removing static linking * Adding back other builds * Finishing build.yaml
- Loading branch information
Showing
18 changed files
with
152 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,9 +16,6 @@ jobs: | |
- name: Install dependencies | ||
run: | | ||
sudo apt-get install cmake | ||
cmake --version | ||
gcc --version | ||
g++ --version | ||
- name: Check out code for the build | ||
uses: actions/checkout@v2 | ||
|
@@ -33,18 +30,13 @@ jobs: | |
make | ||
make test | ||
mac_build: | ||
name: Build and test Mac OS X | ||
mac_build_gcc: | ||
name: Build and test Mac OS X with gcc | ||
runs-on: macos-11 | ||
steps: | ||
- name: Install dependencies | ||
run: | | ||
brew install cmake gcc@12 | ||
which gcc-12 | ||
which g++-12 | ||
cmake --version | ||
gcc-12 --version | ||
g++-12 --version | ||
brew install cmake gcc@11 | ||
- name: Check out code for the build | ||
uses: actions/checkout@v2 | ||
|
@@ -55,6 +47,33 @@ jobs: | |
run: | | ||
mkdir build | ||
cd build | ||
cmake -DCMAKE_C_COMPILER=gcc-12 -DCMAKE_CXX_COMPILER=g++-12 .. | ||
cmake -DCMAKE_C_COMPILER=gcc-11 -DCMAKE_CXX_COMPILER=g++-11 .. | ||
make | ||
make test | ||
make test | ||
mac_build_clang: | ||
name: Build and test Mac OS X with clang | ||
runs-on: macos-11 | ||
steps: | ||
- name: Install dependencies | ||
run: | | ||
brew install cmake [email protected] | ||
- name: Check out code for the build | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Build and test | ||
run: | | ||
# set up some variables so that CMake can find boost | ||
export BOOST_INCLUDE_DIR="/usr/local/opt/[email protected]/include" | ||
export BOOST_LIBRARY_DIR="/usr/local/opt/[email protected]/lib" | ||
export CXXFLAGS="-DUSE_BOOST -I${BOOST_INCLUDE_DIR} -L${BOOST_LIBRARY_DIR}" | ||
export LDFLAGS="-L${BOOST_LIBRARY_DIR} -lboost_filesystem -lboost_system" | ||
mkdir build | ||
cd build | ||
cmake -DBOOST=1 -DNOOPENMP=1 -DSKIP_PYTHON=1 .. | ||
make | ||
make test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,6 +44,8 @@ If you use COBS in an academic context or publication, please cite our paper | |
|
||
COBS requires CMake, a C++17 compiler or the Boost.Filesystem library. | ||
|
||
## Linux | ||
|
||
To download and install COBS run: | ||
``` | ||
git clone --recursive https://github.com/bingmann/cobs.git | ||
|
@@ -54,15 +56,41 @@ make -j4 | |
``` | ||
and optionally run `make test` to check the build. | ||
|
||
### OS X compilation | ||
## OS X compilation | ||
|
||
### Using `gcc` | ||
|
||
1. Install `gcc-11` or more recent: `brew install gcc@11` | ||
2. Compile COBS: `cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=gcc-11 -DCMAKE_CXX_COMPILER=g++-11 ..` | ||
|
||
### Using `clang`: | ||
|
||
1. Install `boost-1.76`: `brew install [email protected]` | ||
2. Compile COBS with boost: `cmake -DBOOST=1 ..` | ||
|
||
## Troubleshooting | ||
|
||
Several issues might arise from your specific configuration. | ||
|
||
If the above does not work and you are using `OS X`, install `gcc` and `g++` and try switching the `cmake` command to: | ||
### Problems with openMP on Mac OS X | ||
|
||
If installing openMP does not work, add `-DNOOPENMP=1` argument to the `cmake` command. | ||
|
||
### Problems with python bindings | ||
|
||
Skip python bindings compilation by adding `-DSKIP_PYTHON=1` argument to the `cmake` command. | ||
|
||
### Problems with finding boost | ||
|
||
Define boost env variables and then compile: | ||
``` | ||
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=gcc-11 -DCMAKE_CXX_COMPILER=g++-11 .. | ||
export BOOST_INCLUDE_DIR="<boost_root>/include" | ||
export BOOST_LIBRARY_DIR="<boost_root>/lib" | ||
export CXXFLAGS="-DUSE_BOOST -I${BOOST_INCLUDE_DIR} -L${BOOST_LIBRARY_DIR}" | ||
export LDFLAGS="-L${BOOST_LIBRARY_DIR} -lboost_filesystem -lboost_system" | ||
cmake -DBOOST=1 .. | ||
``` | ||
|
||
On `OS X`, `COBS` was tested with `cmake v3.22.3`, `make v3.81`, `gcc/g++-11 v11.2.0`. | ||
|
||
## Building an Index | ||
|
||
COBS can read FASTA files (`*.fa`, `*.fasta`, `*.fna`, `*.ffn`, `*.faa`, `*.frn`, `*.fa.gz`, `*.fasta.gz`, `*.fna.gz`, `*.ffn.gz`, `*.faa.gz`, `*.frn.gz`), FASTQ files (`*.fq`, `*.fastq`, `*.fq.gz.`, `*.fastq.gz`), "Multi-FASTA" and "Multi-FASTQ" files (`*.mfasta`, `*.mfastq`), McCortex files (`*.ctx`), or text files (`*.txt`). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.