QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root' QOpenGLShader::link: LinkShaders: Too many instructions.
-
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!!!
-
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!!!
-
@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
@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...