Results 1 to 3 of 3

Thread: cannot find -lGL (Windows)

  1. #1
    Join Date
    Feb 2010
    Posts
    21
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default cannot find -lGL (Windows)

    Hi...

    I'm migrating my qt 4.8 code to 5.1.1. The application will run in Linux, Windows, and Mac in some moment.

    My development OS is Linux, I already migrate all the code and everything looks good, except the last build step, it gave me this error:
    c:/qt/tools/mingw48_32/bin/../lib/gcc/i686-w64-mingw32/4.8.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lGL
    collect2.exe: error: ld returned 1 exit status

    Similar, or "equal" error were solved adding opengl libraries to the system, in Linux. But what I can do in Windows? Same solution? How?

    The application build and all Windows (Windows 7 64) related work is by using virtual machines (VirtualBox and Fusion).

    And a very important question for me right now, since qt "needs" this libraries on build, my application will have a opengl related dependency? There is a definitively way to disable this?

    Right now, it scares me a lot, since previous versions of my application has no dependencies beyond qt libraries.

    ... and what about Mac? Same situation?

    Thanks in advance

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,365
    Thanks
    3
    Thanked 5,014 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: cannot find -lGL (Windows)

    Quote Originally Posted by nomadscarecrow View Post
    But what I can do in Windows? Same solution? How?
    I'd suggest using a version of Qt build with ANGLE which will require directx instead.

    There is a definitively way to disable this?
    Yes, you can rebuild Qt without OpenGL support.

    ... and what about Mac? Same situation?
    Yes. QtGui now depends on OpenGL by default.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Feb 2010
    Posts
    21
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: cannot find -lGL (Windows)

    Hi... thanks for answering.

    Because other work stuff get me out of my qt project for some time... I'm back.
    Right now, I get Qt build: -opengl -angle +openssl +static +release
    It gets me a lot of work, since I did not find documentation to get this build. Apparently there are a lot of people out there trying to get static builds in many Qt versions with no success.

    My current problem with the static build is a issue I ask here.
    But now, the solution I found in that moment is not working and giving me the same error:
    windres: Project_resource.rc:8: syntax error

    In that moment my problem was gone inserting this information to the pro file:
    VERSION = 0.000
    QMAKE_TARGET_COMPANY = company
    QMAKE_TARGET_PRODUCT = product
    QMAKE_TARGET_DESCRIPTION = description
    QMAKE_TARGET_COPYRIGHT = copyright

    But now, it doesn't work.

    Any idea?

    Thanks in advance.

Similar Threads

  1. Find List of Special Folders in Windows
    By Dilshad in forum Qt Programming
    Replies: 6
    Last Post: 13th February 2012, 05:13
  2. Find QtGstreamer windows dev sdk
    By linuxway in forum Qt Programming
    Replies: 0
    Last Post: 21st December 2011, 15:08
  3. Error building qt windows 7: ld.exe: cannot find ljscore
    By Ahas in forum Installation and Deployment
    Replies: 2
    Last Post: 18th May 2011, 14:03
  4. Replies: 4
    Last Post: 30th November 2010, 15:48
  5. Where i can find qmake in Windows Vista?
    By priya in forum Newbie
    Replies: 4
    Last Post: 1st September 2010, 08:05

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.