Skip to content
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

How to compile? #1

Open
liubh0425 opened this issue Jul 4, 2020 · 7 comments
Open

How to compile? #1

liubh0425 opened this issue Jul 4, 2020 · 7 comments

Comments

@liubh0425
Copy link

Hello, I really appreciate your work.
But I reported an error during compilation, how should I solve it?

In file included from /usr/local/include/opencv2/core.hpp:56:0,
from /usr/local/include/opencv2/dnn/dnn.hpp:46,
from /usr/local/include/opencv2/dnn.hpp:62,
from /home/liubh/YOLO-DynaSLAM-master/src/yolo.cc:2:
/usr/local/include/opencv2/core/traits.hpp:226:18: error: previous definition of ‘class cv::DataType’
template<> class DataType
^
In file included from /home/liubh/YOLO-DynaSLAM-master/src/yolo.cc:3:0:
/usr/local/opencv2.4.11/include/opencv2/core/core.hpp:1106:18: error: redefinition of ‘class cv::DataType’
template<> class DataType
^
In file included from /usr/local/include/opencv2/core.hpp:56:0,
from /usr/local/include/opencv2/dnn/dnn.hpp:46,
from /usr/local/include/opencv2/dnn.hpp:62,
from /home/liubh/YOLO-DynaSLAM-master/src/yolo.cc:2:
/usr/local/include/opencv2/core/traits.hpp:241:18: error: previous definition of ‘class cv::DataType’
template<> class DataType
^
In file included from /home/liubh/YOLO-DynaSLAM-master/src/yolo.cc:3:0:
/usr/local/opencv2.4.11/include/opencv2/core/core.hpp:1118:44: error: redefinition of ‘class cv::DataType<cv::Matx<_Tp, m, n> >’
template<typename _Tp, int m, int n> class DataType<Matx<_Tp, m, n> >
^
In file included from /usr/local/include/opencv2/core.hpp:57:0,
from /usr/local/include/opencv2/dnn/dnn.hpp:46,
from /usr/local/include/opencv2/dnn.hpp:62,
from /home/liubh/YOLO-DynaSLAM-master/src/yolo.cc:2:
/usr/local/include/opencv2/core/matx.hpp:253:44: error: previous definition of ‘class cv::DataType<cv::Matx<_Tp, m, n> >’
template<typename _Tp, int m, int n> class DataType< Matx<_Tp, m, n> >
^
In file included from /home/liubh/YOLO-DynaSLAM-master/src/yolo.cc:3:0:
/usr/local/opencv2.4.11/include/opencv2/core/core.hpp:1130:38: error: redefinition of ‘class cv::DataType<cv::Vec<_Tp, m> >’
template<typename _Tp, int cn> class DataType<Vec<_Tp, cn> >
^
In file included from /usr/local/include/opencv2/core.hpp:57:0,
from /usr/local/include/opencv2/dnn/dnn.hpp:46,
from /usr/local/include/opencv2/dnn.hpp:62,
from /home/liubh/YOLO-DynaSLAM-master/src/yolo.cc:2:
/usr/local/include/opencv2/core/matx.hpp:416:38: error: previous definition of ‘class cv::DataType<cv::Vec<_Tp, m> >’
template<typename _Tp, int cn> class DataType< Vec<_Tp, cn> >
^
In file included from /home/liubh/YOLO-DynaSLAM-master/src/yolo.cc:3:0:
/usr/local/opencv2.4.11/include/opencv2/core/core.hpp:1142:30: error: redefinition of ‘class cv::DataType<std::complex<_Tp> >’
template class DataType<std::complex<_Tp> >
^
In file included from /usr/local/include/opencv2/core.hpp:3223:0,
from /usr/local/include/opencv2/dnn/dnn.hpp:46,
from /usr/local/include/opencv2/dnn.hpp:62,
from /home/liubh/YOLO-DynaSLAM-master/src/yolo.cc:2:
/usr/local/include/opencv2/core/cvstd.inl.hpp:60:30: error: previous definition of ‘class cv::DataType<std::complex<_Tp> >’
template class DataType< std::complex<_Tp> >
^
In file included from /home/liubh/YOLO-DynaSLAM-master/src/yolo.cc:3:0:
/usr/local/opencv2.4.11/include/opencv2/core/core.hpp:1154:30: error: redefinition of ‘class cv::DataType<cv::Complex<_Tp> >’
template class DataType<Complex<_Tp> >
^
In file included from /usr/local/include/opencv2/core.hpp:58:0,
from /usr/local/include/opencv2/dnn/dnn.hpp:46,
from /usr/local/include/opencv2/dnn.hpp:62,
from /home/liubh/YOLO-DynaSLAM-master/src/yolo.cc:2:
/usr/local/include/opencv2/core/types.hpp:93:30: error: previous definition of ‘class cv::DataType<cv::Complex<_Tp> >’
template class DataType< Complex<Tp> >
^
In file included from /home/liubh/YOLO-DynaSLAM-master/src/yolo.cc:3:0:
/usr/local/opencv2.4.11/include/opencv2/core/core.hpp:1166:30: error: redefinition of ‘class cv::DataType<cv::Point
<Tp> >’
template class DataType<Point
<Tp> >
^
In file included from /usr/local/include/opencv2/core.hpp:58:0,
from /usr/local/include/opencv2/dnn/dnn.hpp:46,
from /usr/local/include/opencv2/dnn.hpp:62,
from /home/liubh/YOLO-DynaSLAM-master/src/yolo.cc:2:
/usr/local/include/opencv2/core/types.hpp:185:30: error: previous definition of ‘class cv::DataType<cv::Point
<Tp> >’
template class DataType< Point
<Tp> >
^
In file included from /home/liubh/YOLO-DynaSLAM-master/src/yolo.cc:3:0:
/usr/local/opencv2.4.11/include/opencv2/core/core.hpp:1178:30: error: redefinition of ‘class cv::DataType<cv::Point3
<Tp> >’
template class DataType<Point3
<Tp> >
^
In file included from /usr/local/include/opencv2/core.hpp:58:0,
from /usr/local/include/opencv2/dnn/dnn.hpp:46,
from /usr/local/include/opencv2/dnn.hpp:62,
from /home/liubh/YOLO-DynaSLAM-master/src/yolo.cc:2:
/usr/local/include/opencv2/core/types.hpp:256:30: error: previous definition of ‘class cv::DataType<cv::Point3
<Tp> >’
template class DataType< Point3
<Tp> >
^
In file included from /home/liubh/YOLO-DynaSLAM-master/src/yolo.cc:3:0:
/usr/local/opencv2.4.11/include/opencv2/core/core.hpp:1190:30: error: redefinition of ‘class cv::DataType<cv::Size
<Tp> >’
template class DataType<Size
<Tp> >
^
In file included from /usr/local/include/opencv2/core.hpp:58:0,
from /usr/local/include/opencv2/dnn/dnn.hpp:46,
from /usr/local/include/opencv2/dnn.hpp:62,
from /home/liubh/YOLO-DynaSLAM-master/src/yolo.cc:2:
/usr/local/include/opencv2/core/types.hpp:319:30: error: previous definition of ‘class cv::DataType<cv::Size
<Tp> >’
template class DataType< Size
<_Tp> >

@KaninchenM
Copy link

I've meet the same error. Have you fix it?

@liubh0425
Copy link
Author

I've meet the same error. Have you fix it?

no.......

@KaninchenM
Copy link

I've meet the same error. Have you fix it?

no.......

Don't know which version of opencv the author used. I've completely compiled the Dynaslam(bescos, here), but when I compile this, many errors appear. They are almost all related to opencv.
So which version of opencv should I use? I've not found the author's email to connect.

@bijustin
Copy link
Owner

bijustin commented Aug 3, 2020

Hi all, unfortunately I primarily worked on the other repository of this project. @ilnehc has done the majority of the work on the project, so he would be your best resource. Thanks for your interest in the project!

@KaninchenM
Copy link

Hi all, unfortunately I primarily worked on the other repository of this project. @ilnehc has done the majority of the work on the project, so he would be your best resource. Thanks for your interest in the project!

But he haven't open issue...

@KaninchenM
Copy link

Hi all, unfortunately I primarily worked on the other repository of this project. @ilnehc has done the majority of the work on the project, so he would be your best resource. Thanks for your interest in the project!

Hi all, unfortunately I primarily worked on the other repository of this project. @ilnehc has done the majority of the work on the project, so he would be your best resource. Thanks for your interest in the project!

Could you please tell me which version of opencv did you use? Yolo seems used opencv/dnn.hpp. So you used opencv3.x?

@ilnehc
Copy link
Collaborator

ilnehc commented Aug 18, 2020

Sorry for the late reply. This is the first time I have issues on Github, that I didn't pay some attention to these messages. I believe my opencv version is 3.4.4. Hope this can help you guys.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants