Results 1 to 2 of 2

Thread: GL library missing for webchannel example

  1. #1
    Join Date
    Nov 2008
    Posts
    183
    Thanks
    13
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: GL library missing for webchannel example

    All,

    I'm probably just being thick on Sunday morning. I installed the 5.4.x everywhere package locally on Ubuntu 12.4.5 32-bit. After finding the qwebchannel.js file on-line and putting it in the proper place I try to build the example as is and receive the following:

    make: Entering directory `/home/developer/Qt5.4.2/Examples/Qt-5.4/webchannel/build-standalone-Desktop_Qt_5_4_2_GCC_32bit-Release'
    g++ -Wl,-O1 -Wl,-rpath,/home/developer/Qt5.4.2/5.4/gcc -Wl,-rpath,/home/developer/Qt5.4.2/5.4/gcc/lib -o standalone main.o websockettransport.o websocketclientwrapper.o moc_websockettransport.o moc_websocketclientwrapper.o -L/home/developer/Qt5.4.2/5.4/gcc/lib -lQt5Widgets -lQt5Gui -lQt5WebChannel -lQt5Qml -lQt5WebSockets -lQt5Network -lQt5Core -lGL -lpthread
    /usr/bin/ld: cannot find -lGL
    collect2: ld returned 1 exit status
    make: Leaving directory `/home/developer/Qt5.4.2/Examples/Qt-5.4/webchannel/build-standalone-Desktop_Qt_5_4_2_GCC_32bit-Release'
    make: *** [standalone] Error 1
    11:28:34: The process "/usr/bin/make" exited with code 2.
    Error while building/deploying project standalone (kit: Desktop Qt 5.4.2 GCC 32bit)
    When executing step "Make"

    Thick headed question 1: Since it doesn't have a Qt in front, is this version built to use openGL and I simply need to install openGL development files?

    I know, try it and find out ...but... I'm trying to come up with reproducible instructions for creating a development environment from bare metal so others can build their environments and they will all build the same. I don't want to randomly install things then figure out what actually worked.

    Thanks,


    Added after 50 minutes:


    I hate to admit it, but DuckDuckGo has let me down twice this weekend. Out of desperation I used bing.com and found this link. (Yes, using anything Microsoft is an act of sheer desperation for me <Grin>)

    http://stackoverflow.com/questions/1...annot-find-lgl

    which then inspired me to search further and find this link (sadly with bing again)

    http://stackoverflow.com/questions/1...file-or-direct

    Now on to the next hurdle with this example. Awful lot of people seem to be having trouble getting this example to build and run.
    Last edited by RolandHughes; 7th June 2015 at 19:31.

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: GL library missing for webchannel example

    If your system does not provide an OpenGL implementation then this will be the result of trying to build something that needs OpenGL. Install an OpenGL-capable video driver (or you could try Mesa) and the OpenGL developer bundle if your distro separates this out.

Similar Threads

  1. Replies: 3
    Last Post: 20th December 2012, 13:48
  2. Missing library? "cannot find -lQtMessaging"
    By sedi in forum Installation and Deployment
    Replies: 1
    Last Post: 14th May 2012, 08:46
  3. Dynamic library on Mac, Library not loaded
    By grayfox in forum Newbie
    Replies: 2
    Last Post: 2nd July 2011, 03:42
  4. Replies: 2
    Last Post: 19th February 2011, 12:26
  5. Replies: 4
    Last Post: 18th December 2009, 19:55

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.