Results 1 to 2 of 2

Thread: qwindows platform plugin with minimal dependencies?

  1. #1
    Join Date
    Dec 2011
    Posts
    11
    Thanks
    2
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default qwindows platform plugin with minimal dependencies?

    Is it possible to eliminate runtime (DLL) dependencies of the qwindows platform plugin by configuring Qt differently? For example, if I build Qt using -no-freetype -no-iconv -no-harfbuzz then my main executable no longer has those DLLs as dependencies, but qwindows.dll still does.

    I'm trying to do a minimal build to reduce the set of DLLs that I need to distribute. I did this previously when building with MinGW under Windows, and I was able to get the set down to this:

    libgcc_s_dw2-1.dll
    libstdc++-6.dll
    libwinpthread-1.dll
    platforms/qwindows.dll
    Qt5Core.dll
    Qt5Gui.dll
    Qt5Widgets.dll

    But now I'm cross-compiling with the M Cross Environment (mxe) from Linux, and I can't seem to reduce the set from this:

    libbz2.dll
    libfreetype-6.dll
    libgcc_s_sjlj-1.dll
    libglib-2.0-0.dll
    libharfbuzz-0.dll
    libiconv-2.dll
    libintl-8.dll
    libpcre16-0.dll
    libpcre-1.dll
    libpng16-16.dll
    libstdc++-6.dll
    platforms/qwindows.dll
    Qt5Core.dll
    Qt5Gui.dll
    Qt5Widgets.dll
    zlib1.dll

    ...where several of those are dependencies of the qwindows platform plugin, not my main executable. Anyone know how to fix this?

    --Colin

  2. #2
    Join Date
    Dec 2011
    Posts
    11
    Thanks
    2
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: qwindows platform plugin with minimal dependencies?

    I think I've found the solution. Almost all of the superfluous dependencies were a result of Freetype support, which was needed by the qwindows plugin. When I configured Qt with '-qt-freetype', it switched to the built-in Freetype lib and removed those dependencies.

Similar Threads

  1. Platform plugin for blackberry not found?
    By Clever&Smart in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 21st July 2015, 12:40
  2. System cannot find the Qt Platform Plugin
    By ayanda83 in forum Qt Programming
    Replies: 2
    Last Post: 26th April 2015, 21:45
  3. extend qt platform plugin
    By cic1988 in forum Qt Programming
    Replies: 3
    Last Post: 3rd March 2015, 08:27
  4. QT Android - No platform plugin, neither libqtforandroid.so or libqtforandroidGL.so
    By kolokotronis345 in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 28th June 2014, 17:37
  5. installing QML canvas plugin in windows platform
    By Venu in forum Installation and Deployment
    Replies: 4
    Last Post: 20th February 2012, 14:46

Tags for this Thread

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.