Results 1 to 5 of 5

Thread: windows deployment of Qt<while Font class usage>

  1. #1
    Join Date
    Nov 2015
    Posts
    8
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded Qt Jambi PyQt3 PyQt4
    Platforms
    Windows

    Unhappy windows deployment of Qt<while Font class usage>

    Hi All,

    currently we are developing a Qt dll with Qfontmetrics and Qrawfont.
    this has been created as shared library.

    We will call this Qt dll from windows application to calculate the values.
    This environment is working fine in the development PC where the Qt package is installed.

    Rather, the below error is getting displayed in the PC which does not have Qt installed while executing this application.
    Error Content:
    This application failed to start because it could not find or load the qt platform plugin "windows".

    We have checked blog and added the qwindows.dll as below, BUT still the problem not solved.

    - Application.dll
    - Required Qt dlls
    - /plugins
    -/platforms
    - qwindows.dll
    List of required dll set also placed below.
    <Required Qt dlls>:
    icudt51.dll
    icudt52.dll
    icuin51.dll
    icuin52.dll
    icuuc51.dll
    icuuc52.dll
    libEGL.dll
    libEGLd.dll
    libgcc_s_dw2-1.dll
    libGLESv2.dll
    libGLESv2d.dll
    libKM_Harfbuzz.a
    libstdc++-6.dll
    libwinpthread-1.dll
    Qt5Core.dll
    Qt5Cored.dll
    Qt5Gui.dll
    Qt5Guid.dll
    Qt5Sql.dll
    Qt5Widgets.dll
    Qt5Widgetsd.dll
    QtCore4.dll

    Could any one please tell me how to fix this issue.

    -Magesh

  2. #2
    Join Date
    Nov 2015
    Posts
    8
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded Qt Jambi PyQt3 PyQt4
    Platforms
    Windows

    Default Re: windows deployment of Qt<while Font class usage>

    Guys

    Cud anyone pls recommend some methodology to overcome this issue.. plz..

  3. #3
    Join Date
    Oct 2009
    Location
    Germany
    Posts
    120
    Thanked 42 Times in 41 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: windows deployment of Qt<while Font class usage>

    Hello,

    some things that look strange to me:
    1. Mixing debug and release dlls in the installation
    2. Mixing Qt4 and Qt5 dlls (qtcore4 and qtcore5)

    In the deployed folder of an application I have the following layout (entries with a + are folders):
    + bearer
    + imageformats
    + platforms
    qwindows.dll
    + printsupport
    + styles
    <application specific dlls and Qt library dlls>

    Note that there is no plugins folder. However, when you look into the directory layout of the Qt development environment, the folders listed above are all under the plugins folder.

    So if you have
    + plugins
    + platforms
    qwindows.dll
    in your installation change it to
    + platforms
    qwindows.dll

    You may also try windeployqt.exe (in your Qt5 development environment) to get an image for a deployed folder.
    Hope that helps.

    Best regards
    ars

  4. #4
    Join Date
    Nov 2015
    Posts
    8
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded Qt Jambi PyQt3 PyQt4
    Platforms
    Windows

    Default Re: windows deployment of Qt<while Font class usage>

    Hi ars,

    I have tried that method as well.
    still the error not resolved.

    Can you pls provide any othr solution.
    Thanks in advance!!!

  5. #5
    Join Date
    Oct 2009
    Location
    Germany
    Posts
    120
    Thanked 42 Times in 41 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: windows deployment of Qt<while Font class usage>

    Hello,

    if it is still not working, I would check/try the following:

    1. Manually replace qwindows.dll on the non-development machine with a copy of the dll from the development machine. If it works now, the installed dll was damaged or was not compiled for the currently used Qt version.
    2. Build a very simple Qt GUI program (without using any of your application dlls) and try to deploy it. In a first step, copy the binary into an empty folder and run windeployqt.exe on the binary. This will copy all required dlls into the folder. Then copy this folder to your non-development machine and try to run the binary there.
    3. If step 2 succeeds, try to modify your installer to reproduce the deployed folder of the dummy binary. Try to get it to work on the non-development machine.

    Sorry, I currently can't give you more hints.

    Best regards
    ars

Similar Threads

  1. Replies: 4
    Last Post: 16th June 2015, 17:50
  2. Replies: 1
    Last Post: 30th March 2012, 16:46
  3. Deployment Procedure On Windows On Linux and Windows
    By Harshith J.V. in forum Installation and Deployment
    Replies: 4
    Last Post: 9th July 2009, 11:27
  4. Replies: 1
    Last Post: 25th December 2007, 10:35

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.