AIBluefisher / DAGSfM

Distributed and Graph-based Structure from Motion. This project includes the official implementation of our Pattern Recognition 2020 paper: Graph-Based Parallel Large Scale Structure from Motion.
https://aibluefisher.github.io/GraphSfM/
BSD 3-Clause "New" or "Revised" License
395 stars 84 forks source link

compile error #21

Open biexiangduo opened 3 years ago

biexiangduo commented 3 years ago

hello ,when i try gcc-6 or 5 or 4.8 4.7 there always error can you tell me your gcc g++ version? thank you

gcc-5 error: /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9220): error: argument of type "const void " is incompatible with parameter of type "const float "

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9231): error: argument of type "const void " is incompatible with parameter of type "const float "

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9244): error: argument of type "const void " is incompatible with parameter of type "const double "

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9255): error: argument of type "const void " is incompatible with parameter of type "const double "

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9268): error: argument of type "const void " is incompatible with parameter of type "const float "

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9279): error: argument of type "const void " is incompatible with parameter of type "const float "

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9292): error: argument of type "const void " is incompatible with parameter of type "const double "

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9303): error: argument of type "const void " is incompatible with parameter of type "const double "

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9316): error: argument of type "const void " is incompatible with parameter of type "const int "

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9327): error: argument of type "const void " is incompatible with parameter of type "const int "

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9340): error: argument of type "const void " is incompatible with parameter of type "const long long "


gcc-4,9 error:

/usr/local/include/ceres/internal/integer_sequence_algorithm.h:64:21: error: no member named 'integer_sequence' in namespace 'std' struct SumImpl<std::integer_sequence<T, N, Ns...>> {


/usr/local/include/ceres/internal/integer_sequence_algorithm.h:64:38: error: 'T' does not refer to a value
struct SumImpl<std::integer_sequence<T, N, Ns...>> {
                                     ^
/usr/local/include/ceres/internal/integer_sequence_algorithm.h:63:20: note: declared here
template <typename T, T N, T... Ns>
                   ^
/usr/local/include/ceres/internal/integer_sequence_algorithm.h:70:21: error: no member named 'integer_sequence' in namespace 'std'
struct SumImpl<std::integer_sequence<T, N1, N2, Ns...>> {
               ~~~~~^
/usr/local/include/ceres/internal/integer_sequence_algorithm.h:70:38: error: 'T' does not refer to a value
struct SumImpl<std::integer_sequence<T, N1, N2, Ns...>> {
                                     ^
/usr/local/include/ceres/internal/integer_sequence_algorithm.h:69:20: note: declared here
template <typename T, T N1, T N2, T... Ns>
                   ^
/usr/local/include/ceres/internal/integer_sequence_algorithm.h:77:21: error: no member named 'integer_sequence' in namespace 'std'
struct SumImpl<std::integer_sequence<T, N1, N2, N3, N4, Ns...>> {
               ~~~~~^
/usr/local/include/ceres/internal/integer_sequence_algorithm.h:77:38: error: 'T' does not refer to a value
struct SumImpl<std::integer_sequence<T, N1, N2, N3, N4, Ns...>> {
                                     ^
/usr/local/include/ceres/internal/integer_sequence_algorithm.h:76:20: note: declared here
template <typename T, T N1, T N2, T N3, T N4, T... Ns>
                   ^
/usr/local/include/ceres/internal/integer_sequence_algorithm.h:84:21: error: no member named 'integer_sequence' in namespace 'std'
struct SumImpl<std::integer_sequence<T, N>> {
               ~~~~~^
/usr/local/include/ceres/internal/integer_sequence_algorithm.h:84:38: error: 'T' does not refer to a value
struct SumImpl<std::integer_sequence<T, N>> {
                                     ^
/usr/local/include/ceres/internal/integer_sequence_algorithm.h:83:20: note: declared here
template <typename T, T N>
                   ^
/usr/local/include/ceres/internal/integer_sequence_algorithm.h:90:21: error: no member named 'integer_sequence' in namespace 'std'
struct SumImpl<std::integer_sequence<T>> {
               ~~~~~^
/usr/local/include/ceres/internal/integer_sequence_algorithm.h:90:38: error: 'T' does not refer to a value
struct SumImpl<std::integer_sequence<T>> {
                                     ^
/usr/local/include/ceres/internal/integer_sequence_algorithm.h:89:20: note: declared here
template <typename T>
                   ^
/usr/local/include/ceres/internal/integer_sequence_algorithm.h:132:39: error: no member named 'integer_sequence' in namespace 'std'
struct ExclusiveScanImpl<T, Sum, std::integer_sequence<T, N, Ns...>,
                                 ~~~~~^
/usr/local/include/ceres/internal/integer_sequence_algorithm.h:132:56: error: 'T' does not refer to a value
struct ExclusiveScanImpl<T, Sum, std::integer_sequence<T, N, Ns...>,
                                                       ^
/usr/local/include/ceres/internal/integer_sequence_algorithm.h:131:20: note: declared here
template <typename T, T Sum, T N, T... Ns, T... Rs>
                   ^
/usr/local/include/ceres/internal/integer_sequence_algorithm.h:133:31: error: cannot define or redeclare 'integer_sequence' here because namespace 'internal' does
      not enclose namespace 'std'
                         std::integer_sequence<T, Rs...>> {
                         ~~~~~^
/usr/local/include/ceres/internal/integer_sequence_algorithm.h:133:31: error: no member named 'integer_sequence' in namespace 'std'
                         std::integer_sequence<T, Rs...>> {
                         ~~~~~^
/usr/local/include/ceres/internal/integer_sequence_algorithm.h:131:40: error: template parameter pack must be the last template parameter
template <typename T, T Sum, T N, T... Ns, T... Rs>
                                       ^
/usr/local/include/ceres/internal/integer_sequence_algorithm.h:133:47: error: expected ';' at end of declaration
                         std::integer_sequence<T, Rs...>> {
                                              ^
/usr/local/include/ceres/internal/integer_sequence_algorithm.h:133:47: error: expected unqualified-id
/usr/local/include/ceres/internal/integer_sequence_algorithm.h:141:34: error: template argument for template type parameter must be a type
struct ExclusiveScanImpl<T, Sum, std::integer_sequence<T>, SeqOut> {
                                 ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/ceres/internal/integer_sequence_algorithm.h:128:39: note: template parameter is declared here
template <typename T, T Sum, typename SeqIn, typename SeqOut>
                                      ^
/usr/local/include/ceres/internal/integer_sequence_algorithm.h:155:48: error: template argument for template type parameter must be a type
      typename ExclusiveScanImpl<T, T(0), Seq, std::integer_sequence<T>>::Type;
AIBluefisher commented 3 years ago

Sorry about the late reply. My gcc version is 5.4.0