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. QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root' QOpenGLShader::link: LinkShaders: Too many instructions.
Forum Updated to NodeBB v4.3 + New Features

QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root' QOpenGLShader::link: LinkShaders: Too many instructions.

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
4 Posts 2 Posters 4.3k 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.
  • D Offline
    D Offline
    djhdjwl
    wrote on 16 Jun 2021, 07:42 last edited by djhdjwl
    #1

    I used QT3D to load the OBJ model on IMX6Q, and when I compiled under x86 using QTCreator everything was fine and the model

    was displayed.When I compile with the cross-compiler and run the program on IMX6Q, the serial port output the following error:

    1. QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/ TMP/runtime_root '
    2. QOpenGLShader::link: LinkShaders: Too many instructions.

    What can I do to correct it?I am using yocto, cross compiler qt version for 5.9.9. Use the program to link text.

    Thank you very much!!!

    J 1 Reply Last reply 16 Jun 2021, 08:29
    0
    • D djhdjwl
      16 Jun 2021, 07:42

      I used QT3D to load the OBJ model on IMX6Q, and when I compiled under x86 using QTCreator everything was fine and the model

      was displayed.When I compile with the cross-compiler and run the program on IMX6Q, the serial port output the following error:

      1. QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/ TMP/runtime_root '
      2. QOpenGLShader::link: LinkShaders: Too many instructions.

      What can I do to correct it?I am using yocto, cross compiler qt version for 5.9.9. Use the program to link text.

      Thank you very much!!!

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 16 Jun 2021, 08:29 last edited by
      #2

      @djhdjwl Are you trying to start your app as root? Is X Server running on your device?

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

      D 1 Reply Last reply 6 Jul 2021, 02:08
      1
      • J jsulm
        16 Jun 2021, 08:29

        @djhdjwl Are you trying to start your app as root? Is X Server running on your device?

        D Offline
        D Offline
        djhdjwl
        wrote on 6 Jul 2021, 02:08 last edited by
        #3

        @jsulm The root permission is already used, and the Xserver is already running. There is no problem running the routine, except for an error when running the program

        J 1 Reply Last reply 6 Jul 2021, 06:01
        0
        • D djhdjwl
          6 Jul 2021, 02:08

          @jsulm The root permission is already used, and the Xserver is already running. There is no problem running the routine, except for an error when running the program

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 6 Jul 2021, 06:01 last edited by
          #4

          @djhdjwl said in QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root' QOpenGLShader::link: LinkShaders: Too many instructions.:

          The root permission is already used, and the Xserver is already running

          That's clear. What I wrote is: X server usually does not accept connections from applications started using su or sudo. You can try to start any other UI application with sudo and see what happens.

          And as I said: it is way better to give your app access to needed device files instead of running whole application as root...

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

          1 Reply Last reply
          1

          • Login

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