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. Environment Variable Warnings [solved]
QtWS25 Last Chance

Environment Variable Warnings [solved]

Scheduled Pinned Locked Moved Mobile and Embedded
3 Posts 2 Posters 3.9k Views
  • 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.
  • N Offline
    N Offline
    NateM
    wrote on last edited by
    #1

    Hi All,

    I'm running into a strange issue in QT. I suspect I have not set up something correctly but I am hoping someone can point me down the right direction. I am developing an application to be deployed on an embedded Linux system. I would like the program to autorun at startup. When I put my program into ~/.bashrc (sudo /pathtofile/file) QT complains that I have not set some environment variables ( and the GUI displays incorrectly. However when I exit the application and run it manually from the terminal everything executes correctly.

    Does anyone have any suggestions about what might be happening? I am not sure why the environment variables are not being set such that QT can read them.

    The errors specifically are:

    EGLFS: Unable to query physical screen size, defaulting to 100 dpi.
    EGLFS: To override, set QT_QPA_EGLFS_PHYSICAL_WIDTH and QT_QPA_EGLFS_PHYSICAL_HEIGHT (in millimeters).
    EGLFS: Unable to query screen depth, defaulting to 32.
    EGLFS: To override, set QT_QPA_EGLFS_DEPTH.

    Thanks for your help,

    Nathan

    1 Reply Last reply
    0
    • N Offline
      N Offline
      NateM
      wrote on last edited by
      #2

      I figured it out. I was sourcing the file in the wrong way. I needed to put the command into a script like this:

      cd /location/of/file/
      ./myapplication

      And that seemed to work. I don't fully understand why that worked so if anyone has anything to enlighten me that would be great.

      Thanks,

      Nathan

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

        Hi,

        Depending on the OS on your board (debian, openembedded, other ?) you might not be using the right technique to start your application.

        You should check what startup system software you have and use it for that purpose

        Hope it helps

        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