Results 1 to 3 of 3

Thread: How to run my qt4 application programms(executables)

  1. #1
    Join Date
    Jan 2007
    Posts
    38
    Thanks
    12
    Qt products
    Qt4
    Platforms
    Windows

    Default How to run my qt4 application programms(executables)

    I am using qt 4.2.0.

    I notice that i am able to run my qt application programms in visual studio .net 2003 (with qt vs integration)

    but if i double click on the executable file (project_name.exe) i get a message saying:

    cannot start program as QtCored.dll cannot be found.

    After the project is compiled in visual studio, can't the executable be run on its own, apart from the rest of the files in the project?

    and are codes from qt libraries not added to the c++ code i write to produce one executable,

    i don't understand this, please enlighten my darkness here.

    thanks for your time and attention.

  2. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to run my qt4 application programms(executables)

    Are ur paths set correctly ??

    Also in 4.2 the file must be QtCored4.dll ... was the excutable also made in Qt 4.2.0 ?? or u copied some program and trying to run it ??

  3. #3
    Join Date
    Aug 2006
    Posts
    44
    Thanked 7 Times in 7 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: How to run my qt4 application programms(executables)

    In the debugger environment, the Qt DLLs are located on your behalf. When you launch the app directly, it's relying upon the standard rules for locating DLLs.

    So, what aamer4yu said, in short is true... Check your paths.

    When I'm just doing quick & dirty testing, I often just copy the Qt DLLs I need next to the executable to run it.

    Another alternative would be to use static libraries rather than dynamic ones.

Similar Threads

  1. Replies: 3
    Last Post: 6th March 2007, 18:24
  2. Replies: 3
    Last Post: 8th December 2006, 18:51
  3. Application default font
    By larry104 in forum Qt Programming
    Replies: 2
    Last Post: 16th September 2006, 01:24
  4. Gnome makes application crash
    By regix in forum Qt Programming
    Replies: 35
    Last Post: 18th August 2006, 19:44
  5. Replies: 3
    Last Post: 31st March 2006, 18:38

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.