pangenome / odgi

Optimized Dynamic Genome/Graph Implementation: understanding pangenome graphs
https://doi.org/10.1093/bioinformatics/btac308
MIT License
191 stars 39 forks source link

Make odgi compile on Mac #426

Closed GeorgeBGM closed 1 year ago

GeorgeBGM commented 2 years ago

Dear odgi team, I want to compile odgi on my Mac, can you suggest something about installing odgi on Mac arm64. Thanks, Du

AndreaGuarracino commented 2 years ago

Hi @George-du, neither of us owns a Mac, but we would be happy to work with you in trying to make odgi compilable there if you can. Which is the current starting point (problem)?

AndreaGuarracino commented 1 year ago

@George-du, have you tried something? It would be interesting having details about it, also regarding failures!

GeorgeBGM commented 1 year ago

Dear odgi team, I have compiled it in a linux environment. I will try to compile odgi on Mac arm64 soon. Thanks, Du

anshumanmohan commented 1 year ago

@George-du, you may enjoy https://github.com/pangenome/odgi/pull/494!

kojix2 commented 1 year ago

Hello. I followed the instructions #494 above and compiled odgi on my M2 Mac mini.

brew install llvm jemalloc
CC=/opt/homebrew/opt/llvm/bin/clang CXX=/opt/homebrew/opt/llvm/bin/clang++ LDFLAGS=-L/opt/homebrew/lib cmake . -Bbuild
CC=/opt/homebrew/opt/llvm/bin/clang CXX=/opt/homebrew/opt/llvm/bin/clang++ LDFLAGS=-L/opt/homebrew/lib cmake --build build -- -j

I had to add "#include " to odgi/src/algorithms/progress.hpp because I got the following error.

odgi/src/algorithms/progress.hpp:68:31: error: implicit instantiation of undefined template 'std::basic_stringstream<char>'
            std::stringstream buffer;
                              ^