Results 1 to 3 of 3

Thread: QtCore and QtOpenGL fatal error

  1. #1
    Join Date
    Jul 2008
    Location
    Bangalore, India
    Posts
    24
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Question QtCore and QtOpenGL fatal error

    Hi, guys

    Could someone rectify this....
    I am using CMake to generate Visual Studio Express Edition 2008 solution files......

    I have configured CMake to choose Qt version as 4 and also set debug / release library directories,

    For instance...
    QT_CORE_LIBRARY_DEBUG - E:/Qt/4.4.1/lib/QtCored4.dll
    QT_CORE_LIBRARY_RELEASE - E:/Qt/4.4.1/lib/QtCore4.dll

    QT_OPENGL_LIBRARY_DEBUG - E:/Qt/4.4.1/lib/QtOpenGLd4.dll
    QT_OPENGL_LIBRARY_RELEASE - E:/Qt/4.4.1/lib/QtOpenGL4.dll

    and others....

    After building the Solution, why does an error such as this appear

    1>Linking...
    1>E:\Qt\4.4.1\lib\QtCored4.dll : fatal error LNK1107: invalid or corrupt file: cannot read at 0x308
    3>Linking...
    3>LINK : warning LNK4044: unrecognized option '/lopengl32'; ignored
    3>LINK : warning LNK4044: unrecognized option '/lglu32'; ignored
    3>LINK : warning LNK4044: unrecognized option '/lgdi32'; ignored
    3>LINK : warning LNK4044: unrecognized option '/luser32'; ignored
    3>E:\Qt\4.4.1\lib\QtOpenGLd4.dll : fatal error LNK1107: invalid or corrupt file: cannot read at 0x308

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: QtCore and QtOpenGL fatal error

    Try reinstalling Qt?
    J-P Nurmi

  3. #3
    Join Date
    Nov 2006
    Location
    Shrewsbury, UK
    Posts
    97
    Thanks
    3
    Thanked 11 Times in 11 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QtCore and QtOpenGL fatal error

    Try changing

    QT_CORE_LIBRARY_DEBUG - E:/Qt/4.4.1/lib/QtCored4.dll
    QT_CORE_LIBRARY_RELEASE - E:/Qt/4.4.1/lib/QtCore4.dll

    QT_OPENGL_LIBRARY_DEBUG - E:/Qt/4.4.1/lib/QtOpenGLd4.dll
    QT_OPENGL_LIBRARY_RELEASE - E:/Qt/4.4.1/lib/QtOpenGL4.dll

    to

    QT_CORE_LIBRARY_DEBUG - E:/Qt/4.4.1/lib/QtCored4.lib
    QT_CORE_LIBRARY_RELEASE - E:/Qt/4.4.1/lib/QtCore4.lib

    QT_OPENGL_LIBRARY_DEBUG - E:/Qt/4.4.1/lib/QtOpenGLd4.lib
    QT_OPENGL_LIBRARY_RELEASE - E:/Qt/4.4.1/lib/QtOpenGL4.lib

    The DLLs are executables, I suspect you'll find them in E:/Qt/4.4.1/bin - but you can't LINK to them - you should link to the LIBs. (You will need to ensure the E:/Qt/4.4.1/bin is referenced in your PATH environment).


    Pete

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.