Kitware / kwiver

Pulls Together Computer Vision Algorithms into Highly-Modular Run-Time Configurable Systems
Other
189 stars 83 forks source link

Build errors #54

Open skn123 opened 7 years ago

skn123 commented 7 years ago

/home/naths/srcs/kwiver/vital/types/detected_object_set.cxx:93:24: error: no member named 'clone' in 'kwiver::vital::detected_object' new_obj->add( det->clone() );


/home/naths/srcs/kwiver/vital/types/detected_object_set.cxx:97:37: error: no member named 'clone' in 'kwiver::vital::attribute_set'
  new_obj->m_attrs = this->m_attrs->clone();
                     ~~~~~~~~~~~~~  ^
skn123 commented 7 years ago

There are also issues with Eigen /usr/local/include/eigen3/Eigen/src/Core/Matrix.h:296:22: error: no matching member function for call to '_init1' Base::template _init1(x);


/home/naths/srcs/kwiver/vital/types/camera.cxx:58:15: note: in instantiation of function template specialization 'Eigen::Matrix<double, 3, 3, 0, 3,
      3>::Matrix<kwiver::vital::rotation_<double> >' requested here
  matrix_3x3d R( this->rotation() );

I can get rid of this problem if I explicitly instantiate
matrix_3x3d t = this->rotation() and then pass it to R; 
I am using clang with -std=c++11 and -stdlib = libc++
linus-sherrill commented 7 years ago

We are still working on our support for clang, so I apologize for any difficulties. Which version of clang are you using?

skn123 commented 7 years ago

I am working with 4.0

linus-sherrill commented 7 years ago

The missing methods in the first set of errors are there. Seems odd that they are not being found. That code was recently added. Could there be some older libraries being used to link against, possibly in an install library?

linus-sherrill commented 7 years ago

I have not been able to reproduce that failure. Are you still having that problem?

mleotta commented 7 years ago

FYI, I just built against and updated version of Eigen and ran into this same error. I’ve pushed a fix here:

https://github.com/Kitware/kwiver/pull/55 https://github.com/Kitware/kwiver/pull/55

On Jan 19, 2017, at 1:13 AM, skn123 notifications@github.com wrote:

There are also issues with Eigen /usr/local/include/eigen3/Eigen/src/Core/Matrix.h:296:22: error: no matching member function for call to '_init1' Base::template init1(x); ^ /home/naths/srcs/kwiver/vital/types/camera.cxx:58:15: note: in instantiation of function template specialization 'Eigen::Matrix<double, 3, 3, 0, 3, 3>::Matrix' requested here matrix_3x3d R( this->rotation() );

I can get rid of this problem if I explicitly instantiate matrix_3x3d t = this->rotation() and then pass it to R; I am using clang with -std=c++11 and -stdlib = libc++

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Kitware/kwiver/issues/54#issuecomment-273690994, or mute the thread https://github.com/notifications/unsubscribe-auth/AAybMRSSfZWs_jabNk2F5uDmmQWyE_9Qks5rTv8lgaJpZM4LnsvC.

skn123 commented 7 years ago

The fix may not have been pushed as I am still getting errors. The previous error (first post) is also there.

aclyde11 commented 6 years ago
    int array[9];
    for(int i = 0; i < 9; ++i) array[i] = i;
    Eigen::VectorXd v(array);
    std::cout << Eigen::Map<Eigen::MatrixXd>(v.data(), 3, 3) << std::endl;

gives /Users/austin/CLionProjects/CS28515Proj1/cmake-build-debug/eigen/src/eigen/Eigen/src/Core/Matrix.h:296:22: error: no matching member function for call to '_init1' as well.