Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

[HELP] QOpenGLShader: Unable to open file "shaders/fragshad.frag" QOpenGLShader: Unable to open file "shaders/vertshad.vert"



  • Hello, I had some issues trying to do qmake-qt5, so I decided to do in just the command "qmake", then, when the Makefile is created, I do the "make" command, and when I execute the file that I want to see, the program is openes, but I cant see the figure that I draw on it, and an these errores are in my terminal:
    QOpenGLShader: Unable to open file "shaders/fragshad.frag"
    QOpenGLShader: Unable to open file "shaders/vertshad.vert"
    QOpenGLShader::link: error: linking with uncompiled/unspecialized shadererror: linking with uncompiled/unspecialized shader
    QOpenGLShader::link: error: linking with uncompiled/unspecialized shadererror: linking with uncompiled/unspecialized shader

    What can I do? I am on Ubuntu 18.04, and my specs doing:
    glxinfo | grep -E "direct rendering|^OpenGL"

    direct rendering: Yes
    OpenGL vendor string: X.Org
    OpenGL renderer string: AMD ARUBA (DRM 2.50.0 / 4.15.0-34-generic, LLVM 6.0.0)
    OpenGL core profile version string: 4.3 (Core Profile) Mesa 18.0.5
    OpenGL core profile shading language version string: 4.30
    OpenGL core profile context flags: (none)
    OpenGL core profile profile mask: core profile
    OpenGL core profile extensions:
    OpenGL version string: 3.0 Mesa 18.0.5
    OpenGL shading language version string: 1.30
    OpenGL context flags: (none)
    OpenGL extensions:
    OpenGL ES profile version string: OpenGL ES 3.1 Mesa 18.0.5
    OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.10
    OpenGL ES profile extensions:

    Thanks for your time! :)


  • Lifetime Qt Champion

    Hi,

    Where are these two files stored ?



  • @SGaist
    You are an angel
    The reason of that error was that I don't put the files in the correct folder.
    Thank you for force me to see that stupid mistake, regards.


Log in to reply