SCIPhI
SCIPhI copied to clipboard
cmake compilation error
Hey! Thanks for writing the tool.
I ran the compilation through cmake and got the following error on CMakeFiles/sciphi.dir/src/findBestTrees.cpp.o
Here is the more detailed log:
[ 95%] Building CXX object dlib/dlib/CMakeFiles/dlib.dir/image_saver/save_jpeg.cpp.o
[ 96%] Linking CXX static library libdlib.a
[ 96%] Built target dlib
Scanning dependencies of target sciphi
[ 98%] Building CXX object CMakeFiles/sciphi.dir/src/findBestTrees.cpp.o
In file included from /juno/home/zhangh5/anaconda3/envs/snakemake/include/boost/graph/adjacency_iterator.hpp:13:0,
from /juno/home/zhangh5/anaconda3/envs/snakemake/include/boost/graph/detail/adjacency_list.hpp:37,
from /juno/home/zhangh5/anaconda3/envs/snakemake/include/boost/graph/adjacency_list.hpp:255,
from /juno/home/zhangh5/anaconda3/envs/snakemake/include/boost/graph/graphviz.hpp:24,
from /home/zhangh5/hz_work/software/SCIPhI/src/sciphi_config.h:26,
from /home/zhangh5/hz_work/software/SCIPhI/src/findBestTrees.cpp:38:
/juno/home/zhangh5/anaconda3/envs/snakemake/include/boost/detail/iterator.hpp:13:67: note: #pragma message: This header is deprecated. Use <iterator> instead.
BOOST_HEADER_DEPRECATED("<iterator>")
^
In file included from /home/zhangh5/hz_work/software/SCIPhI/src/findBestTrees.cpp:40:0:
/home/zhangh5/hz_work/software/SCIPhI/src/readData.h: In instantiation of ‘void readNucInfo(Config<TTreeType>&) [with TTreeType = SampleTree]’:
/home/zhangh5/hz_work/software/SCIPhI/src/findBestTrees.cpp:223:27: required from here
/home/zhangh5/hz_work/software/SCIPhI/src/readData.h:1192:13: error: converting to ‘std::vector<std::tuple<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, unsigned int, char, char> >::value_type {aka std::tuple<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, unsigned int, char, char>}’ from initializer list would use explicit constructor ‘constexpr std::tuple< <template-parameter-1-1> >::tuple(_UElements&& ...) [with _UElements = {std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, long unsigned int, char&, char&}; <template-parameter-2-2> = void; _Elements = {std::basic_string<char, std::char_traits<char>, std::allocator<char> >, unsigned int, char, char}]’
config.indexToPosition.push_back({splitVec[0],std::stoul(splitVec[1]),splitVec[2][0],splitVec[3][0]});
^
/home/zhangh5/hz_work/software/SCIPhI/src/readData.h:1195:17: error: converting to ‘std::vector<std::tuple<unsigned int, unsigned int> >::value_type {aka std::tuple<unsigned int, unsigned int>}’ from initializer list would use explicit constructor ‘constexpr std::tuple<_T1, _T2>::tuple(_U1&&, _U2&&) [with _U1 = long unsigned int; _U2 = long unsigned int; <template-parameter-2-3> = void; _T1 = unsigned int; _T2 = unsigned int]’
config.data[(i-4) / 2].push_back({std::stoul(splitVec[i]),std::stoul(splitVec[i+1])});
^
gmake[2]: *** [CMakeFiles/sciphi.dir/src/findBestTrees.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/sciphi.dir/all] Error 2
gmake: *** [all] Error 2
Thanks in advance of the help!
hi , have you solved this question now ,i have encountered the same problems now.