![]() The solution for this problem is to simply specify before using the binary, specify the offscreen value for the QT_QPA_PLATFORM environment variable. Configure the QT Platform to run offscreen ![]() In this article, i will explain you easily how to do it in your Ubuntu 18.04 or 20.04 server. You shouldn't work like this in the server, instead you should work only with the command line options available (headless mode). ![]() But, as we are on the server, we obviously don't have such a tool at disposition. Reinstalling the application may fix this problem.Īvailable platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.Īs you may suspect, the error is caused because you are launching the application as a graphical application, so of course, it would be necessary to have a display. This application failed to start because no Qt platform plugin could be initialized. Qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found. However, in the server environment, if you try to use the MuseScore binary (mscore3) from the command line in the server, you will find the following exception: qt.qpa.xcb: could not connect to display localhost:10.0 In a previous tutorial, I described how to install MuseScore in Ubuntu 20.04 and it does work in both environments Desktop and Server. That's the case of MuseScore, although not everyone that uses this tool knows about this feature and it's not like they would need it, as a developer, you will love this tool. There are as well some applications that are developed to be used with a graphic user interface, however, they offer as well a very useful command-line interface that can be used to embed in our own applications. There a lot of applications that aren't mean to be used on a desktop environment as they are basically command line applications.
0 Comments
Leave a Reply. |