Closed kaisark closed 3 years ago
Hum.. can you check whether prefixing line
in src/head_pose_estimation.cpp
l175 with cv::
(ie cv::line
) fix your issue?
I made the change to fully qualify the (cv) line call. Now, I ran into a nasty linking error with dlib (built from source). I attached the dlib build log - everything looks good. I did run into some deprecated dlib warnings with the gazr CMakelists.txt file. I thought I saw a thread on dlib on how to best link dlib apps going forward - ((https://github.com/davisking/dlib/issues/395))
Another related thread with gazr: gazr dlib issue 1073
Not sure if the gazr build documentation and CMakeLists.txt should be updated to reflect Davis King's latest dlib app linking instructions. Thoughts???
nvidia@tegra-ubuntu:~/cviz/gazr/build$ make install
[ 14%] Built target estimate_focus
[ 21%] Linking CXX shared library devel/lib/libgazr.so
/usr/bin/ld: /usr/local/lib/libdlib.a(base64_kernel_1.cpp.o): relocation R_AARCH64_ADR_PREL_PG_HI21 against external symbol __stack_chk_guard@@GLIBC_2.17' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/lib/libdlib.a(base64_kernel_1.cpp.o)(.text+0x490): unresolvable R_AARCH64_ADR_PREL_PG_HI21 relocation against symbol
__stack_chk_guard@@GLIBC_2.17'
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
CMakeFiles/gazr.dir/build.make:121: recipe for target 'devel/lib/libgazr.so' failed
make[2]: [devel/lib/libgazr.so] Error 1
CMakeFiles/Makefile2:1047: recipe for target 'CMakeFiles/gazr.dir/all' failed
make[1]: [CMakeFiles/gazr.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
I made the change to fully qualify the (cv) line call. Now, I ran into a nasty linking error with dlib (built from source). I attached the dlib build log - everything looks good. I did run into some deprecated dlib warnings with the gazr CMakelists.txt file. I thought I saw a thread on dlib on how to best link dlib apps going forward - ((davisking/dlib#395))
Another related thread with gazr: gazr dlib issue 1073
Not sure if the gazr build documentation and CMakeLists.txt should be updated to reflect Davis King's latest dlib app linking instructions. Thoughts???
nvidia@tegra-ubuntu:~/cviz/gazr/build$ make install [ 14%] Built target estimate_focus [ 21%] Linking CXX shared library devel/lib/libgazr.so /usr/bin/ld: /usr/local/lib/libdlib.a(base64_kernel_1.cpp.o): relocation R_AARCH64_ADR_PREL_PG_HI21 against external symbol
__stack_chk_guard@@GLIBC_2.17' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/lib/libdlib.a(base64_kernel_1.cpp.o)(.text+0x490): unresolvable R_AARCH64_ADR_PREL_PG_HI21 relocation against symbol
__stack_chk_guard@@GLIBC_2.17' /usr/bin/ld: final link failed: Bad value collect2: error: ld returned 1 exit status CMakeFiles/gazr.dir/build.make:121: recipe for target 'devel/lib/libgazr.so' failed make[2]: [devel/lib/libgazr.so] Error 1 CMakeFiles/Makefile2:1047: recipe for target 'CMakeFiles/gazr.dir/all' failed make[1]: [CMakeFiles/gazr.dir/all] Error 2 Makefile:138: recipe for target 'all' failed make: *** [all] Error 2
I had the same problem with the ambiguous "line" and solved it by adding cv:: in front of the calls for line. Now I have the same problem as mentioned by Kaisark, did you find how to solve it?
Thanks !
Can no reproduce the issue with current version of the code + OpenCV4. Closing this issue. Please re-open if needed.
Running into compile issues around opencv syntax in source (please see below):
Error example: "/home/nvidia/cviz/gazr/src/head_pose_estimation.cpp:178:13: error: reference to 'line' is ambiguous line(result, feature_points[i], feature_points[i-1], line_color, 2, CV_AA);"
nvidia@tegra-ubuntu:~/cviz/gazr/build$ cmake -DWITH_TOOLS=TRUE .. -- The C compiler identification is GNU 5.4.0 -- The CXX compiler identification is GNU 5.4.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done CMake Warning at /usr/local/lib/cmake/dlib/dlibConfig.cmake:42 (message): The variable 'dlib_INCLUDE_DIRS' is deprecated! Instead, simply use target_link_libraries(your_app dlib::dlib). See http://dlib.net/examples/CMakeLists.txt.html for an example. Call Stack (most recent call first): CMakeLists.txt:9999 (__deprecated_var)
-- Using CATKIN_DEVEL_PREFIX: /home/nvidia/cviz/gazr/build/devel -- Using CMAKE_PREFIX_PATH: /home/nvidia/jetsonbot/devel;/opt/ros/kinetic -- This workspace overlays: /home/nvidia/jetsonbot/devel;/opt/ros/kinetic -- Found PythonInterp: /usr/bin/python (found version "2.7.12") -- Using PYTHON_EXECUTABLE: /usr/bin/python -- Using Debian Python package layout -- Using empy: /usr/bin/empy -- Using CATKIN_ENABLE_TESTING: ON -- Call enable_testing() -- Using CATKIN_TEST_RESULTS_DIR: /home/nvidia/cviz/gazr/build/test_results -- Looking for pthread.h -- Looking for pthread.h - found -- Looking for pthread_create -- Looking for pthread_create - not found -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE
-- Found gtest sources under '/usr/src/gtest': gtests will be built -- Using Python nosetests: /usr/bin/nosetests-2.7 -- catkin 0.7.6 -- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy -- Found OpenCV: /opt/ros/kinetic (found version "3.3.1") found components: core imgproc calib3d -- OpenCV version: 3.3.1 CMake Warning at /usr/local/lib/cmake/dlib/dlibConfig.cmake:42 (message): The variable 'dlib_LIBRARIES' is deprecated! Instead, simply use target_link_libraries(your_app dlib::dlib). See http://dlib.net/examples/CMakeLists.txt.html for an example. Call Stack (most recent call first): CMakeLists.txt:9999 (__deprecated_var)
-- Found OpenCV: /opt/ros/kinetic (found version "3.3.1") found components: core imgproc calib3d highgui imgcodecs videoio -- Boost version: 1.60.0 -- Found the following Boost libraries: -- program_options -- Configuring done -- Generating done -- Build files have been written to: /home/nvidia/cviz/gazr/build
nvidia@tegra-ubuntu:~/cviz/gazr/build$ make > >&, cv::Mat&) const':
/home/nvidia/cviz/gazr/src/head_pose_estimation.cpp:175:13: error: reference to 'line' is ambiguous
line(result, feature_points[i], feature_points[i-1], line_color, 2, CV_AA);
^
In file included from /usr/local/include/opencv2/imgproc/imgproc.hpp:48:0,
from /home/nvidia/cviz/gazr/src/head_pose_estimation.cpp:5:
/usr/local/include/opencv2/imgproc.hpp:4182:19: note: candidates are: void cv::line(cv::InputOutputArray, cv::Point, cv::Point, const Scalar&, int, int, int)
CV_EXPORTS_W void line(InputOutputArray img, Point pt1, Point pt2, const Scalar& color,
^
In file included from /usr/local/include/dlib/geometry.h:11:0,
from /usr/local/include/dlib/optimization/max_sum_submatrix.h:10,
from /usr/local/include/dlib/optimization.h:15,
from /usr/local/include/dlib/statistics/vector_normalizer_frobmetric.h:8,
from /usr/local/include/dlib/statistics.h:13,
from /usr/local/include/dlib/image_transforms/assign_image.h:8,
from /usr/local/include/dlib/image_transforms/spatial_filtering.h:15,
from /usr/local/include/dlib/image_processing/scan_image.h:13,
from /usr/local/include/dlib/image_processing.h:11,
from /home/nvidia/cviz/gazr/src/head_pose_estimation.hpp:6,
from /home/nvidia/cviz/gazr/src/head_pose_estimation.cpp:11:
/usr/local/include/dlib/geometry/line.h:15:11: note: class dlib::line
class line
^
/home/nvidia/cviz/gazr/src/head_pose_estimation.cpp:178:13: error: reference to 'line' is ambiguous
line(result, feature_points[i], feature_points[i-1], line_color, 2, CV_AA);
^
In file included from /usr/local/include/opencv2/imgproc/imgproc.hpp:48:0,
from /home/nvidia/cviz/gazr/src/head_pose_estimation.cpp:5:
/usr/local/include/opencv2/imgproc.hpp:4182:19: note: candidates are: void cv::line(cv::InputOutputArray, cv::Point, cv::Point, const Scalar&, int, int, int)
CV_EXPORTS_W void line(InputOutputArray img, Point pt1, Point pt2, const Scalar& color,
^
In file included from /usr/local/include/dlib/geometry.h:11:0,
from /usr/local/include/dlib/optimization/max_sum_submatrix.h:10,
from /usr/local/include/dlib/optimization.h:15,
from /usr/local/include/dlib/statistics/vector_normalizer_frobmetric.h:8,
from /usr/local/include/dlib/statistics.h:13,
from /usr/local/include/dlib/image_transforms/assign_image.h:8,
from /usr/local/include/dlib/image_transforms/spatial_filtering.h:15,
from /usr/local/include/dlib/image_processing/scan_image.h:13,
from /usr/local/include/dlib/image_processing.h:11,
from /home/nvidia/cviz/gazr/src/head_pose_estimation.hpp:6,
from /home/nvidia/cviz/gazr/src/head_pose_estimation.cpp:11:
/usr/local/include/dlib/geometry/line.h:15:11: note: class dlib::line
class line
^
/home/nvidia/cviz/gazr/src/head_pose_estimation.cpp:181:13: error: reference to 'line' is ambiguous
line(result, feature_points[i], feature_points[i-1], line_color, 2, CV_AA);
^
In file included from /usr/local/include/opencv2/imgproc/imgproc.hpp:48:0,
from /home/nvidia/cviz/gazr/src/head_pose_estimation.cpp:5:
/usr/local/include/opencv2/imgproc.hpp:4182:19: note: candidates are: void cv::line(cv::InputOutputArray, cv::Point, cv::Point, const Scalar&, int, int, int)
CV_EXPORTS_W void line(InputOutputArray img, Point pt1, Point pt2, const Scalar& color,
^
In file included from /usr/local/include/dlib/geometry.h:11:0,
from /usr/local/include/dlib/optimization/max_sum_submatrix.h:10,
from /usr/local/include/dlib/optimization.h:15,
from /usr/local/include/dlib/statistics/vector_normalizer_frobmetric.h:8,
from /usr/local/include/dlib/statistics.h:13,
from /usr/local/include/dlib/image_transforms/assign_image.h:8,
from /usr/local/include/dlib/image_transforms/spatial_filtering.h:15,
from /usr/local/include/dlib/image_processing/scan_image.h:13,
from /usr/local/include/dlib/image_processing.h:11,
from /home/nvidia/cviz/gazr/src/head_pose_estimation.hpp:6,
from /home/nvidia/cviz/gazr/src/head_pose_estimation.cpp:11:
/usr/local/include/dlib/geometry/line.h:15:11: note: class dlib::line
class line
^
/home/nvidia/cviz/gazr/src/head_pose_estimation.cpp:183:13: error: reference to 'line' is ambiguous
line(result, feature_points[i], feature_points[i-1], line_color, 2, CV_AA);
^
In file included from /usr/local/include/opencv2/imgproc/imgproc.hpp:48:0,
from /home/nvidia/cviz/gazr/src/head_pose_estimation.cpp:5:
/usr/local/include/opencv2/imgproc.hpp:4182:19: note: candidates are: void cv::line(cv::InputOutputArray, cv::Point, cv::Point, const Scalar&, int, int, int)
CV_EXPORTS_W void line(InputOutputArray img, Point pt1, Point pt2, const Scalar& color,
^
In file included from /usr/local/include/dlib/geometry.h:11:0,
from /usr/local/include/dlib/optimization/max_sum_submatrix.h:10,
from /usr/local/include/dlib/optimization.h:15,
from /usr/local/include/dlib/statistics/vector_normalizer_frobmetric.h:8,
from /usr/local/include/dlib/statistics.h:13,
from /usr/local/include/dlib/image_transforms/assign_image.h:8,
from /usr/local/include/dlib/image_transforms/spatial_filtering.h:15,
from /usr/local/include/dlib/image_processing/scan_image.h:13,
from /usr/local/include/dlib/image_processing.h:11,
from /home/nvidia/cviz/gazr/src/head_pose_estimation.hpp:6,
from /home/nvidia/cviz/gazr/src/head_pose_estimation.cpp:11:
/usr/local/include/dlib/geometry/line.h:15:11: note: class dlib::line
class line
^
/home/nvidia/cviz/gazr/src/head_pose_estimation.cpp:185:13: error: reference to 'line' is ambiguous
line(result, feature_points[i], feature_points[i-1], line_color, 2, CV_AA);
^
In file included from /usr/local/include/opencv2/imgproc/imgproc.hpp:48:0,
from /home/nvidia/cviz/gazr/src/head_pose_estimation.cpp:5:
/usr/local/include/opencv2/imgproc.hpp:4182:19: note: candidates are: void cv::line(cv::InputOutputArray, cv::Point, cv::Point, const Scalar&, int, int, int)
CV_EXPORTS_W void line(InputOutputArray img, Point pt1, Point pt2, const Scalar& color,
^
In file included from /usr/local/include/dlib/geometry.h:11:0,
from /usr/local/include/dlib/optimization/max_sum_submatrix.h:10,
from /usr/local/include/dlib/optimization.h:15,
from /usr/local/include/dlib/statistics/vector_normalizer_frobmetric.h:8,
from /usr/local/include/dlib/statistics.h:13,
from /usr/local/include/dlib/image_transforms/assign_image.h:8,
from /usr/local/include/dlib/image_transforms/spatial_filtering.h:15,
from /usr/local/include/dlib/image_processing/scan_image.h:13,
from /usr/local/include/dlib/image_processing.h:11,
from /home/nvidia/cviz/gazr/src/head_pose_estimation.hpp:6,
from /home/nvidia/cviz/gazr/src/head_pose_estimation.cpp:11:
/usr/local/include/dlib/geometry/line.h:15:11: note: class dlib::line
class line
^
/home/nvidia/cviz/gazr/src/head_pose_estimation.cpp:186:9: error: reference to 'line' is ambiguous
line(result, feature_points[30], feature_points[35], line_color, 2, CV_AA);
^
In file included from /usr/local/include/opencv2/imgproc/imgproc.hpp:48:0,
from /home/nvidia/cviz/gazr/src/head_pose_estimation.cpp:5:
/usr/local/include/opencv2/imgproc.hpp:4182:19: note: candidates are: void cv::line(cv::InputOutputArray, cv::Point, cv::Point, const Scalar&, int, int, int)
CV_EXPORTS_W void line(InputOutputArray img, Point pt1, Point pt2, const Scalar& color,
^
In file included from /usr/local/include/dlib/geometry.h:11:0,
from /usr/local/include/dlib/optimization/max_sum_submatrix.h:10,
from /usr/local/include/dlib/optimization.h:15,
from /usr/local/include/dlib/statistics/vector_normalizer_frobmetric.h:8,
from /usr/local/include/dlib/statistics.h:13,
from /usr/local/include/dlib/image_transforms/assign_image.h:8,
from /usr/local/include/dlib/image_transforms/spatial_filtering.h:15,
from /usr/local/include/dlib/image_processing/scan_image.h:13,
from /usr/local/include/dlib/image_processing.h:11,
from /home/nvidia/cviz/gazr/src/head_pose_estimation.hpp:6,
from /home/nvidia/cviz/gazr/src/head_pose_estimation.cpp:11:
/usr/local/include/dlib/geometry/line.h:15:11: note: class dlib::line
class line
^
/home/nvidia/cviz/gazr/src/head_pose_estimation.cpp:189:13: error: reference to 'line' is ambiguous
line(result, feature_points[i], feature_points[i-1], line_color, 2, CV_AA);
^
In file included from /usr/local/include/opencv2/imgproc/imgproc.hpp:48:0,
from /home/nvidia/cviz/gazr/src/head_pose_estimation.cpp:5:
/usr/local/include/opencv2/imgproc.hpp:4182:19: note: candidates are: void cv::line(cv::InputOutputArray, cv::Point, cv::Point, const Scalar&, int, int, int)
CV_EXPORTS_W void line(InputOutputArray img, Point pt1, Point pt2, const Scalar& color,
^
In file included from /usr/local/include/dlib/geometry.h:11:0,
from /usr/local/include/dlib/optimization/max_sum_submatrix.h:10,
from /usr/local/include/dlib/optimization.h:15,
from /usr/local/include/dlib/statistics/vector_normalizer_frobmetric.h:8,
from /usr/local/include/dlib/statistics.h:13,
from /usr/local/include/dlib/image_transforms/assign_image.h:8,
from /usr/local/include/dlib/image_transforms/spatial_filtering.h:15,
from /usr/local/include/dlib/image_processing/scan_image.h:13,
from /usr/local/include/dlib/image_processing.h:11,
from /home/nvidia/cviz/gazr/src/head_pose_estimation.hpp:6,
from /home/nvidia/cviz/gazr/src/head_pose_estimation.cpp:11:
/usr/local/include/dlib/geometry/line.h:15:11: note: class dlib::line
class line
^
/home/nvidia/cviz/gazr/src/head_pose_estimation.cpp:190:9: error: reference to 'line' is ambiguous
line(result, feature_points[36], feature_points[41], line_color, 2, CV_AA);
^
In file included from /usr/local/include/opencv2/imgproc/imgproc.hpp:48:0,
from /home/nvidia/cviz/gazr/src/head_pose_estimation.cpp:5:
/usr/local/include/opencv2/imgproc.hpp:4182:19: note: candidates are: void cv::line(cv::InputOutputArray, cv::Point, cv::Point, const Scalar&, int, int, int)
CV_EXPORTS_W void line(InputOutputArray img, Point pt1, Point pt2, const Scalar& color,
^
In file included from /usr/local/include/dlib/geometry.h:11:0,
from /usr/local/include/dlib/optimization/max_sum_submatrix.h:10,
from /usr/local/include/dlib/optimization.h:15,
from /usr/local/include/dlib/statistics/vector_normalizer_frobmetric.h:8,
from /usr/local/include/dlib/statistics.h:13,
from /usr/local/include/dlib/image_transforms/assign_image.h:8,
from /usr/local/include/dlib/image_transforms/spatial_filtering.h:15,
from /usr/local/include/dlib/image_processing/scan_image.h:13,
from /usr/local/include/dlib/image_processing.h:11,
from /home/nvidia/cviz/gazr/src/head_pose_estimation.hpp:6,
from /home/nvidia/cviz/gazr/src/head_pose_estimation.cpp:11:
/usr/local/include/dlib/geometry/line.h:15:11: note: class dlib::line
class line
^
/home/nvidia/cviz/gazr/src/head_pose_estimation.cpp:193:13: error: reference to 'line' is ambiguous
line(result, feature_points[i], feature_points[i-1], line_color, 2, CV_AA);
^
In file included from /usr/local/include/opencv2/imgproc/imgproc.hpp:48:0,
from /home/nvidia/cviz/gazr/src/head_pose_estimation.cpp:5:
/usr/local/include/opencv2/imgproc.hpp:4182:19: note: candidates are: void cv::line(cv::InputOutputArray, cv::Point, cv::Point, const Scalar&, int, int, int)
CV_EXPORTS_W void line(InputOutputArray img, Point pt1, Point pt2, const Scalar& color,
^
In file included from /usr/local/include/dlib/geometry.h:11:0,
from /usr/local/include/dlib/optimization/max_sum_submatrix.h:10,
from /usr/local/include/dlib/optimization.h:15,
from /usr/local/include/dlib/statistics/vector_normalizer_frobmetric.h:8,
from /usr/local/include/dlib/statistics.h:13,
from /usr/local/include/dlib/image_transforms/assign_image.h:8,
from /usr/local/include/dlib/image_transforms/spatial_filtering.h:15,
from /usr/local/include/dlib/image_processing/scan_image.h:13,
from /usr/local/include/dlib/image_processing.h:11,
from /home/nvidia/cviz/gazr/src/head_pose_estimation.hpp:6,
from /home/nvidia/cviz/gazr/src/head_pose_estimation.cpp:11:
/usr/local/include/dlib/geometry/line.h:15:11: note: class dlib::line
class line
^
/home/nvidia/cviz/gazr/src/head_pose_estimation.cpp:194:9: error: reference to 'line' is ambiguous
line(result, feature_points[42], feature_points[47], line_color, 2, CV_AA);
^
In file included from /usr/local/include/opencv2/imgproc/imgproc.hpp:48:0,
from /home/nvidia/cviz/gazr/src/head_pose_estimation.cpp:5:
/usr/local/include/opencv2/imgproc.hpp:4182:19: note: candidates are: void cv::line(cv::InputOutputArray, cv::Point, cv::Point, const Scalar&, int, int, int)
CV_EXPORTS_W void line(InputOutputArray img, Point pt1, Point pt2, const Scalar& color,
^
In file included from /usr/local/include/dlib/geometry.h:11:0,
from /usr/local/include/dlib/optimization/max_sum_submatrix.h:10,
from /usr/local/include/dlib/optimization.h:15,
from /usr/local/include/dlib/statistics/vector_normalizer_frobmetric.h:8,
from /usr/local/include/dlib/statistics.h:13,
from /usr/local/include/dlib/image_transforms/assign_image.h:8,
from /usr/local/include/dlib/image_transforms/spatial_filtering.h:15,
from /usr/local/include/dlib/image_processing/scan_image.h:13,
from /usr/local/include/dlib/image_processing.h:11,
from /home/nvidia/cviz/gazr/src/head_pose_estimation.hpp:6,
from /home/nvidia/cviz/gazr/src/head_pose_estimation.cpp:11:
/usr/local/include/dlib/geometry/line.h:15:11: note: class dlib::line
class line
^
/home/nvidia/cviz/gazr/src/head_pose_estimation.cpp:197:13: error: reference to 'line' is ambiguous
line(result, feature_points[i], feature_points[i-1], line_color, 2, CV_AA);
^
In file included from /usr/local/include/opencv2/imgproc/imgproc.hpp:48:0,
from /home/nvidia/cviz/gazr/src/head_pose_estimation.cpp:5:
/usr/local/include/opencv2/imgproc.hpp:4182:19: note: candidates are: void cv::line(cv::InputOutputArray, cv::Point, cv::Point, const Scalar&, int, int, int)
CV_EXPORTS_W void line(InputOutputArray img, Point pt1, Point pt2, const Scalar& color,
^
In file included from /usr/local/include/dlib/geometry.h:11:0,
from /usr/local/include/dlib/optimization/max_sum_submatrix.h:10,
from /usr/local/include/dlib/optimization.h:15,
from /usr/local/include/dlib/statistics/vector_normalizer_frobmetric.h:8,
from /usr/local/include/dlib/statistics.h:13,
from /usr/local/include/dlib/image_transforms/assign_image.h:8,
from /usr/local/include/dlib/image_transforms/spatial_filtering.h:15,
from /usr/local/include/dlib/image_processing/scan_image.h:13,
from /usr/local/include/dlib/image_processing.h:11,
from /home/nvidia/cviz/gazr/src/head_pose_estimation.hpp:6,
from /home/nvidia/cviz/gazr/src/head_pose_estimation.cpp:11:
/usr/local/include/dlib/geometry/line.h:15:11: note: class dlib::line
class line
^
/home/nvidia/cviz/gazr/src/head_pose_estimation.cpp:198:9: error: reference to 'line' is ambiguous
line(result, feature_points[48], feature_points[59], line_color, 2, CV_AA);
^
In file included from /usr/local/include/opencv2/imgproc/imgproc.hpp:48:0,
from /home/nvidia/cviz/gazr/src/head_pose_estimation.cpp:5:
/usr/local/include/opencv2/imgproc.hpp:4182:19: note: candidates are: void cv::line(cv::InputOutputArray, cv::Point, cv::Point, const Scalar&, int, int, int)
CV_EXPORTS_W void line(InputOutputArray img, Point pt1, Point pt2, const Scalar& color,
^
In file included from /usr/local/include/dlib/geometry.h:11:0,
from /usr/local/include/dlib/optimization/max_sum_submatrix.h:10,
from /usr/local/include/dlib/optimization.h:15,
from /usr/local/include/dlib/statistics/vector_normalizer_frobmetric.h:8,
from /usr/local/include/dlib/statistics.h:13,
from /usr/local/include/dlib/image_transforms/assign_image.h:8,
from /usr/local/include/dlib/image_transforms/spatial_filtering.h:15,
from /usr/local/include/dlib/image_processing/scan_image.h:13,
from /usr/local/include/dlib/image_processing.h:11,
from /home/nvidia/cviz/gazr/src/head_pose_estimation.hpp:6,
from /home/nvidia/cviz/gazr/src/head_pose_estimation.cpp:11:
/usr/local/include/dlib/geometry/line.h:15:11: note: class dlib::line
class line
^
/home/nvidia/cviz/gazr/src/head_pose_estimation.cpp:201:13: error: reference to 'line' is ambiguous
line(result, feature_points[i], feature_points[i-1], line_color, 2, CV_AA);
^
In file included from /usr/local/include/opencv2/imgproc/imgproc.hpp:48:0,
from /home/nvidia/cviz/gazr/src/head_pose_estimation.cpp:5:
/usr/local/include/opencv2/imgproc.hpp:4182:19: note: candidates are: void cv::line(cv::InputOutputArray, cv::Point, cv::Point, const Scalar&, int, int, int)
CV_EXPORTS_W void line(InputOutputArray img, Point pt1, Point pt2, const Scalar& color,
^
In file included from /usr/local/include/dlib/geometry.h:11:0,
from /usr/local/include/dlib/optimization/max_sum_submatrix.h:10,
from /usr/local/include/dlib/optimization.h:15,
from /usr/local/include/dlib/statistics/vector_normalizer_frobmetric.h:8,
from /usr/local/include/dlib/statistics.h:13,
from /usr/local/include/dlib/image_transforms/assign_image.h:8,
from /usr/local/include/dlib/image_transforms/spatial_filtering.h:15,
from /usr/local/include/dlib/image_processing/scan_image.h:13,
from /usr/local/include/dlib/image_processing.h:11,
from /home/nvidia/cviz/gazr/src/head_pose_estimation.hpp:6,
from /home/nvidia/cviz/gazr/src/head_pose_estimation.cpp:11:
/usr/local/include/dlib/geometry/line.h:15:11: note: class dlib::line
class line
^
/home/nvidia/cviz/gazr/src/head_pose_estimation.cpp:202:9: error: reference to 'line' is ambiguous
line(result, feature_points[60], feature_points[67], line_color, 2, CV_AA);
^
In file included from /usr/local/include/opencv2/imgproc/imgproc.hpp:48:0,
from /home/nvidia/cviz/gazr/src/head_pose_estimation.cpp:5:
/usr/local/include/opencv2/imgproc.hpp:4182:19: note: candidates are: void cv::line(cv::InputOutputArray, cv::Point, cv::Point, const Scalar&, int, int, int)
CV_EXPORTS_W void line(InputOutputArray img, Point pt1, Point pt2, const Scalar& color,
^
In file included from /usr/local/include/dlib/geometry.h:11:0,
from /usr/local/include/dlib/optimization/max_sum_submatrix.h:10,
from /usr/local/include/dlib/optimization.h:15,
from /usr/local/include/dlib/statistics/vector_normalizer_frobmetric.h:8,
from /usr/local/include/dlib/statistics.h:13,
from /usr/local/include/dlib/image_transforms/assign_image.h:8,
from /usr/local/include/dlib/image_transforms/spatial_filtering.h:15,
from /usr/local/include/dlib/image_processing/scan_image.h:13,
from /usr/local/include/dlib/image_processing.h:11,
from /home/nvidia/cviz/gazr/src/head_pose_estimation.hpp:6,
from /home/nvidia/cviz/gazr/src/head_pose_estimation.cpp:11:
/usr/local/include/dlib/geometry/line.h:15:11: note: class dlib::line
class line
^
/home/nvidia/cviz/gazr/src/head_pose_estimation.cpp: In member function 'void HeadPoseEstimation::drawPose(const head_pose&, size_t, cv::Mat&) const':
/home/nvidia/cviz/gazr/src/head_pose_estimation.cpp:254:5: error: reference to 'line' is ambiguous
line(result, projected_axes[0], projected_axes[3], x_axis_color,2,CV_AA);
^
In file included from /usr/local/include/opencv2/imgproc/imgproc.hpp:48:0,
from /home/nvidia/cviz/gazr/src/head_pose_estimation.cpp:5:
/usr/local/include/opencv2/imgproc.hpp:4182:19: note: candidates are: void cv::line(cv::InputOutputArray, cv::Point, cv::Point, const Scalar&, int, int, int)
CV_EXPORTS_W void line(InputOutputArray img, Point pt1, Point pt2, const Scalar& color,
^
In file included from /usr/local/include/dlib/geometry.h:11:0,
from /usr/local/include/dlib/optimization/max_sum_submatrix.h:10,
from /usr/local/include/dlib/optimization.h:15,
from /usr/local/include/dlib/statistics/vector_normalizer_frobmetric.h:8,
from /usr/local/include/dlib/statistics.h:13,
from /usr/local/include/dlib/image_transforms/assign_image.h:8,
from /usr/local/include/dlib/image_transforms/spatial_filtering.h:15,
from /usr/local/include/dlib/image_processing/scan_image.h:13,
from /usr/local/include/dlib/image_processing.h:11,
from /home/nvidia/cviz/gazr/src/head_pose_estimation.hpp:6,
from /home/nvidia/cviz/gazr/src/head_pose_estimation.cpp:11:
/usr/local/include/dlib/geometry/line.h:15:11: note: class dlib::line
class line
^
/home/nvidia/cviz/gazr/src/head_pose_estimation.cpp:255:5: error: reference to 'line' is ambiguous
line(result, projected_axes[0], projected_axes[2], y_axis_color,2,CV_AA);
^
In file included from /usr/local/include/opencv2/imgproc/imgproc.hpp:48:0,
from /home/nvidia/cviz/gazr/src/head_pose_estimation.cpp:5:
/usr/local/include/opencv2/imgproc.hpp:4182:19: note: candidates are: void cv::line(cv::InputOutputArray, cv::Point, cv::Point, const Scalar&, int, int, int)
CV_EXPORTS_W void line(InputOutputArray img, Point pt1, Point pt2, const Scalar& color,
^
In file included from /usr/local/include/dlib/geometry.h:11:0,
from /usr/local/include/dlib/optimization/max_sum_submatrix.h:10,
from /usr/local/include/dlib/optimization.h:15,
from /usr/local/include/dlib/statistics/vector_normalizer_frobmetric.h:8,
from /usr/local/include/dlib/statistics.h:13,
from /usr/local/include/dlib/image_transforms/assign_image.h:8,
from /usr/local/include/dlib/image_transforms/spatial_filtering.h:15,
from /usr/local/include/dlib/image_processing/scan_image.h:13,
from /usr/local/include/dlib/image_processing.h:11,
from /home/nvidia/cviz/gazr/src/head_pose_estimation.hpp:6,
from /home/nvidia/cviz/gazr/src/head_pose_estimation.cpp:11:
/usr/local/include/dlib/geometry/line.h:15:11: note: class dlib::line
class line
^
/home/nvidia/cviz/gazr/src/head_pose_estimation.cpp:256:5: error: reference to 'line' is ambiguous
line(result, projected_axes[0], projected_axes[1], z_axis_color,2,CV_AA);
^
In file included from /usr/local/include/opencv2/imgproc/imgproc.hpp:48:0,
from /home/nvidia/cviz/gazr/src/head_pose_estimation.cpp:5:
/usr/local/include/opencv2/imgproc.hpp:4182:19: note: candidates are: void cv::line(cv::InputOutputArray, cv::Point, cv::Point, const Scalar&, int, int, int)
CV_EXPORTS_W void line(InputOutputArray img, Point pt1, Point pt2, const Scalar& color,
^
In file included from /usr/local/include/dlib/geometry.h:11:0,
from /usr/local/include/dlib/optimization/max_sum_submatrix.h:10,
from /usr/local/include/dlib/optimization.h:15,
from /usr/local/include/dlib/statistics/vector_normalizer_frobmetric.h:8,
from /usr/local/include/dlib/statistics.h:13,
from /usr/local/include/dlib/image_transforms/assign_image.h:8,
from /usr/local/include/dlib/image_transforms/spatial_filtering.h:15,
from /usr/local/include/dlib/image_processing/scan_image.h:13,
from /usr/local/include/dlib/image_processing.h:11,
from /home/nvidia/cviz/gazr/src/head_pose_estimation.hpp:6,
from /home/nvidia/cviz/gazr/src/head_pose_estimation.cpp:11:
/usr/local/include/dlib/geometry/line.h:15:11: note: class dlib::line
class line
^
[ 21%] Built target estimate_focus
CMakeFiles/gazr.dir/build.make:62: recipe for target 'CMakeFiles/gazr.dir/src/head_pose_estimation.cpp.o' failed
make[2]: [CMakeFiles/gazr.dir/src/head_pose_estimation.cpp.o] Error 1
CMakeFiles/Makefile2:1047: recipe for target 'CMakeFiles/gazr.dir/all' failed
make[1]: [CMakeFiles/gazr.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
Scanning dependencies of target gazr Scanning dependencies of target estimate_focus [ 7%] Building CXX object CMakeFiles/estimate_focus.dir/src/estimate_focus.cpp.o [ 14%] Building CXX object CMakeFiles/gazr.dir/src/head_pose_estimation.cpp.o [ 21%] Linking CXX executable devel/lib/gazr/estimate_focus /home/nvidia/cviz/gazr/src/head_poseestimation.cpp: In member function 'void HeadPoseEstimation::drawFeatures(const std::vector<std::vector<cv::Point