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. Facing problem while compiling 1st code
Forum Updated to NodeBB v4.3 + New Features

Facing problem while compiling 1st code

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 728 Views 1 Watching
  • 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.
  • E Offline
    E Offline
    eppy
    wrote on last edited by
    #1

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

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

      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?

      1 Reply Last reply
      0
      • E Offline
        E Offline
        eppy
        wrote on last edited by
        #3

        @mrjj said:

        sudo apt-get install libgl1-mesa-dev

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

        mrjjM 1 Reply Last reply
        0
        • E eppy

          @mrjj said:

          sudo apt-get install libgl1-mesa-dev

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

          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @eppy
          its opengl library.

          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