Important: Please read the Qt Code of Conduct -

Error after installing Qt [Solved]

  • I have just installed Qt 5.3 in /opt and started a simple "Qt application with widgets" with QtCreator.

    Compilation fails with
    cannot find -lGL
    Do I have th libGL library : yes

    /usr/lib/x86_64-linux-gnu/mesa/ was not in the search path of ld so I added
    /usr/lib/x86_64-linux-gnu/mesa/ to /etc/

    now /usr/lib/x86_64-linux-gnu/mesa is in the ld search path :
    #ldconfig -v 2>/dev/null | grep -v ^$'\t'
    /usr/lib/i386-linux-gnu/sse2: (hwcap: 0x0000000004000000)
    /usr/lib/nvidia-331/tls: (hwcap: 0x8000000000000000)
    /usr/lib32/nvidia-331/tls: (hwcap: 0x8000000000000000)

    but still can't link.
    Any advice ?



  • Lifetime Qt Champion

    Hi and welcome to devnet,

    Please search through the forum, this question has been asked many times. You are missing the OpenGL development package

  • Thanks.

    The solution posted at solved the problem.


Log in to reply