kwiver icon indicating copy to clipboard operation
kwiver copied to clipboard

Build errors

Open skn123 opened this issue 8 years ago • 8 comments

/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 avatar Jan 19 '17 04:01 skn123

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<T>(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 >' 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++

skn123 avatar Jan 19 '17 06:01 skn123

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

linus-sherrill avatar Jan 19 '17 14:01 linus-sherrill

I am working with 4.0

skn123 avatar Jan 19 '17 15:01 skn123

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 avatar Jan 19 '17 16:01 linus-sherrill

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

linus-sherrill avatar Jan 20 '17 20:01 linus-sherrill

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 [email protected] 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<kwiver::vital::rotation >' 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.

mleotta avatar Jan 20 '17 23:01 mleotta

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

skn123 avatar Jan 31 '17 15:01 skn123

    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.

aclyde11 avatar Jun 01 '18 14:06 aclyde11