Results 1 to 3 of 3

Thread: Qt,big problem,with OpenGl Bulid's

  1. #1
    Join Date
    Aug 2015
    Posts
    6
    Thanks
    1
    Thanked 1 Time in 1 Post
    Qt products
    Qt5

    Unhappy Qt,big problem,with OpenGl Bulid's

    (I am not from USA,or etc,country,sorry for low eng.)

    Hi!I have big problem,with OpenGL.

    I got this errors:


    :-1: error: skipping incompatible C:/Programy/Programowanie/QT_Library/qt-5.3.2-x64-mingw491r1-sjlj/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.1/../../../../lib/glut32.lib when searching for -lglut32

    :-1: error: skipping incompatible C:/Programy/Programowanie/QT_Library/qt-5.3.2-x64-mingw491r1-sjlj/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.1/../../../../lib/glut32.dll when searching for -lglut32(SAME ERROR X 11!!)

    :-1: error: cannot find -lglut32

    collect2.exe:-1: error: error: ld returned 1 exit status


    Project file:

    QT += core gui opengl(Work good)

    LIBS += -lglut32
    LIBS += -LC:\Programy\Programowanie\QT_Library\qt-5.3.2-x64-mingw491r1-sjlj\mingw64\lib\glut32.LIB\(Doesn't work)
    LIBS += -LC:\Programy\Programowanie\QT_Library\qt-5.3.2-x64-mingw491r1-sjlj\mingw64\lib\glut32.LIB(Not work to)
    LIBS += -LC:\Programy\Programowanie\QT_Library\qt-5.3.2-x64-mingw491r1-sjlj\mingw64\lib\(This to)


    Only "LIBS += -lglut32"
    Got error:
    :-1: error: cannot find -lglut32
    collect2.exe:-1: error: error: ld returned 1 exit status(I am not sure,but probably too)


    I install:

    https://www.opengl.org/resources/lib...dlls37beta.zip
    http://www.opengl.org/resources/libr...it.tar.gz(With this,i edit glut32.mak,and i put patch to files,but i got the same errors)
    https://www.opengl.org/resources/lib...lut/glut37.zip



    Nothing work,when i try,to show"glutwirecube",and etc. objects,doesn't wort to.
    I got error "Undefined reference to: (Object name,ex.glutWireCone)"
    I have QTx64,i think,and MinGw 64bits,i try to compile OpenGL with 32 bit's,compiler,but nothing happened.


    Maybe my Qt is uncompatible?????I lost around 8h......
    I have Win 7 Ultimate 64bit.

    NEED HELP!!



    PS.I read more thread's,about this OpenGl problems,but nothing work.
    Last edited by LOC_; 28th August 2015 at 20:12.

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

    Default Re: Qt,big problem,with OpenGl Bulid's

    The GLUT Libraries you have were built with a Microsoft compiler. The resultIng import library (the .lib file) is not compatible with the MinGW compiler you are using to build your project.

    You will likely have to build GLUT from source with the MinGW compiler.

  3. #3
    Join Date
    Aug 2015
    Posts
    6
    Thanks
    1
    Thanked 1 Time in 1 Post
    Qt products
    Qt5

    Default Re: Qt,big problem,with OpenGl Bulid's

    What i must run,to do this??

Similar Threads

  1. Problem with opengl
    By rajg in forum Newbie
    Replies: 13
    Last Post: 31st July 2012, 07:37
  2. Problem from OpenGL to QT OpenGL
    By nuts_fever_007 in forum Newbie
    Replies: 5
    Last Post: 15th May 2009, 09:37
  3. OpenGL problem
    By babu198649 in forum Installation and Deployment
    Replies: 1
    Last Post: 27th February 2008, 11:31
  4. opengl problem
    By drinu21 in forum Qt Programming
    Replies: 3
    Last Post: 28th December 2007, 11:30

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.