Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [HELP] QOpenGLShader: Unable to open file "shaders/fragshad.frag" QOpenGLShader: Unable to open file "shaders/vertshad.vert"
QtWS25 Last Chance

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

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 1.8k 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.
  • J Offline
    J Offline
    JRefusta
    wrote on last edited by
    #1

    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! :)

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

      Hi,

      Where are these two files stored ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      J 1 Reply Last reply
      1
      • SGaistS SGaist

        Hi,

        Where are these two files stored ?

        J Offline
        J Offline
        JRefusta
        wrote on last edited by
        #3

        @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.

        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