[Gambas-user] Compile error for 5197 in opengl, ARM A10 SoC, Lubuntu 12.04

Benoît Minisini gambas at ...1...
Tue Sep 25 17:43:21 CEST 2012


Le 25/09/2012 11:42, jm a écrit :
> Thank you for the fixes in 5197.

I fixed nothing relating to your problem in r5197, so I think the 
problem comes from your system installation.

>
> The compiling has got past previous issues and is now moved to the
> opengl module. Compile error for 5197 in opengl, ARM A10 SoC, Lubuntu
> 12.04:
>
>
>          Making all in opengl
>          make[5]: Entering directory
>          `/home/miniand/Downloads/gambas3/trunk/gb.qt4/src/opengl'
>            CXX    gb_qt4_opengl_la-main.lo
>          In file included from /usr/include/qt4/QtCore/qobject.h:48:0,
>                           from /usr/include/qt4/QtGui/qwidget.h:46,
>                           from /usr/include/qt4/QtGui/QWidget:1,
>                           from ../gb.qt.h:33,
>                           from main.h:28,
>                           from main.cpp:26:
>          /usr/include/qt4/QtCore/qstring.h:174:17: note: the mangling of
>          'va_list' has changed in GCC 4.4
>          /usr/bin/moc-qt4 -o CGLarea_moc.cpp CGLarea.h
>            CXX    gb_qt4_opengl_la-CGLarea_moc.lo
>          In file included from /usr/include/qt4/QtCore/qobject.h:48:0,
>                           from /usr/include/qt4/QtGui/qwidget.h:46,
>                           from /usr/include/qt4/QtGui/QWidget:1,
>                           from ../gb.qt.h:33,
>                           from main.h:28,
>                           from CGLarea.h:27,
>                           from CGLarea_moc.cpp:10:
>          /usr/include/qt4/QtCore/qstring.h:174:17: note: the mangling of
>          'va_list' has changed in GCC 4.4
>            CXX    gb_qt4_opengl_la-CGLarea.lo
>          CGLarea.cpp: In function 'void CGLAREA_text(void*, void*)':
>          CGLarea.cpp:110:36: error: 'GL_LIGHTING' was not declared in
>          this scope
>          make[5]: *** [gb_qt4_opengl_la-CGLarea.lo] Error 1
>          make[5]: Leaving directory
>          `/home/miniand/Downloads/gambas3/trunk/gb.qt4/src/opengl'
>          make[4]: *** [all-recursive] Error 1
>          make[4]: Leaving directory
>          `/home/miniand/Downloads/gambas3/trunk/gb.qt4/src'
>          make[3]: *** [all-recursive] Error 1
>          make[3]: Leaving directory
>          `/home/miniand/Downloads/gambas3/trunk/gb.qt4'
>          make[2]: *** [all] Error 2
>          make[2]: Leaving directory
>          `/home/miniand/Downloads/gambas3/trunk/gb.qt4'
>          make[1]: *** [all-recursive] Error 1
>          make[1]: Leaving directory
>          `/home/miniand/Downloads/gambas3/trunk'
>          make: *** [all] Error 2
>
>
> Output of the following script attached:
> ( ./reconf-all; ./configure -C; make ) > output.txt 2>&1
>
> Regards
>

Mmm... It seems to be a problem in Qt or OpenGL: which version of Qt do 
you use? Please try to add the following line at the beginning of 
CGLArea.cpp, line 25:

#include <GL/gl.h>

Recompile and tell me the result!

-- 
Benoît Minisini




More information about the User mailing list