Results 1 to 9 of 9

Thread: Fortune Server and Client Example Programs

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jun 2017
    Posts
    19
    Thanks
    2
    Qt products
    Qt4 Qt5
    Platforms
    Windows

    Default Fortune Server and Client Example Programs

    Hello,
    I have compiled and ran Fortune Server and Client example programs that came with Qt as shown below:

    fortune_server_screen_01.PNG

    fortun_client_screen_01.PNG

    These two programs are working as shown above when I ran from Qt Creator Window.

    However, when I exit Qt Creator and directly run these two programs
    by double clicking on their exe file names in Microsoft Windows Explorer,
    these two programs are NOT starting and giving following errors:

    fortune_server_entry_point_error_screen_01.PNG

    May I please know how to run Qt programs by double clicking their exe file names in Microsoft Windows Explorer?

    I have server exe file at following location/path:

    Qt Code:
    1. C:\Qt\Qt_account_forum\build-fortuneserver-Desktop_Qt_5_9_0_MinGW_32bit-Debug\debug
    To copy to clipboard, switch view to plain text mode 

    Thanks

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Fortune Server and Client Example Programs

    The Qt dlls location nees ot be known to the exe.
    When you run it from QtCreator it provides the paths.
    When you run it from explorer the exe does not know where to look for the DLLs.
    You can either copy the DLLs to the same folder where your exe is, or add the Qt DLLs path to the PATH system variable.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  3. #3
    Join Date
    Jun 2017
    Posts
    19
    Thanks
    2
    Qt products
    Qt4 Qt5
    Platforms
    Windows

    Default Re: Fortune Server and Client Example Programs

    Hello high_flyer,
    Thank you very much.
    How to the find the location/path of DLL please?
    Or can you please let me know couple of DDL names?
    Then I can search for those names of DLLs on my computer and add their path to my environment variable.
    Best regards,

  4. #4
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Fortune Server and Client Example Programs

    The Qt DLLs are under: <The path of your Qt installation>/5.8/mingw491_32/bin/
    (In this case its Qt5.8, if you have another version, the '5.8' folder will reflect the version you installed.
    The above path is for Qt for windows which is built and deliverd with MinGW.
    If you installed the MSVC version, it should be similar, only instead of mingw491_32 something that sounds more microsoft like.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

Similar Threads

  1. Implementing a Fortune Server
    By KeineAhnung in forum Newbie
    Replies: 6
    Last Post: 20th June 2014, 17:05
  2. qtservice based on threaded fortune server
    By raj_iv in forum Qt Programming
    Replies: 1
    Last Post: 27th May 2011, 12:58
  3. Fortune Server example
    By babu198649 in forum Newbie
    Replies: 2
    Last Post: 19th February 2011, 09:04
  4. doubt in blocking fortune client example
    By wagmare in forum Qt Programming
    Replies: 9
    Last Post: 19th February 2009, 13: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.