Results 1 to 2 of 2

Thread: Linking glut to Qt

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

    Default Linking 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
    Oct 2010
    Location
    Bangalore
    Posts
    52
    Thanks
    8
    Thanked 9 Times in 9 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Linking glut to Qt

    open .pro file in Qtcreator give right click in pro file click add library and choose external library and specify your library path ...

Similar Threads

  1. QT minimal Glut code - no library linking required
    By rucs_hack in forum Qt Programming
    Replies: 5
    Last Post: 3rd October 2013, 08:30
  2. How to Link glut to Qt
    By Mashkur in forum Newbie
    Replies: 1
    Last Post: 14th October 2012, 16:54
  3. How to link glut.h?
    By connect_qt in forum Newbie
    Replies: 3
    Last Post: 15th November 2011, 22:14
  4. Linking GLUT with QT
    By TheBogeyMan in forum Newbie
    Replies: 1
    Last Post: 10th October 2011, 18:41
  5. Qi with glut
    By hudi in forum Qt Programming
    Replies: 7
    Last Post: 14th April 2010, 11:41

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.