Results 1 to 10 of 10

Thread: problem with dll and executable when i use openGL widget

  1. #1
    Join Date
    May 2011
    Posts
    122
    Thanks
    34
    Platforms
    Windows

    Default problem with dll and executable when i use openGL widget

    Hello world,

    with Qt i use openGL widget to do 3D plot. It's works nice but when i launch the executable i have a ugly mistake message:

    http://imageshack.us/photo/my-images...xecutable.jpg/

    it's strange because i have put all .dll ...
    libgcc_s_dw2-1
    mingwm10
    QtCore4
    QtGui4
    QtOpenGL4
    QtSvg4

  2. #2
    Join Date
    Jan 2006
    Location
    Napoli, Italy
    Posts
    621
    Thanks
    5
    Thanked 86 Times in 81 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: problem with dll and executable when i use openGL widget

    are all libraries in your PATH?
    A camel can go 14 days without drink,
    I can't!!!

  3. #3
    Join Date
    May 2011
    Posts
    122
    Thanks
    34
    Platforms
    Windows

    Default Re: problem with dll and executable when i use openGL widget

    Quote Originally Posted by mcosta View Post
    are all libraries in your PATH?
    it's the .dll that they are in my path with the executable

  4. #4
    Join Date
    May 2011
    Posts
    122
    Thanks
    34
    Platforms
    Windows

    Default Re: problem with dll and executable when i use openGL widget

    Here is the error message that appears:

    entry point not found for _z5qfreePv QtCore4.dll

    I took the file QtCore4.dll in the address:

    Qt Code:
    1. C: \ QtSDK \ QtCreator \ bin
    To copy to clipboard, switch view to plain text mode 

    can you tell me how to solve this?? (I compile in release mode)

    ps: Here is a screenshot of what I have:

    http://imageshack.us/photo/my-images/89/mypath.jpg/

  5. #5
    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: problem with dll and executable when i use openGL widget

    You are using the wrong ones. Try the ones from C:\QtSDK\Desktop\Qt\4.7.3\mingw\bin
    __________________________________________________
    My projects: calculator MathGraphica ; SuperEpicMegaHero game ; GooglePlay ; bitbucket ; github
    Like my projects ? Buy me a kofi

  6. #6
    Join Date
    May 2011
    Posts
    122
    Thanks
    34
    Platforms
    Windows

    Default Re: problem with dll and executable when i use openGL widget

    thank for your help,
    i have test but now i have a problem with Gui4.dll:

    http://imageshack.us/photo/my-images/51/test2xa.jpg/

  7. #7
    Join Date
    Dec 2009
    Posts
    128
    Thanks
    7
    Thanked 14 Times in 14 Posts
    Platforms
    Unix/X11 Windows

    Default Re: problem with dll and executable when i use openGL widget

    Hi

    Regarding the image you linked here, it seems your Qt dlls are not exactly from the same build :

    Although your core and gui are 4.7.1, your QtOpenGL dll is 4.7.3.

    Is it normal ? How did you set up your development environment ?

  8. #8
    Join Date
    May 2011
    Posts
    122
    Thanks
    34
    Platforms
    Windows

    Default Re: problem with dll and executable when i use openGL widget

    ha! i don't understand why y haven't the same version for openGL...
    i use Qt and i just use the QtGLWidget

    => i don't understand why my Qt don't use the good openGL...

  9. #9
    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: problem with dll and executable when i use openGL widget

    That's not the first time ths issue comes in this forum, just make sure you have all the dll from the same directory. Also you can check this treaths to learn more about dll in windows

    http://www.qtcentre.org/threads/2660...ase-mode/page2

    http://arstechnica.com/microsoft/new...-new-again.ars


    The dll's you first use were compiled with MSVC for use in QtCretor, but probably you are using QTSDK, then your programs are compiled with Mingw, so they are incompatible, this can be confusing and cause this type of errors, so just avoid mixing librarys from those different directories

    Regards
    Joao
    Last edited by john_god; 6th July 2011 at 13:42.
    __________________________________________________
    My projects: calculator MathGraphica ; SuperEpicMegaHero game ; GooglePlay ; bitbucket ; github
    Like my projects ? Buy me a kofi

  10. #10
    Join Date
    May 2011
    Posts
    122
    Thanks
    34
    Platforms
    Windows

    Default Re: problem with dll and executable when i use openGL widget

    yes! i have find the problem thank you :-)

    i got in:

    => QtSDK/desktop/Qt/4.7.3/mingw/lib


Similar Threads

  1. keyboard and openGL widget
    By 21did21 in forum Qt Programming
    Replies: 11
    Last Post: 5th July 2011, 14:27
  2. Problem deploying a two library + executable application to windows
    By joseprl89 in forum Installation and Deployment
    Replies: 8
    Last Post: 15th March 2011, 20:52
  3. QProcess problem to start executable
    By cydside in forum Qt Programming
    Replies: 3
    Last Post: 17th June 2010, 18:48
  4. Replies: 1
    Last Post: 28th August 2008, 21:18
  5. Crash when minimizing OpenGL widget
    By MistaPain in forum Qt Programming
    Replies: 5
    Last Post: 7th October 2006, 16:58

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
  •  
Qt is a trademark of The Qt Company.