Results 1 to 9 of 9

Thread: _Z5qFreePv en QtCore4.dll

  1. #1
    Join Date
    Oct 2010
    Posts
    11
    Thanks
    3
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default _Z5qFreePv en QtCore4.dll

    Hello,

    Up until now I've been developing with qwt in Linux. I'm trying now to compile my qwt project in Windows. These are the steps I've taken:

    1. Downloaded and installed qt-sdk-win-opensource-2010.05.exe
    2. Added \MinGW\bin to path
    3. Checked out "svn co https://qwt.svn.sourceforge.net/svnroot/qwt/branches/qwt-5.2"
    4. Edited .pri: CONFIG += release, CONFIG += QwtExamples
    5. Built qwt: qmake, mingw32-make


    Everything seems to go well, but when I run any example app I get the following error:

    "The procedure entry point _Z5qFreePv could not be located in the dynamic link library QtCore4.dll"

    The solution in this other thread hasn't worked for me:

    http://www.qtcentre.org/threads/1693...ght=_Z5qFreePv

    Any help would be much appreciated.

    Regards,
    Catto

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: _Z5qFreePv en QtCore4.dll

    You probably built Qwt with another version of Qt than the one that is used when the examples are executed.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Oct 2010
    Posts
    11
    Thanks
    3
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: _Z5qFreePv en QtCore4.dll

    Hello,

    Thanks for the quick reply. Could there be another reason for the problem? There's only one Qt version on the machine, the one I downloaded and installed on the fist step that I mentioned in the previous post.

    Regards.

  4. #4
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: _Z5qFreePv en QtCore4.dll

    Search your PC for QtCore4.dll. You WILL have more than one of them.

  5. #5
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: _Z5qFreePv en QtCore4.dll

    Quote Originally Posted by catto View Post
    There's only one Qt version on the machine, the one I downloaded and installed on the fist step that I mentioned in the previous post.
    If you downloaded the SDK the you have at least two versions of Qt.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  6. #6
    Join Date
    Oct 2010
    Posts
    11
    Thanks
    3
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: _Z5qFreePv en QtCore4.dll

    You're right. There are two versions, the one in C:\Qt\2010.05\bin and the one in C:\Qt\2010.05\qt\bin.
    How do they differ?

    The Qt Command Prompt, from which I built Qwt shows:

    QTDIR set to C:\Qt\2010.05\qt
    PATH set to C:\Qt\20010.05\qt\bin
    Adding C:\Qt\2010.05\bin to PATH

    --> why is the directory set to PATH different from the one added to PATH?

    I just executed qmake, mingw32-make to build qwt from that prompt. How must it be done so that the examples are correctly built and qwt can be included in the projects?

    Thanks.

  7. #7
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: _Z5qFreePv en QtCore4.dll

    One set of DLLs is used for QtCreator.
    The other set of DLLs is the actual Qt distribution.

    Since you may configure the Qt distribution to your own compiler and add or remove features from it, there needs to be a standard version for QtCreator. Otherwise as soon as you reconfigure Qt, QtCreator would stop working. Thats why there is two versions.

  8. #8
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: _Z5qFreePv en QtCore4.dll

    If you also count the debug compilation of Qt it makes the total of three Qt libraries sets within the SDK distro.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  9. The following user says thank you to wysota for this useful post:

    catto (3rd December 2010)

  10. #9

    Thumbs up Re: _Z5qFreePv en QtCore4.dll

    According to Squidge's reply I modified the path of the two Qcore4.dll and it works.

Similar Threads

  1. Replies: 7
    Last Post: 22nd May 2010, 09:52
  2. Replies: 7
    Last Post: 2nd October 2009, 00:03
  3. Difference between QtCore4.lib and QtCore.lib
    By Barry79 in forum Installation and Deployment
    Replies: 0
    Last Post: 11th August 2009, 10:33
  4. how to optimize the size of QtCore4.dll and QtGui4.dll
    By lovelypp in forum Qt Programming
    Replies: 1
    Last Post: 13th July 2008, 11:28
  5. Compiling QtCore4 and QtGUI4 as small as possible
    By pkirk25 in forum Qt Programming
    Replies: 5
    Last Post: 8th December 2006, 21:50

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.