Results 1 to 8 of 8

Thread: Error while executing the exe release file

  1. #1
    Join Date
    Aug 2010
    Posts
    62
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Error while executing the exe release file

    Hello!

    Hello!
    I'd like to built the final release version of my program. It's not the first time, previously I've already done it...

    From the first time I built the program in release mode I copied four Qt dlls into the exe folder...infact when I run into QtCreator (even in release mode) the program it goes but when I run the executable it needs the dlls (of course)...

    Now I've changed something in the code. I rebuild the project into debug mode and then into release mode. All goes ok but when I try to execute the new executable (the one in the "release" folder) it raises one error telling me that the program cannot run beacuse it cannot find the file QtCored4.dll
    Moreover if I run the program in release mode int oQtCreator it doesn't draw the menubar (I added it from the code)...instead in debug mode it goes all good...

    The strange is that, before this release, it needed the QtCore4.dll (without the "d" ).

    How can it be that it runs properly in debug mode into QtCreator but in the release version it asks for the library? And why if I run it from QtCreator in release mode, it doesn't show me the menu bar?

    Thanks

  2. #2
    Join Date
    Aug 2009
    Location
    Belgium
    Posts
    310
    Thanks
    10
    Thanked 31 Times in 25 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Error while executing the exe release file

    Hello,

    If it wants the QtCored4.dll (or any DLL ending with 'd') it means the .exe file is a debug build. Strange that it would appear in the 'release' folder.

    Have you tried a Build - Clean All and then rebuilding the project ?

    Best regards,
    Marc

  3. #3
    Join Date
    Aug 2010
    Posts
    62
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Error while executing the exe release file

    yes, lots of times!
    I've even created a new clean project and included the files but the error comes again...

  4. #4
    Join Date
    Aug 2009
    Location
    Belgium
    Posts
    310
    Thanks
    10
    Thanked 31 Times in 25 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Error while executing the exe release file

    Any luck already ?

  5. #5
    Join Date
    Aug 2010
    Posts
    62
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Error while executing the exe release file

    I've made another clean project and now it works...

  6. #6
    Join Date
    Sep 2010
    Posts
    8
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Error while executing the exe release file

    Hello,
    I have also problem with a release file. When I compile my program in release mode and try to run exe file I am getting an error:
    ...exe - Entry Point Not Found
    The procedure entry point _Z5qFreePv could not be located in the dynamic link library QtCore4.dll

    Could anybody help me to solve these problem?
    Thanks.

    PS: I am using Qt Creator 2.0.0 based on Qt 4.7.0 (32bit).

  7. #7
    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: Error while executing the exe release file

    @ramzes13: Use the QtCore4.dll from QT_INSTALL_FOLDER\qt\bin not the one from QT_INSTALL_FOLDER\bin

  8. #8
    Join Date
    Sep 2010
    Posts
    8
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Error while executing the exe release file

    Thank you for the comment. I just found that the problem was not in the dll stated in the error message! After I copied QtGui4.dll in the release folder I could run my program.
    ,Cheers

Similar Threads

  1. Replies: 2
    Last Post: 11th August 2010, 10:13
  2. Error while executing a application - Gtk WARNING
    By augusbas in forum Qt Programming
    Replies: 1
    Last Post: 12th June 2010, 12:25
  3. Replies: 2
    Last Post: 22nd July 2009, 14:14
  4. Error executing SELECT query with QSQLITE
    By garfield85 in forum Qt Programming
    Replies: 6
    Last Post: 25th May 2009, 18:05
  5. Executing SQL scripts from a file
    By William Wilson in forum Qt Programming
    Replies: 2
    Last Post: 30th August 2007, 19:28

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.