[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Cannot build OpenGL application on Qt5 on armel/hf

That's the intended behavior.  There isn't a reasonable way around it.  You'll either need to port it to use GL ES or disable it on these archs.

Scott K

On September 18, 2017 5:50:24 PM EDT, John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> wrote:
>I have uploaded a new version of virtualjaguar today which uses Qt5 by
>[1]. Unfortunately, this brought a regression on armel and armhf in the
>of an FTBFS [2]:
>g++ -c -pipe `sdl-config --cflags` -O2 -Wdate-time -D_FORTIFY_SOURCE=2
>-ffast-math -fomit-frame-pointer -Wall -W -D_REENTRANT -fPIC
>-Isrc/gui -isystem /usr/include/arm-linux-gnueabi/qt5 -isystem
>/usr/include/arm-linux-gnueabi/qt5/QtOpenGL -isystem
>/usr/include/arm-linux-gnueabi/qt5/QtWidgets -isystem
>/usr/include/arm-linux-gnueabi/qt5/QtGui -isystem
>/usr/include/arm-linux-gnueabi/qt5/QtCore -Iobj
>-I/usr/lib/arm-linux-gnueabi/qt5/mkspecs/linux-g++ -o obj/glwidget.o
>src/gui/glwidget.cpp: In member function 'virtual void
>src/gui/glwidget.cpp:49:12: error: 'GL_ALPHA_TEST' was not declared in
>this scope
>  glDisable(GL_ALPHA_TEST);
>            ^~~~~~~~~~~~~
>src/gui/glwidget.cpp:49:12: note: suggested alternative:
>  glDisable(GL_ALPHA_TEST);
>            ^~~~~~~~~~~~~
>            GL_ALPHA8_OES
>src/gui/glwidget.cpp:52:12: error: 'GL_POLYGON_SMOOTH' was not declared
>in this scope
>  glDisable(GL_POLYGON_SMOOTH);
>            ^~~~~~~~~~~~~~~~~
>Looking at the rules file of qtbase-opensource-src, it's obvious where
>regression comes from, namely from the fact that qtbase-opensource-src
>configured to use OpenGL ES instead of proper desktop OpenGL on armel
>and armhf [3].
>Does anyone know whether there is a way to address this issue on
>or do I have to disable virtualjaguar on these architectures?
>CC'ing debian-arm@l.d.o in case someone there knows about a possible
>> [1]
>> [2]
>> [3]

Reply to: