rcsb/mmtf-cpp

No targets to build

yurivict opened this issue · 6 comments

In the FreeBSD port that I am trying to create ninja doesn't find anything to do:

===>  Building for mmtf-g20180730
ninja: no work to do.
danpf commented

I don't know anything about FreeBSD..
but you could try not using ninja? maybe make instead?

# download Catch2 testing framework, msgpack-c, and the mmtf-spec test-dataset
git submodule update --init --recursive
mkdir build
cd build
cmake -DBUILD_TESTS=ON -Dmmtf_build_local=ON -Dmmtf_build_examples=ON ..
make
chmod +x ./tests/mmtf_tests
./tests/mmtf_tests

Now I see that it is a headers-only library.

In this case, you need to install headers and cmake files. Currently you install nothing.

danpf commented

Ahh you're the second person that's said this. I will try to make the documentation more clear.
To 'install' this, in the mmtf-cpp downloaded directory you will need to:

sudo cp mmtf.hpp /usr/local/include/
sudo cp -r mmtf /usr/local/include/

or whatever include directory you prefer.

you will also need to install msgpack-c https://github.com/msgpack/msgpack-c which is also include only

It's best if the project installs the files though. 99.9% of cmake-based projects do.

danpf commented

Ok I will add an install stage to the cmake build and update the documentation.

My apologies for the delay. The corresponding PR #22 was merged now and so this should be resolved.