trunk not compiled -- qpainter, WITH_QT_OPENGL (Bug #458)


Added by Alexander Shishkov over 14 years ago. Updated almost 13 years ago.


Status:Done Start date:
Priority:Blocker Due date:
Assignee:Yannick Verdie % Done:

0%

Category:build/install
Target version:-
Affected version: Operating System:
Difficulty: HW Platform:
Pull request:

Description

/home/alex/work/cv/trunk/opencv/modules/highgui/src/cap_ffmpeg.cpp: In member function ‘virtual bool CvVideoWriter_FFMPEG::open(const char*, int, double, CvSize, bool)’:
/home/alex/work/cv/trunk/opencv/modules/highgui/src/cap_ffmpeg.cpp:1234: warning: ‘AVFormatContext* av_alloc_format_context()’ is deprecated (declared at /usr/include/libavformat/avformat.h:873)
/home/alex/work/cv/trunk/opencv/modules/highgui/src/cap_ffmpeg.cpp:1234: warning: ‘AVFormatContext* av_alloc_format_context()’ is deprecated (declared at /usr/include/libavformat/avformat.h:873)
/home/alex/work/cv/trunk/opencv/modules/highgui/src/window_QT.cpp:49: warning: deprecated conversion from string constant to ‘char*’
/home/alex/work/cv/trunk/opencv/modules/highgui/src/window_QT.cpp: In member function ‘virtual void ViewPort::paintEvent(QPaintEvent*)’:
/home/alex/work/cv/trunk/opencv/modules/highgui/src/window_QT.cpp:1657: error: ‘class QPainter’ has no member named ‘beginNativePainting’
/home/alex/work/cv/trunk/opencv/modules/highgui/src/window_QT.cpp:1664: error: ‘class QPainter’ has no member named ‘endNativePainting’
maker2: * [modules/highgui/CMakeFiles/opencv_highgui.dir/src/window_QT.o] Ошибка 1
maker2:
Ожидание завершения заданий...
maker1:
[modules/highgui/CMakeFiles/opencv_highgui.dir/all] Ошибка 2
make: *
[all] Ошибка 2


Associated revisions

Revision f2971aeb
Added by Yannick Verdie over 14 years ago

Ticket #458

Revision d92a56ee
Added by Andrey Kamaev about 12 years ago

Merge pull request #458 from taka-no-me:tbb_4.1u2

History

Updated by Alexander Shishkov over 14 years ago

If I check off WITH_QT_OPENGL flag:

In file included from /home/alex/work/cv/trunk/opencv/include/opencv/highgui.h:47,
from /home/alex/work/cv/trunk/opencv/samples/c/contours.c:9:
/home/alex/work/cv/trunk/opencv/modules/highgui/include/opencv2/highgui/highgui_c.h:77: error: expected ‘;’, ‘,’ or ‘)’ before ‘=’ token

Updated by Yannick Verdie over 14 years ago

Hello,

Could you try again, I changed some stuffs (look like you do not have Qt
4.6 but another version).

Will try to stay compatible as much as I can.

Thanks for your report,

Regards,
Yannick

Updated by Alexander Shishkov over 14 years ago

Hello,

It is compiled now. Thank you so much for your fast response.

Yes, we don't have QT 4.6. We use QT 4.5, that is default under Ubuntu 9.10.

Regards,
Alexander.

  • Status changed from Open to Done
  • (deleted custom field) set to fixed

Updated by Charles Twardy over 14 years ago

Three months later, I'm also getting a series of "qpainter has no member ..." errors compiling on ubuntu with the ubuntu Qt packages (4.5.2 or 4.5.3).

These occur when WITH_QT_OPENGL is selected, but not with only WITH_QT selected.

Updated by Andrey Kamaev almost 13 years ago

  • Category set to build/install

Also available in: Atom PDF