grenaud / deML

Maximum likelihood demultiplexing
GNU General Public License v3.0
46 stars 13 forks source link

error in make #7

Closed chloelulu closed 5 years ago

chloelulu commented 5 years ago

Hi, I met the error in make. May I have your help? Thanks!

rm -rf SimpleJSON/
git clone --recursive https://github.com/MJPA/SimpleJSON.git
Cloning into 'SimpleJSON'...
remote: Enumerating objects: 325, done.
remote: Total 325 (delta 0), reused 0 (delta 0), pack-reused 325
Receiving objects: 100% (325/325), 77.23 KiB | 0 bytes/s, done.
Resolving deltas: 100% (162/162), done.
make -C SimpleJSON
make[1]: Entering directory `/home/zzhang78/illumina/deML/SimpleJSON'
g++ -c -Wall src/JSON.cpp -o obj/JSON.o
g++ -c -Wall src/JSONValue.cpp -o obj/JSONValue.o
g++ -c -Wall src/demo/nix-main.cpp -o obj/demo/nix-main.o
g++ -c -Wall src/demo/example.cpp -o obj/demo/example.o
g++ -c -Wall src/demo/testcases.cpp -o obj/demo/testcases.o
g++ -lm obj/JSON.o obj/JSONValue.o obj/demo/nix-main.o obj/demo/example.o obj/demo/testcases.o -o JSONDemo
make[1]: Leaving directory `/home/zzhang78/illumina/deML/SimpleJSON'
rm -rf bamtools/
git clone --recursive https://github.com/pezmaster31/bamtools.git
Cloning into 'bamtools'...
remote: Enumerating objects: 4857, done.
remote: Total 4857 (delta 0), reused 0 (delta 0), pack-reused 4857
Receiving objects: 100% (4857/4857), 6.06 MiB | 8.49 MiB/s, done.
Resolving deltas: 100% (3373/3373), done.
cd bamtools/ && mkdir -p build/  && cd build/ && cmake .. && make && cd ../..
CMake Error at CMakeLists.txt:9 (cmake_minimum_required):
  CMake 3.0 or higher is required.  You are running version 2.8.12.2

-- Configuring incomplete, errors occurred!
make: *** [bamtools/build/src/api/libbamtools.a] Error 1
grenaud commented 5 years ago

This is problem with bamtools, it needs cmake 3.0 or above. I suggest 2 possibilities: 1) update cmake, run make again 2) install a new cmake somewhere say ~/software/cmake3/bin/cmake, replace the following in deML/Makefile: cd bamtools/ && mkdir -p build/ && cd build/ && cmake .. && make && cd ../.. with cd bamtools/ && mkdir -p build/ && cd build/ && ~/software/cmake3/bin/cmake .. && make && cd ../.. and run make again

chloelulu commented 5 years ago

Thanks @grenaud . It works well! Appreciate your quick response!