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. Auto-start QML app on imx6
QtWS25 Last Chance

Auto-start QML app on imx6

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
3 Posts 2 Posters 717 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.
  • L Offline
    L Offline
    Laza
    wrote on last edited by
    #1

    I made "installation package" with QML app and dependent libraries and plugins, on imx6 (Boundary's Nitrogen board) on Linux 14.04. As a user, I can start this app from script which setup the environment and runs my app.
    But, when I try to start it as root, it cannot start - it complains that it cannot create OpenGL context. However, when I add "-platform eglfs" it does not recognize it (even though I have a matching library in QML platforms folder and that path is set in startup script).
    Any suggestions on what could be the problem?

    jsulmJ 1 Reply Last reply
    0
    • L Laza

      I made "installation package" with QML app and dependent libraries and plugins, on imx6 (Boundary's Nitrogen board) on Linux 14.04. As a user, I can start this app from script which setup the environment and runs my app.
      But, when I try to start it as root, it cannot start - it complains that it cannot create OpenGL context. However, when I add "-platform eglfs" it does not recognize it (even though I have a matching library in QML platforms folder and that path is set in startup script).
      Any suggestions on what could be the problem?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by jsulm
      #2

      @Laza I guess with "Linux 14.04" you mean Ubuntu 14.04?
      So, you try to start your app with sudo? Or how do you "start it as root"?

      sudo ./my_app
      

      ?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      L 1 Reply Last reply
      0
      • jsulmJ jsulm

        @Laza I guess with "Linux 14.04" you mean Ubuntu 14.04?
        So, you try to start your app with sudo? Or how do you "start it as root"?

        sudo ./my_app
        

        ?

        L Offline
        L Offline
        Laza
        wrote on last edited by
        #3

        @jsulm Yes, it's Ubuntu and sudo. On my PC, script starts GUI app even as root, but not on dev-board.
        All environment variables I got as a user (all that seems to be relevant to QT) I tried to add to startup script and run that script as root, but it doesn't work.

        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