Facing problem while compiling 1st code



  • [I got following error while compiling 1st code in qt. I m very new qt.
    [code]
    08:19:09: Running steps for project test...
    08:19:09: Configuration unchanged, skipping qmake step.
    08:19:09: Starting: "/usr/bin/make"
    g++ -m32 -Wl,-rpath,/home/saag/Qt5.5.0/5.5/gcc -Wl,-rpath,/home/saag/Qt5.5.0/5.5/gcc/lib -o test main.o mainwindow.o moc_mainwindow.o -L/home/saag/Qt5.5.0/5.5/gcc/lib -lQt5Widgets -lQt5Gui -lQt5Core -lGL -lpthread
    /usr/bin/ld: cannot find -lGL
    collect2: error: ld returned 1 exit status
    make: *** [test] Error 1
    08:19:10: The process "/usr/bin/make" exited with code 2.
    Error while building/deploying project test (kit: Desktop Qt 5.5.0 GCC 32bit)
    When executing step "Make"
    08:19:10: Elapsed time: 00:01.
    [/code]

    I m using ubuntu 14.04. I have attached qt version screen shot(bcoz there two versions has been mentioned.)

    I have attched project too.
    Plz help with this.


  • Qt Champions 2016

    Hi
    is it a opengl program ?
    did you install the opengl
    http://askubuntu.com/questions/306703/compile-opengl-program-missing-gl-gl-h
    maybe
    sudo apt-get install libgl1-mesa-dev

    does a normal project work?



  • @mrjj said:

    sudo apt-get install libgl1-mesa-dev

    Thanks this command works.
    BTW, which library is this.


  • Qt Champions 2016

    @eppy
    its opengl library.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.