Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. No protocol specified
Forum Updated to NodeBB v4.3 + New Features

No protocol specified

Scheduled Pinned Locked Moved Solved General and Desktop
7 Posts 3 Posters 4.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • taku-sT Offline
    taku-sT Offline
    taku-s
    wrote on last edited by taku-s
    #1

    Hi all

    I am trying to deploy my app made with Qt5.
    The environment is Debian10 and Qt5.11.3.
    I added the following to .pro file:
    target.path = / usr / local / bin /
    INSTALLS + = target

    afterwards
    Executed make install.

    And when I run the executable file created in /usr/local/bin/
    After the following warning, the app was executed.

    Warning: Ignoring XDG_SESSION_TYPE = wayland on Gnome. Use QT_QPA_PLATFORM = wayland to run on Wayland anyway.

    Next, I put a png icon on the form with QtCreator and ran make install.
    When the app was executed, the following warning message was displayed and could not be executed.

    Warning: Ignoring XDG_SESSION_TYPE = wayland on Gnome. Use QT_QPA_PLATFORM = wayland to run on Wayland anyway.
    No protocol specified
    qt.qpa.screen: QXcbConnection: Could not connect to display: 0
    Could not connect to any X display.

    Why is this?
    What should I do?

    Thank you.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      What desktop environment are you using ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • taku-sT Offline
        taku-sT Offline
        taku-s
        wrote on last edited by
        #3

        Thank you
        I use Debian 10 as standard
        So maybe GNOMU desktop

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          You really should check because guessing won't help.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • taku-sT Offline
            taku-sT Offline
            taku-s
            wrote on last edited by
            #5

            Certainly, It is GNOME

            1 Reply Last reply
            0
            • C Offline
              C Offline
              Chrisw01
              wrote on last edited by Chrisw01
              #6

              How are you trying to run the program? From a terminal window within the Desktop? Or are you shelled in via SSH or Telnet? What is the DISPLAY variable set to?

              Edit: Found this on Fedora. https://bugzilla.redhat.com/show_bug.cgi?id=1752665 Do you have that qt wayland package installed?

              1 Reply Last reply
              0
              • taku-sT Offline
                taku-sT Offline
                taku-s
                wrote on last edited by
                #7

                The problem has been solved.
                I installed it in / usr / local / bin as root, but it seemed that the owner of the executable file was left as root.
                If I change the owner to user, I can execute it.
                The warning remains.

                1 Reply Last reply
                0

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved