Problems with Open-Source Downloads read https://www.qt.io/blog/problem-with-open-source-downloads and https://forum.qt.io/post/638946
Qt Quick Renderer 2D
jstoezel last edited by
Could somebody point where to get the Qt Quick Renderer Source doe? Following these installation instructions it is not obvious where to get the module from: http://doc.qt.io/QtQuick2DRenderer/qtquick2drenderer-installation-guide.html
The renderer does not seem to be part of QT 5.7, though it seems to be supported for open source in this version?
Unless I'm mistaken you can clone it from here.
there is a Qt Quick 2D Renderer, that works instead OpnGL ES 2 on boards without GPU,for example, BeagleBone Black , seems to be good for me.
As described, i should use :
but i have no idea what does this string mean.
can someone please help me to disable opengl for qt quick?
@Andrey-Shmelew I explained this in another thread. Just execute that line before you start your application:
export QMLSCENE_DEVICE=softwarecontext ./my_app
root@beaglebone:/media/rootfs/media# export QMLSCENE_DEVICE=softwarecontext root@beaglebone:/media/rootfs/media# ./noopengl failed to get the current screen resources xkbcommon: ERROR: failed to add default include path auto Qt: Failed to create XKB context! Use QT_XKB_CONFIG_ROOT environmental variable to provide an additional search path, add ':' as separator to provi de several search paths and/or make sure that XKB configuration data directory contains recent enough contents, t o update please see http://cgit.freedesktop.org/xkeyboard-config/ . QXcbConnection: XCB error: 170 (Unknown), sequence: 156, resource id: 90, major code: 146 (Unknown), minor code: 20 QXcbIntegration: Cannot create platform OpenGL context, neither GLX nor EGL are enabled Failed to create OpenGL context for format QSurfaceFormat(version 2.0, options QFlags(), depthBufferSize 24, redB ufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize 8, samples -1, swapBeh avior 2, swapInterval 1, profile 0) Aborted
what is wrong?
@Andrey-Shmelew Probably you do not have Qt Quick 2D Renderer. See here how to build and use it: http://doc.qt.io/QtQuick2DRenderer/qtquick2drenderer-installation-guide.html
I do not get you. These instructions need to execute directly on the BBB, or on a machine where installed qtcreator?
@Andrey-Shmelew On your host machine since you're cross-compiling
not exactly understand.
Do you mean i can build Qt Quick 2D Renderer only before QT cross-compiling, so i need to rebuild my QT again?
@Andrey-Shmelew If you used -opengl es2 to build Qt then no need to rebuild it, else you need to rebuild Qt with -opengl es2 (described in the link I posted).
if i can build and run qtquick 2.0 application on my machine, it means that QT already supports OpenGL and i can skip Building Qt Quick 2D Renderer, and as stated:
Build Qt Quick 2D Renderer like any other Qt module: qmake make make install
sorry for the annoyance
@Andrey-Shmelew You need it for BBB not your host PC right? Whether Qt supports OpenGL on your host PC or not is completely irrelevant for BBB. Isn't the absence of OpenGL on BBB the reason you want to have Qt Quick 2D Renderer?
So, the question is: did you build your BBB Qt with -opengl es2 ?
did you build your BBB Qt with -opengl es2 ?
i don't really know...
so after tons hours of googling i decided to instal on BBB the lastest image of debian.
then, i updated and upgraded a system on the board.
Now there are no errors about opengl es,
so now when i start application with QTQuick 2.0 only these errors appear:
QXcbConnection: Failed to get the primary output of the screen
QXcbConnection: XCB error: 170 (Unknown), sequence: 164, resource id: 90, major code: 146 (Unknow
n), minor code: 20.
and... nothing else happens
@Andrey-Shmelew Do you have a X server running on BBB?
@Andrey-Shmelew Then you should read about it. It is the graphics environment used on UNIX/Linux machines. Do you have ANY graphics on your BBB (connected display with graphics, not text mode)?
yes, i have 10 inch display with HDMI, and applications that are not qtquick are running excellent on it,
also i can run these applicastions on my host machine throught SmartTTY XmingX
@Andrey-Shmelew Are those applications GUI applications? How do you start them? And how do you start your application?
i take an GUI example (for example - Composition), compile it in my host machine for BBB, then i upload binary file to BBB, then i open linux on BBB and check this binary file as "make file executable" , then double click on the file and it starts,
all the same steps are for GUI with qtquick2.
while i write this post i started example clocks on my beaglebone black and it started well!
@Andrey-Shmelew Are you still trying to use software renderer?
root@beaglebone:/media/rootfs/media# export QMLSCENE_DEVICE=softwarecontext root@beaglebone:/media/rootfs/media# ./noopengl
no, i am not using software renderer,
i just compile and download clocks example, but it works slowly