Results 1 to 4 of 4

Thread: QGLWidget release build problem

  1. #1
    Join Date
    Nov 2010
    Posts
    2
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default QGLWidget release build problem

    Hey guys,

    First this is my first post, so Hey!
    Secondly I have an application for work were I use the QGLWidget class. This works all fine and well when I'm doing a debug build, but when I do a release build it builds fine but the application exits with code 1 when it hits the QGLWidget constructor.

    thank you,
    Rob (RauBurger)

    Also this is on windows xp using 4.7.0 (I have tried it with 4.7.1 to no avail) using vs2008 pro with the qt addin
    Last edited by RauBurger; 30th November 2010 at 20:35.

  2. #2
    Join Date
    Aug 2008
    Location
    Algarve, Portugal
    Posts
    288
    Thanks
    23
    Thanked 32 Times in 28 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60

    Default Re: QGLWidget release build problem

    It would help if you show us a code snippet of your program, but I'm guessing if it works on debug, check for variables wich havent been initilized. Also check if there is any of qt dll files (qtgui.dll , qtcore.dll, ...) in your windows/system dir. If they are from older versions than can be the problem, windows will first try to link to those dll's, that causes the crush.
    __________________________________________________
    My projects: calculator MathGraphica ; SuperEpicMegaHero game ; GooglePlay ; bitbucket ; github
    Like my projects ? Buy me a kofi

  3. #3
    Join Date
    Nov 2010
    Posts
    2
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QGLWidget release build problem

    Thanks for your reply, however this did get fixed when I statically built qt and linked against that (that was the overall goal for this project any way). So I know it's not a real fix but it's a work around that works for us.

  4. #4
    Join Date
    Aug 2008
    Location
    Algarve, Portugal
    Posts
    288
    Thanks
    23
    Thanked 32 Times in 28 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60

    Default Re: QGLWidget release build problem

    That really seems like a wrong dll in windows system in wich case it's not problem of your code but windows itself. Linking statically solves the problem because terminates with dll dependencys. For dinamic linking, overriding the windows system dll's with newer versions would solve it.
    __________________________________________________
    My projects: calculator MathGraphica ; SuperEpicMegaHero game ; GooglePlay ; bitbucket ; github
    Like my projects ? Buy me a kofi

Similar Threads

  1. [Release] problem with mysql, relaease build on another machine
    By kornicameister in forum Qt Programming
    Replies: 5
    Last Post: 5th October 2010, 12:31
  2. Build release and run error
    By gabriele in forum Newbie
    Replies: 11
    Last Post: 16th February 2010, 21:23
  3. Replies: 3
    Last Post: 3rd December 2009, 16:12
  4. XCode and Qt4.3 Release Build
    By themolecule in forum Qt Programming
    Replies: 0
    Last Post: 12th August 2007, 07:20
  5. .png not displayed with release build
    By mnemonic_fx in forum Qt Tools
    Replies: 1
    Last Post: 5th July 2007, 09: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.