-
Notifications
You must be signed in to change notification settings - Fork 717
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem compiling with latest traits.hpp #308
Comments
Where is the code you are trying to compile ? |
Thanks for your response. My source code was the example code the
opencv_contrib sfm scene recon example. The error seemed to indicate that
the sfm was using a deprecated member of traits, so I suppose I should have
posted my problem to contrib. I checked the last check-in on sfm and it
seemed to match opencv 3.2.0 release, so I did a git on that version and
the problem went away. Should I post this somewhere? Accept my apologies
for poor decorum.
…On Mon, Nov 20, 2017 at 7:36 AM, Vincent Rabaud ***@***.***> wrote:
Where is the code you are trying to compile ?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#308 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AgPx-hUi1Jo6Zai8vXnCafDdPbqm6e3mks5s4XJqgaJpZM4Qjg9e>
.
|
To me, the following workaround worked in Windows/Visual Studio: |
it works |
Closing due to resolution. |
This does not work with the workaround yet. I am using the latest opencv version. |
@JWhitleyWork This does not work with the given workaround yet. I am using the latest opencv version. |
@nidhiratanpara This is a very old issue. Please create a new issue with your environment details and the error you're seeing. |
With latest Opencv2, Opencv_contrib, Ceres with eigen3, etc, using the sfm scene reconstruction example cooied into eclipse, I receive the following compile error:
/home/bongo/opencv/modules/core/include/opencv2/core/traits.hpp: In instantiation of ‘struct cv::traits::Type<std::__cxx11::basic_string >’:
/home/bongo/opencv/modules/core/include/opencv2/core/mat.inl.hpp:85:32: required from ‘cv::_InputArray::_InputArray(const std::vector<_Tp>&) [with _Tp = std::__cxx11::basic_string]’
../src/recon.cpp:61:81: required from here
/home/bongo/opencv/modules/core/include/opencv2/core/traits.hpp:366:8: error: ‘type’ is not a member of ‘cv::DataType<std::__cxx11::basic_string >’
{ enum { value = DataType::type }; };
This is a fresh build and git from Nov 19, 2017. Can anyone help?
The text was updated successfully, but these errors were encountered: