Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Cannot connect to X server error
Forum Updated to NodeBB v4.3 + New Features

Cannot connect to X server error

Scheduled Pinned Locked Moved Mobile and Embedded
4 Posts 2 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.
  • K Offline
    K Offline
    kolumb
    wrote on last edited by
    #1

    I've compiled QT for embedded (raspberry pi). Then compiled an application and send both libraries and app to raspberry.

    When I wanted to run an application (./application -qws) I received an error:

    • cannot connect to x serwer

    I want to use qt which will be writing to virtual frame buffer instead of x server.

    Do you know what could be wrong ? My another compilation with static linkage works fine.

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

      Hi and welcome to devnet,

      Maybe a silly question but: are you sure you compiled your application using your Qt Embedded version ?

      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
      • K Offline
        K Offline
        kolumb
        wrote on last edited by
        #3

        Hi,

        Thank you for your response. Yes, I did it twice to be sure. I do not understand why static linkage works fine and the same application with dynamic linkage wants to use X server. Should I start earlier qt server ? I suppose that -qws option starts my app as serwer. On X environment this app works fine, but i don't want to use X.

        Kamil

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

          Maybe because when starting it first finds the X11 Qt libraries rather than the embedded version

          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

          • Login

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