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

C++ Ubuntu version make error on jetson xavier nx #1

Closed
ye0571 opened this issue Jun 27, 2020 · 2 comments
Closed

C++ Ubuntu version make error on jetson xavier nx #1

ye0571 opened this issue Jun 27, 2020 · 2 comments

Comments

@ye0571
Copy link

ye0571 commented Jun 27, 2020

Hi,

I encounter make error on jetson xavier nx

ros-yolov3-sort/SORT/cpp_ubuntu/build$ cmake .. && make
......

[ 80%] Building CXX object CMakeFiles/sort_cpp_node.dir/src/main.cpp.o
/home/nxm/ros-yolov3-sort/SORT/cpp_ubuntu/src/main.cpp: In function ‘void TestSORT(std::__cxx11::string, bool)’:
/home/nxm/ros-yolov3-sort/SORT/cpp_ubuntu/src/main.cpp:389:41: error: ‘CV_WINDOW_NORMAL’ was not declared in this scope
cv::namedWindow("SORT-C++", CV_WINDOW_NORMAL);
^~~~~~~~~~~~~~~~
CMakeFiles/sort_cpp_node.dir/build.make:62: recipe for target 'CMakeFiles/sort_cpp_node.dir/src/main.cpp.o' failed
make[2]: *** [CMakeFiles/sort_cpp_node.dir/src/main.cpp.o] Error 1
CMakeFiles/Makefile2:104: recipe for target 'CMakeFiles/sort_cpp_node.dir/all' failed
make[1]: *** [CMakeFiles/sort_cpp_node.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

It seems CV_WINDOW_NORMAL not deifned, where should I add the define?

@ye0571
Copy link
Author

ye0571 commented Jun 27, 2020

compile OK after modified CV_WINDOW_NORMAL as WINDOW_NORMAL

@ye0571 ye0571 closed this as completed Jun 27, 2020
@engcang
Copy link
Owner

engcang commented Jun 27, 2020

compile OK after modified CV_WINDOW_NORMAL as WINDOW_NORMAL

Good to hear that you successfully made it!
Thanks a lot man!

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

2 participants