Closed mtajhuss closed 4 years ago
My feeling is you're using an ancient compiler. Bamtools implicitly now requires C++11, due to jsoncpp being a C++11 library. Which compiler are you using?
I am using gcc compiler.
are you using GCC 2.95 from 1998 or GCC 9.3 from 4 weeks ago?
I am using "gcc 9.3.0_1" which was installed on Mac using brew
First I cloned from git
git clone git://github.com/pezmaster31/bamtools.git
then also tried using
export CC=clang export CXX=clang++
mkdir build
cd build
cmake ..
make
I've added C++11 as an explicit requirement, please give it a try.
I am trying to install the BamTools on Mac Catalina. During the make compilation I have the following error: `mtajhusl@Drs-MacBook-Pro build % sudo make Password: [ 66%] Built target BamTools [ 74%] Built target BamTools-utils [ 76%] Building CXX object src/toolkit/CMakeFiles/bamtools_cmd.dir/bamtools_filter.cpp.o In file included from /Users/tajammul/Documents/packages/bamtools/src/toolkit/bamtools_filter.cpp:19: In file included from /usr/local/Cellar/jsoncpp/1.9.1/include/json/json.h:9: In file included from /usr/local/Cellar/jsoncpp/1.9.1/include/json/autolink.h:9: In file included from /usr/local/Cellar/jsoncpp/1.9.1/include/json/config.h:132: /usr/local/Cellar/jsoncpp/1.9.1/include/json/allocator.h:18:22: warning: alias declarations are a C++11 extension [-Wc++11-extensions] using value_type = T; ^ /usr/local/Cellar/jsoncpp/1.9.1/include/json/allocator.h:19:19: warning: alias declarations are a C++11 extension [-Wc++11-extensions] using pointer = T; ^ /usr/local/Cellar/jsoncpp/1.9.1/include/json/allocator.h:20:25: warning: alias declarations are a C++11 extension [-Wc++11-extensions] using const_pointer = const T; ^ /usr/local/Cellar/jsoncpp/1.9.1/include/json/allocator.h:21:21: warning: alias declarations are a C++11 extension [-Wc++11-extensions] using reference = T&; ^ /usr/local/Cellar/jsoncpp/1.9.1/include/json/allocator.h:22:27: warning: alias declarations are a C++11 extension [-Wc++11-extensions] using const_reference = const T&; ^ /usr/local/Cellar/jsoncpp/1.9.1/include/json/allocator.h:23:21: warning: alias declarations are a C++11 extension [-Wc++11-extensions] using size_type = std::size_t; ^ /usr/local/Cellar/jsoncpp/1.9.1/include/json/allocator.h:24:27: warning: alias declarations are a C++11 extension [-Wc++11-extensions] using difference_type = std::ptrdiff_t; ^ /usr/local/Cellar/jsoncpp/1.9.1/include/json/allocator.h:50:21: warning: variadic templates are a C++11 extension [-Wc++11-extensions] template void construct(pointer p, Args&&... args) {
^
/usr/local/Cellar/jsoncpp/1.9.1/include/json/allocator.h:50:61: warning: rvalue references are a C++11
extension [-Wc++11-extensions]
template void construct(pointer p, Args&&... args) {
^
/usr/local/Cellar/jsoncpp/1.9.1/include/json/allocator.h:72:55: warning: alias declarations are a C++11
extension [-Wc++11-extensions]
template struct rebind { using other = SecureAllocator; };
^
In file included from /Users/tajammul/Documents/packages/bamtools/src/toolkit/bamtools_filter.cpp:19:
In file included from /usr/local/Cellar/jsoncpp/1.9.1/include/json/json.h:9:
In file included from /usr/local/Cellar/jsoncpp/1.9.1/include/json/autolink.h:9:
/usr/local/Cellar/jsoncpp/1.9.1/include/json/config.h:159:19: warning: alias declarations are a C++11
extension [-Wc++11-extensions]
using Allocator = typename std::conditional<JSONCPP_USING_SECURE_MEMORY,
^
/usr/local/Cellar/jsoncpp/1.9.1/include/json/config.h:161:61: error: a space is required between
consecutive right angle brackets (use '> >')
std::allocator>::type;
^~