Results 1 to 2 of 2

Thread: How to Link glut to Qt

  1. #1
    Join Date
    Oct 2012
    Posts
    4
    Qt products
    Qt4
    Platforms
    Windows

    Default How to Link glut to Qt

    Hey guys . I am new to Qt Creator. I am writing my code using openGL and I don't know how link glut to Qt. I have glut library(glut32.lib) and header file(glut.h) but i don't know where to copy them so that i can create a link between Qt and Glut....Whenever I try to compile the code I get the following two errors. Please help me debugging these errors....
    1):: error: cannot find -lglut
    2):: error: collect2: ld returned 1 exit status

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

    Default Re: How to Link glut to Qt

    Use -L switch to point the linker to the directory where you placed the lib file.
    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. The following user says thank you to wysota for this useful post:


Similar Threads

  1. How to link glut.h?
    By connect_qt in forum Newbie
    Replies: 3
    Last Post: 15th November 2011, 22:14
  2. Linking GLUT with QT
    By TheBogeyMan in forum Newbie
    Replies: 1
    Last Post: 10th October 2011, 18:41
  3. Replies: 11
    Last Post: 5th May 2011, 14:05
  4. Qi with glut
    By hudi in forum Qt Programming
    Replies: 7
    Last Post: 14th April 2010, 11:41
  5. How to link GLUT to Qt Project?
    By Lawand in forum Newbie
    Replies: 5
    Last Post: 20th March 2010, 20:29

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.