Results 1 to 4 of 4

Thread: Errors after compiling for Win

  1. #1
    Join Date
    Aug 2010
    Location
    Joplin, Mo
    Posts
    15
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Errors after compiling for Win

    In an earlier post (http://www.qtcentre.org/threads/3364...gnal-to-a-slot) I submitted some code for help. I got this app working & then tried to compile it again on my Win7x64 machine. It works when I run it from Qt Creator, but when I try to run it on it's own I get errors about missing dll's (mingwm10.dll, libgcc_s_dw2-1.dll & QtCore4.dll). As each error occured I located & copied each dll into the working directory which eliminated that error but led to the next. After copying QtCore4.dll I got the following error:

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

    I just installed the Qt SDK with MinGW & added them to my Path.

    I'm hoping someone can help me figure out what I have to do to make an app run in Win.

    Thanks for any help,

    Ed

  2. #2
    Join Date
    May 2010
    Location
    Romania
    Posts
    1,021
    Thanks
    62
    Thanked 260 Times in 246 Posts
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: Errors after compiling for Win

    Copy the QtCore4.dll and others Qt dlls from the path: INSTALL_PATH_TO_QT_SDK\2010.04\qt\bin (the ones from INSTALL_PATH_TO_QT_SDK\2010.04\bin will not work with your application, there are different versions)

    LE: Or add that path (INSTALL_PATH_TO_QT_SDK\2010.04\qt\bin) to environment variables

  3. #3
    Join Date
    Aug 2010
    Location
    Joplin, Mo
    Posts
    15
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Errors after compiling for Win

    The actual path(s) to those files are c:\Qt\2010.04\qt\bin & c:\Qt\2010.04\mingw\bin. I've copied all the files into the working directory of the app & I've added those paths to the PATH environment variable. No go. Isn't there some way to link to those files during the build?

    Ed

  4. #4
    Join Date
    Aug 2010
    Location
    Joplin, Mo
    Posts
    15
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Errors after compiling for Win

    I deleted all the files in the project except for the header & source & project files. Recreated the project & rebuilt. Don't know what the difference is this time, but it works from my desktop so I guess it's fixed.

    Actually, now I'm wondering if it will work on any computer or if I'll have to distribute a bunch of dll's with it?

    Thanx,

    Ed
    Last edited by cejohnsonsr; 26th August 2010 at 22:48. Reason: updated contents

Similar Threads

  1. Compiling errors - can't find the libraries
    By magelet in forum Newbie
    Replies: 7
    Last Post: 24th May 2010, 08:24
  2. Strange Errors while compiling (QT Header Files)
    By DrDonut in forum Qt Programming
    Replies: 5
    Last Post: 21st May 2009, 13:10
  3. errors with compiling qt-embedded-linux-opensource-4.4.3
    By dycjiaoda in forum Installation and Deployment
    Replies: 4
    Last Post: 17th April 2009, 15:56
  4. C++ Compiling Errors when use Visual Studio 6.0
    By seguprasad in forum General Programming
    Replies: 1
    Last Post: 3rd February 2009, 11:47
  5. compiling errors when using opengl and debug
    By invictus in forum Newbie
    Replies: 3
    Last Post: 31st March 2008, 06:16

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.