Author Topic: build failure in GUI_qtGlRender.cpp  (Read 2274 times)

ajschult

  • Jr. Member
  • **
  • Posts: 98
build failure in GUI_qtGlRender.cpp
« on: November 28, 2015, 06:05:31 AM »
My build is failing with git checkout 0a5f1c10:

Code: [Select]
/home/andrew/build/avidemux/avidemux2/avidemux/qt4/common/ADM_render/GUI_qtGlRender.cpp: In member function ‘virtual bool QtGlRender::init(GUI_WindowInfo*, uint32_t, uint32_t, renderZoom)’:
/home/andrew/build/avidemux/avidemux2/avidemux/qt4/common/ADM_render/GUI_qtGlRender.cpp:362:38: error: passing ‘const QGLContext’ as ‘this’ argument discards qualifiers [-fpermissive]
     glWidget->context()->makeCurrent();
                                      ^
In file included from /usr/include/QtOpenGL/QGLWidget:1:0,
                 from /home/andrew/build/avidemux/avidemux2/avidemux/qt4/common/ADM_render/GUI_qtGlRender.h:16,
                 from /home/andrew/build/avidemux/avidemux2/avidemux/qt4/common/ADM_render/GUI_qtGlRender.cpp:35:
/usr/include/QtOpenGL/qgl.h:330:18: note:   in call to ‘virtual void QGLContext::makeCurrent()’
     virtual void makeCurrent();
                  ^

mean

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 10971
Re: build failure in GUI_qtGlRender.cpp
« Reply #1 on: November 28, 2015, 06:47:27 AM »
are you using qt4 ?

Jan Gruuthuse

  • Hero Member
  • *****
  • Posts: 6060
Re: build failure in GUI_qtGlRender.cpp
« Reply #2 on: November 28, 2015, 07:14:59 AM »
Yes, plenty of warnings too.

Quote
** Failed at make, result in /tmp/logbuildQt4**

Code: [Select]
-- Build files have been written to: /home/jan/avidemux2/buildQt4
** Failed at make, result in /tmp/logbuildQt4**

Code: [Select]
/home/jan/avidemux2/avidemux/qt4/common/ADM_render/GUI_qtGlRender.cpp:362:38: error: passing ‘const QGLContext’ as ‘this’ argument of ‘virtual void QGLContext::makeCurrent()’ discards qualifiers [-fpermissive]
     glWidget->context()->makeCurrent();
                                      ^
make[2]: *** [commonQt4/ADM_render/CMakeFiles/ADM_render6_QT4.dir/GUI_qtGlRender.cpp.o] Error 1
make[2]: Leaving directory `/home/jan/avidemux2/buildQt4'
make[1]: *** [commonQt4/ADM_render/CMakeFiles/ADM_render6_QT4.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
_____________________________________________
Avidemux v2.6.10 (0a5f1c1)
_____________________________________________
Compiler: GCC 4.8.4
cmake: 2.8.12.2
Build Target: Linux (x86-64)
User Interface: Qt (4.8.6)
_____________________________________________
Kernel: Linux 3.19.0-31-generic (x86_64) (linux-image-3.19.0-31-generic   3.19.0-31.36~14.04.1)
Distribution: Linux Ubuntu 14.04.3 LTS (Trusty)

Intel Core i7-3770K @ 3.50GHz (4 Cores/8 Threads) with 32 GB ram

Desktop: Unity 7.2.5
Display Server: X Server 1.15.1
Display Driver: NVIDIA 352.63
OpenGL: 4.3.0
Compiler: GCC 4.8.4 + CUDA 7.5


OpenGL Vendor: NVIDIA Corporation
OpenGL Renderer: GeForce GTX 960/PCIe/SSE2 2048MB (1227/3600MHz)
OpenGL: 4.5.0 NVIDIA  352.63


- vdpauinfo:API version: 1   NVIDIA VDPAU Driver Shared Library  352.55
- x264 0.148.2638 7599210
- x265 [info]: HEVC encoder version 1.5+1-32d72a0285e0
_____________________________________________
« Last Edit: November 28, 2015, 07:18:23 AM by Jan Gruuthuse »

ajschult

  • Jr. Member
  • **
  • Posts: 98
Re: build failure in GUI_qtGlRender.cpp
« Reply #3 on: November 28, 2015, 07:30:56 AM »

mean

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 10971
Re: build failure in GUI_qtGlRender.cpp
« Reply #4 on: November 28, 2015, 08:01:45 AM »
should be ok now

ajschult

  • Jr. Member
  • **
  • Posts: 98
Re: build failure in GUI_qtGlRender.cpp
« Reply #5 on: November 28, 2015, 08:23:02 AM »
Yes, e0eb895 has built successfully for me
Thanks

Jan Gruuthuse

  • Hero Member
  • *****
  • Posts: 6060
Fixed: build failure in GUI_qtGlRender.cpp
« Reply #6 on: November 28, 2015, 08:32:02 AM »
Code: [Select]
** ALL DONE **
** The installable packages are in the debs folder **

thanks again ;)