Skip to content

I got following error while building opencv_extra_module "recipe for target 'modules/highgui/CMakeFiles/opencv_highgui.dir/all' failed" #1529

@devmishrs

Description

@devmishrs

I got this error while building opencv_extra_module.

[  0%] Built target gen-pkgconfig
[  1%] Built target ippiw
[  1%] Built target ittnotify
[  4%] Built target libprotobuf
[  4%] Built target opencv_test_core_pch_dephelp
[  4%] Built target opencv_core_pch_dephelp
[  4%] Built target opencv_ts_pch_dephelp
[  4%] Built target pch_Generate_opencv_ts
[  4%] Built target pch_Generate_opencv_core
[  7%] Built target opencv_core
[  7%] Built target opencv_imgproc_pch_dephelp
[  7%] Built target pch_Generate_opencv_imgproc
[ 10%] Built target opencv_imgproc
[ 10%] Built target opencv_imgcodecs_pch_dephelp
[ 10%] Built target pch_Generate_opencv_imgcodecs
[ 10%] Built target opencv_imgcodecs
[ 10%] Built target opencv_videoio_pch_dephelp
[ 10%] Built target pch_Generate_opencv_videoio
[ 10%] Built target opencv_videoio
[ 10%] Built target opencv_highgui_pch_dephelp
[ 10%] Built target pch_Generate_opencv_highgui
[ 10%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/window_QT.cpp.o
cc1plus: warning: /opt/opencv/build/modules/highgui/precomp.hpp.gch/opencv_highgui_RELEASE.gch: not used because `__cpp_aggregate_nsdmi' not defined [-Winvalid-pch]
/opt/opencv/modules/highgui/src/window_QT.cpp: In member function ‘CvRect GuiReceiver::getWindowRect(QString)’:
/opt/opencv/modules/highgui/src/window_QT.cpp:970:21: error: ‘ViewPort* CvWindow::myView’ is private within this context
     QPoint org = w->myView->mapToGlobal(new QPoint(0, 0));
                     ^~~~~~
In file included from /opt/opencv/modules/highgui/src/window_QT.cpp:47:0:
/opt/opencv/modules/highgui/src/window_QT.h:346:15: note: declared private here
     ViewPort* myView;
               ^~~~~~
/opt/opencv/modules/highgui/src/window_QT.cpp:970:29: error: ‘class ViewPort’ has no member named ‘mapToGlobal’
     QPoint org = w->myView->mapToGlobal(new QPoint(0, 0));
                             ^~~~~~~~~~~
/opt/opencv/modules/highgui/src/window_QT.cpp:972:18: error: no matching function for call to ‘GuiReceiver::isOpenGl()’
     if (isOpenGl()) {
                  ^
In file included from /opt/opencv/modules/highgui/src/window_QT.cpp:47:0:
/opt/opencv/modules/highgui/src/window_QT.h:152:12: note: candidate: double GuiReceiver::isOpenGl(QString)
     double isOpenGl(QString name);
            ^~~~~~~~
/opt/opencv/modules/highgui/src/window_QT.h:152:12: note:   candidate expects 1 argument, 0 provided
/opt/opencv/modules/highgui/src/window_QT.cpp:973:26: error: ‘ViewPort* CvWindow::myView’ is private within this context
         return cvRect(w->myView->pos().x() + org.x, w->myView->pos().y() + org.y, w->myView->width(), w->myView->height());
                          ^~~~~~
In file included from /opt/opencv/modules/highgui/src/window_QT.cpp:47:0:
/opt/opencv/modules/highgui/src/window_QT.h:346:15: note: declared private here
     ViewPort* myView;
               ^~~~~~
/opt/opencv/modules/highgui/src/window_QT.cpp:973:34: error: ‘class ViewPort’ has no member named ‘pos’
         return cvRect(w->myView->pos().x() + org.x, w->myView->pos().y() + org.y, w->myView->width(), w->myView->height());
                                  ^~~
/opt/opencv/modules/highgui/src/window_QT.cpp:973:56: error: ‘ViewPort* CvWindow::myView’ is private within this context
         return cvRect(w->myView->pos().x() + org.x, w->myView->pos().y() + org.y, w->myView->width(), w->myView->height());
                                                        ^~~~~~
In file included from /opt/opencv/modules/highgui/src/window_QT.cpp:47:0:
/opt/opencv/modules/highgui/src/window_QT.h:346:15: note: declared private here
     ViewPort* myView;
               ^~~~~~
/opt/opencv/modules/highgui/src/window_QT.cpp:973:64: error: ‘class ViewPort’ has no member named ‘pos’
         return cvRect(w->myView->pos().x() + org.x, w->myView->pos().y() + org.y, w->myView->width(), w->myView->height());
                                                                ^~~
/opt/opencv/modules/highgui/src/window_QT.cpp:973:86: error: ‘ViewPort* CvWindow::myView’ is private within this context
         return cvRect(w->myView->pos().x() + org.x, w->myView->pos().y() + org.y, w->myView->width(), w->myView->height());
                                                                                      ^~~~~~
In file included from /opt/opencv/modules/highgui/src/window_QT.cpp:47:0:
/opt/opencv/modules/highgui/src/window_QT.h:346:15: note: declared private here
     ViewPort* myView;
               ^~~~~~
/opt/opencv/modules/highgui/src/window_QT.cpp:973:94: error: ‘class ViewPort’ has no member named ‘width’
     return cvRect(w->myView->pos().x() + org.x, w->myView->pos().y() + org.y, w->myView->width(), w->myView->height());
                                                                                          ^~~~~
/opt/opencv/modules/highgui/src/window_QT.cpp:973:106: error: ‘ViewPort* CvWindow::myView’ is private within this context
 vRect(w->myView->pos().x() + org.x, w->myView->pos().y() + org.y, w->myView->width(), w->myView->height());
                                                                                          ^~~~~~
In file included from /opt/opencv/modules/highgui/src/window_QT.cpp:47:0:
/opt/opencv/modules/highgui/src/window_QT.h:346:15: note: declared private here
     ViewPort* myView;
               ^~~~~~
/opt/opencv/modules/highgui/src/window_QT.cpp:973:114: error: ‘class ViewPort’ has no member named ‘height’
 ->myView->pos().x() + org.x, w->myView->pos().y() + org.y, w->myView->width(), w->myView->height());
                                                                                           ^~~~~~
/opt/opencv/modules/highgui/src/window_QT.cpp:976:22: error: ‘ViewPort* CvWindow::myView’ is private within this context
     return cvRect(w->myView->viewport()->pos().x() + org.x, w->myView->viewport()->pos().y() + org.y, w->myView->viewport()->width(), w->myView->viewport()->height());
                      ^~~~~~
In file included from /opt/opencv/modules/highgui/src/window_QT.cpp:47:0:
/opt/opencv/modules/highgui/src/window_QT.h:346:15: note: declared private here
     ViewPort* myView;
               ^~~~~~
/opt/opencv/modules/highgui/src/window_QT.cpp:976:30: error: ‘class ViewPort’ has no member named ‘viewport’; did you mean ‘ViewPort’?
     return cvRect(w->myView->viewport()->pos().x() + org.x, w->myView->viewport()->pos().y() + org.y, w->myView->viewport()->width(), w->myView->viewport()->height());
                              ^~~~~~~~
                              ViewPort
/opt/opencv/modules/highgui/src/window_QT.cpp:976:64: error: ‘ViewPort* CvWindow::myView’ is private within this context
     return cvRect(w->myView->viewport()->pos().x() + org.x, w->myView->viewport()->pos().y() + org.y, w->myView->viewport()->width(), w->myView->viewport()->height());
                                                                ^~~~~~
In file included from /opt/opencv/modules/highgui/src/window_QT.cpp:47:0:
/opt/opencv/modules/highgui/src/window_QT.h:346:15: note: declared private here
     ViewPort* myView;
               ^~~~~~
/opt/opencv/modules/highgui/src/window_QT.cpp:976:72: error: ‘class ViewPort’ has no member named ‘viewport’; did you mean ‘ViewPort’?
     return cvRect(w->myView->viewport()->pos().x() + org.x, w->myView->viewport()->pos().y() + org.y, w->myView->viewport()->width(), w->myView->viewport()->height());
                                                                        ^~~~~~~~
                                                                        ViewPort
/opt/opencv/modules/highgui/src/window_QT.cpp:976:106: error: ‘ViewPort* CvWindow::myView’ is private within this context
 t(w->myView->viewport()->pos().x() + org.x, w->myView->viewport()->pos().y() + org.y, w->myView->viewport()->width(), w->myView->viewport()->height());
                                                                                          ^~~~~~
In file included from /opt/opencv/modules/highgui/src/window_QT.cpp:47:0:
/opt/opencv/modules/highgui/src/window_QT.h:346:15: note: declared private here
     ViewPort* myView;
               ^~~~~~
/opt/opencv/modules/highgui/src/window_QT.cpp:976:114: error: ‘class ViewPort’ has no member named ‘viewport’; did you mean ‘ViewPort’?
 iew->viewport()->pos().x() + org.x, w->myView->viewport()->pos().y() + org.y, w->myView->viewport()->width(), w->myView->viewport()->height());
                                                                                          ^~~~~~~~
                                                                                                                  ViewPort
/opt/opencv/modules/highgui/src/window_QT.cpp:976:138: error: ‘ViewPort* CvWindow::myView’ is private within this context
 () + org.x, w->myView->viewport()->pos().y() + org.y, w->myView->viewport()->width(), w->myView->viewport()->height());
                                                                                          ^~~~~~
In file included from /opt/opencv/modules/highgui/src/window_QT.cpp:47:0:
/opt/opencv/modules/highgui/src/window_QT.h:346:15: note: declared private here
     ViewPort* myView;
               ^~~~~~
/opt/opencv/modules/highgui/src/window_QT.cpp:976:146: error: ‘class ViewPort’ has no member named ‘viewport’; did you mean ‘ViewPort’?
 .x, w->myView->viewport()->pos().y() + org.y, w->myView->viewport()->width(), w->myView->viewport()->height());
                                                                                          ^~~~~~~~
                                                                                                                                                  ViewPort
modules/highgui/CMakeFiles/opencv_highgui.dir/build.make:129: recipe for target 'modules/highgui/CMakeFiles/opencv_highgui.dir/src/window_QT.cpp.o' failed
make[2]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/src/window_QT.cpp.o] Error 1
CMakeFiles/Makefile2:9103: recipe for target 'modules/highgui/CMakeFiles/opencv_highgui.dir/all' failed
make[1]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/all] Error 2
Makefile:162: recipe for target 'all' failed
make: *** [all] Error 2
adminpc@adminpc-Inspiron-15-3567:/opt/opencv/build$ 

And I want to know. why and where we are going to use this flags? Please give me detailed description on that.

System information (version)

Example

  • OpenCV => 3.4.0
  • Operating System / Platform => Ubuntu 17.04 64 bit
Detailed description
Steps to reproduce

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions