GLFW and BGFX on wayland with cmake - glfw

I'm trying to migrate my small bgfx project from xorg to wayland system, and I'm having trouble finding what libs shoud I link... When I only change "expose_native_wayland", and "glfwGetWaylandDisplay", "glfwGetWaylandWindow", the new window is launching, but completely transparent, and without content.

Related

Running qt creator via remote desktop

We are developing a software using QT creator. The software is meant to run on windows and on an ARM mini-computer running Debian. To test the software on the mini-computer, we logged in on the mini computer using ssh and an exported display. Some programs like Inkscape run fine, but we can't get to run QT Creator. It always displays the following errors:
No tool chain set from kit "Desktop".
No tool chain set from kit "Desktop".
Cant find EGLConfig, returning null config
Unable to find an X11 visual which matches EGL config 0
Could not initialize OpenGL for RasterGLSurface, reverting to RasterSurface.
Cant find EGLConfig, returning null config
Unable to find an X11 visual which matches EGL config 0
Could not initialize OpenGL
We also tried to log in from another x86 linux computer, but this created the same errors. Thus we suppose that the problems are linked to the architecture. Does anybody know how to solve this issue?
EDIT: We just tried to access QT creator from another ARM Debian mini-computer and it also fails. Thus it does not seem to be related to the architecture as we first suspected.
(We could of course do cross compiling and remote debugging, but we try to avoid this)
Try loading qtcreator without the Welcome addon:
qtcreator -noload Welcome
The Welcome addon uses OpenGL which probably isn't supported by X forwarding.

SDL window isn't showing on Cygwin

I am trying to run an SDL application with very basic code on Cygwin, but I have the following error after calling SDL_Init:
No available video device
I have X11 packages installed, but that isn't solving the issue
You need to start the X server and set the DISPLAY variable appropriately before running an X program.

Has anyone succeeded in launching QML applications built in Qt 5.5 (static) & msvc2015

I have build Qt 5.5 x64 static library against msvc2015 with the following settings:
configure -static -release -nomake examples -nomake tests -platform win32-msvc2015
plus replacing all occurences of /MD with /MT found in qtbase\mkspecs\common\msvc-desktop.conf
After finally getting my QML application built with precompiled Qt Creator 3.4.2, it constantly aborts during startup with a message box (in a VirtualBox Win7 guest):
Failed to create OpenGL context for format QSurfaceFormat(version 2.0, options QFlags(), depthBufferSize 24, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize 8, samples -1, swapBehavior 2, swapInterval 1, profile 0) .
This is most likely caused by not having the necessary graphics drivers installed.
Install a driver providing OpenGL 2.0 or higher, or, if this is not possible, make sure the ANGLE Open GL ES 2.0 emulation libraries (libEGL.dll, libGLESv2.dll and d3dcompiler_*.dll) are available in the application executable's directory or in a location listed in PATH.
I have tried disabling VitualBox's 3D acceleration but it makes no difference.
Then I created one Qt Widget Application and another Qt Quick Application with the same Qt library. The Qt Widget runs. The Qt Quick one shows the same behaviour as my QML app.
Also I've observed that Qt Creator itself doesn't show its Welcome page (QML?) if 3D acceleration is on. Launch Qt Creator in VirtualBox seamless mode with 3D acceleration on crashes the VM.
Doesn't Qt 5.5 come with dynamic OpenGL by default? I suspect that QML of Qt 5.5 doesn't run with either static or x64 build in Windows. Anyone has witnessed the contrary?
(cross posted in Qt Quick forum)
Have you taken a look here:
Building Qt From Source On Windows - Requirements
Try passing "-opengl dynamic" into the configure just before you build.
I'd also try running GPUCaps or something similar to make sure the VM environment is exposing the appropriate drivers/functionality. Default GL on Windows is 1.1 and anything higher is provided by GPU vendors.

OpenGL issue with QT5 qml applications on I.MX53-based board

I have DIGI ConnectCore development kit, based on I.MX53 microprocessor, on which iI'm trying to launch QT5 QML-based application. But building rootfs image by means of Yocto doesn't bring good results.
I use Ubuntu (64-bit version 14.04) virtual machine and following meta-layers (both "daisy" and "dizzy" branches I've tried):
Those from Freescale community (Github);
Meta-qt5 layer (Github)
I have already tried fsl-image-multimedia(-full) recipe with modified local.conf, which contents concering QT5 I get from this link.
I have to say, builds was successful, but I haven't managed to launch QT Quick-based applications (those one based on widgets runs well), and I've got following errors from debug console, when I run app under X-window system (by using "-platform xcb" postfix):
Could not find of the system's Compose files. Consider setting the QTCOMPOSE environment setting.
QxbIntegration: cannot create platform opengl context, neither GLX nor EGL enabled
Failed to create openGL context for format qsurfaceformat
... and such errors I've got when run with eglfs plugin (-platform eglfs):
Could not find of the system's Compose files. Consider setting the QTCOMPOSE environment setting.
Could not create the egl surface: error = 0x300b.
I realize that such messages points to OpenGL-related problems, but I cannot understand, what's the reason. GPU-related packages are included in build (I mean "amd-gpu-bin-mx51" and "imx-vpu"). I have tried both X and direct framebuffer (by adding DISTRO_FEATURES_remove = "x11 wayland" in local.conf) variants, but with no success.
Do I need to get some special packages on configs in order to get QML applications working?

QT project without opengl

I made an application with qt c++ with does not need opengl
So I did configure qt with -no-opengl option while building.
I've compiled my project qith qmake from the qt build output.
Unfortunatly while running my application in "light xp" i get the error "opengl32.dll not found"
Does anyone already done this and could help me?
Thanks
If you've kept the source you built from this is pretty straight forward, just rerun configure with OpenGL enabled and make sure you've got the dependencies and Qt will build the module and deploy for you, if not you can try downloading the OpenGL part separately and build it from the source yourself or rebuild the entire Qt library from scratch.