Results 1 to 2 of 2

Thread: Cant link with opengl

  1. #1
    Join Date
    Oct 2010
    Posts
    2
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows Symbian S60

    Default Cant link with opengl

    Hi,
    I am working with QT creator 4.7 windows:
    Trying to build opengl fails with link errors, see output below.
    From what I read in other places, my configuration is ok.

    Now it's strange ... If I select build menu every thing goes well, it's just when I press the F5 or run button then suddenly it tries to build / run and fails with link errors..

    output log:
    ======================================
    Qt Code:
    1. Running build steps for project qmpwidget...
    2. Configuration unchanged, skipping qmake step.
    3. Starting: "C:/Qt/2010.04/mingw/bin/mingw32-make.exe" -w
    4. mingw32-make: Entering directory `C:/Downloads/qmpwidget'
    5. cd src\ && C:/Qt/2010.04/mingw/bin/mingw32-make -f Makefile
    6. mingw32-make[1]: Entering directory `C:/Downloads/qmpwidget/src'
    7. C:/Qt/2010.04/mingw/bin/mingw32-make -f Makefile.Debug
    8. mingw32-make[2]: Entering directory `C:/Downloads/qmpwidget/src'
    9. mingw32-make[2]: Nothing to be done for `first'.
    10. mingw32-make[2]: Leaving directory `C:/Downloads/qmpwidget/src'
    11. mingw32-make[1]: Leaving directory `C:/Downloads/qmpwidget/src'
    12. cd demo\ && C:/Qt/2010.04/mingw/bin/mingw32-make -f Makefile
    13. mingw32-make[1]: Entering directory `C:/Downloads/qmpwidget/demo'
    14. C:/Qt/2010.04/mingw/bin/mingw32-make -f Makefile.Debug
    15. mingw32-make[2]: Entering directory `C:/Downloads/qmpwidget/demo'
    16. g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -mthreads -Wl -Wl,-subsystem,windows -o ..\qmpdemo.exe debug/main.o -L".." -L"c:\Qt\2010.04\qt\lib" -lopengl32 -lglu32 -lgdi32 -luser32 -lmingw32 -lqtmaind -lqmpwidget -lQtOpenGLd4 -lQtGuid4 -lQtNetworkd4 -lQtCored4
    17. mingw32-make[2]: Leaving directory `C:/Downloads/qmpwidget/demo'
    18. mingw32-make[1]: Leaving directory `C:/Downloads/qmpwidget/demo'
    19. mingw32-make: Leaving directory `C:/Downloads/qmpwidget'
    20. ../libqmpwidget.a(qmpwidget.o):qmpwidget.cpp:(.text$_ZN20QMPOpenGLVideoWidget13showUserImageERK6QImage[QMPOpenGLVideoWidget::showUserImage(QImage const&)]+0xaa): undefined reference to `glTexParameterf@12'
    21. ../libqmpwidget.a(qmpwidget.o):qmpwidget.cpp:(.text$_ZN20QMPOpenGLVideoWidget13showUserImageERK6QImage[QMPOpenGLVideoWidget::showUserImage(QImage const&)]+0xca): undefined reference to `glTexParameterf@12'
    22. ../libqmpwidget.a(qmpwidget.o):qmpwidget.cpp:(.text$_ZN20QMPOpenGLVideoWidget13showUserImageERK6QImage[QMPOpenGLVideoWidget::showUserImage(QImage const&)]+0x11f): undefined reference to `glViewport@16'
    23. ../libqmpwidget.a(qmpwidget.o):qmpwidget.cpp:(.text$_ZN20QMPOpenGLVideoWidget12displayImageERK6QImage[QMPOpenGLVideoWidget::displayImage(QImage const&)]+0x96): undefined reference to `glTexParameterf@12'
    24. ../libqmpwidget.a(qmpwidget.o):qmpwidget.cpp:(.text$_ZN20QMPOpenGLVideoWidget12displayImageERK6QImage[QMPOpenGLVideoWidget::displayImage(QImage const&)]+0xb6): undefined reference to `glTexParameterf@12'
    25. ../libqmpwidget.a(qmpwidget.o):qmpwidget.cpp:(.text$_ZN20QMPOpenGLVideoWidget12initializeGLEv[QMPOpenGLVideoWidget::initializeGL()]+0xe): undefined reference to `glEnable@4'
    26. ../libqmpwidget.a(qmpwidget.o):qmpwidget.cpp:(.text$_ZN20QMPOpenGLVideoWidget12initializeGLEv[QMPOpenGLVideoWidget::initializeGL()]+0x39): undefined reference to `glClearColor@16'
    27. ../libqmpwidget.a(qmpwidget.o):qmpwidget.cpp:(.text$_ZN20QMPOpenGLVideoWidget12initializeGLEv[QMPOpenGLVideoWidget::initializeGL()]+0x52): undefined reference to `glClearDepth@8'
    28. ../libqmpwidget.a(qmpwidget.o):qmpwidget.cpp:(.text$_ZN20QMPOpenGLVideoWidget8resizeGLEii[QMPOpenGLVideoWidget::resizeGL(int, int)]+0x3c): undefined reference to `glViewport@16'
    29. ../libqmpwidget.a(qmpwidget.o):qmpwidget.cpp:(.text$_ZN20QMPOpenGLVideoWidget7paintGLEv[QMPOpenGLVideoWidget::paintGL()]+0x11): undefined reference to `glClear@4'
    30. ../libqmpwidget.a(qmpwidget.o):qmpwidget.cpp:(.text$_ZN20QMPOpenGLVideoWidget7paintGLEv[QMPOpenGLVideoWidget::paintGL()]+0x19): undefined reference to `glLoadIdentity@0'
    31. ../libqmpwidget.a(qmpwidget.o):qmpwidget.cpp:(.text$_ZN20QMPOpenGLVideoWidget7paintGLEv[QMPOpenGLVideoWidget::paintGL()]+0x3d): undefined reference to `glBindTexture@8'
    32. ../libqmpwidget.a(qmpwidget.o):qmpwidget.cpp:(.text$_ZN20QMPOpenGLVideoWidget7paintGLEv[QMPOpenGLVideoWidget::paintGL()]+0x136): undefined reference to `glViewport@16'
    33. ../libqmpwidget.a(qmpwidget.o):qmpwidget.cpp:(.text$_ZN20QMPOpenGLVideoWidget7paintGLEv[QMPOpenGLVideoWidget::paintGL()]+0x145): undefined reference to `glBegin@4'
    34. ../libqmpwidget.a(qmpwidget.o):qmpwidget.cpp:(.text$_ZN20QMPOpenGLVideoWidget7paintGLEv[QMPOpenGLVideoWidget::paintGL()]+0x15e): undefined reference to `glTexCoord2f@8'
    35. ../libqmpwidget.a(qmpwidget.o):qmpwidget.cpp:(.text$_ZN20QMPOpenGLVideoWidget7paintGLEv[QMPOpenGLVideoWidget::paintGL()]+0x177): undefined reference to `glVertex2f@8'
    36. ../libqmpwidget.a(qmpwidget.o):qmpwidget.cpp:(.text$_ZN20QMPOpenGLVideoWidget7paintGLEv[QMPOpenGLVideoWidget::paintGL()]+0x190): undefined reference to `glTexCoord2f@8'
    37. ../libqmpwidget.a(qmpwidget.o):qmpwidget.cpp:(.text$_ZN20QMPOpenGLVideoWidget7paintGLEv[QMPOpenGLVideoWidget::paintGL()]+0x1a9): undefined reference to `glVertex2f@8'
    38. ../libqmpwidget.a(qmpwidget.o):qmpwidget.cpp:(.text$_ZN20QMPOpenGLVideoWidget7paintGLEv[QMPOpenGLVideoWidget::paintGL()]+0x1c2): undefined reference to `glTexCoord2f@8'
    39. ../libqmpwidget.a(qmpwidget.o):qmpwidget.cpp:(.text$_ZN20QMPOpenGLVideoWidget7paintGLEv[QMPOpenGLVideoWidget::paintGL()]+0x1db): undefined reference to `glVertex2f@8'
    40. ../libqmpwidget.a(qmpwidget.o):qmpwidget.cpp:(.text$_ZN20QMPOpenGLVideoWidget7paintGLEv[QMPOpenGLVideoWidget::paintGL()]+0x1f4): undefined reference to `glTexCoord2f@8'
    41. ../libqmpwidget.a(qmpwidget.o):qmpwidget.cpp:(.text$_ZN20QMPOpenGLVideoWidget7paintGLEv[QMPOpenGLVideoWidget::paintGL()]+0x20d): undefined reference to `glVertex2f@8'
    42. ../libqmpwidget.a(qmpwidget.o):qmpwidget.cpp:(.text$_ZN20QMPOpenGLVideoWidget7paintGLEv[QMPOpenGLVideoWidget::paintGL()]+0x215): undefined reference to `glEnd@0'
    43. collect2: ld returned 1 exit status
    44. mingw32-make[2]: *** [..\qmpdemo.exe] Error 1
    45. mingw32-make[1]: *** [debug] Error 2
    46. mingw32-make: *** [sub-demo-make_default-ordered] Error 2
    47. The process "C:/Qt/2010.04/mingw/bin/mingw32-make.exe" exited with code %2.
    48. Error while building project qmpwidget (target: Desktop)
    49. When executing build step 'Make'
    To copy to clipboard, switch view to plain text mode 

  2. #2
    Join Date
    Oct 2010
    Posts
    2
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows Symbian S60

    Question Re: Cant link with opengl

    Still can't link .. my system is newly installed from the latest build ...

    Anyone?

Similar Threads

  1. How to link .exe to dll ?
    By babygal in forum Newbie
    Replies: 19
    Last Post: 19th May 2010, 09:30
  2. Replies: 0
    Last Post: 6th December 2009, 00:41
  3. Qt with OpenGL ES for ARM9 - All OpenGL ES tests have failed!
    By vinpa in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 3rd December 2009, 10:10
  4. Problem from OpenGL to QT OpenGL
    By nuts_fever_007 in forum Newbie
    Replies: 5
    Last Post: 15th May 2009, 09:37
  5. How I link a dll?
    By brevleq in forum Qt Programming
    Replies: 3
    Last Post: 15th December 2007, 02:39

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.