Results 1 to 5 of 5

Thread: Static Build Issue on QT 5.15.0

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    Join Date
    Feb 2021
    Posts
    2
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Static Build Issue on QT 5.15.0

    My problem was simple. In the build process there was the call to cmd /c mimetypes\mime\generate.bat which generates the qmimeprovider_database.cpp
    That failed because the PowerShell ExecutionPolicy was restricting executions. That bat script could be manually run for both debug and release but then there was other scripts that failed. So I temporarily disabled the PowerShell restrictions and the compile succeeded.


    Added after 22 minutes:


    Dynamic vs static... Yes previously I have sometimes copied the .dll files from the Qt library together with the dynamic Qt build and it has worked. For some reason now with Qt5 when I did not have a static library and quickly I needed to run my program on another machine this did not work any more. Anyway, the library is updated so frequently that the odds that two Qt programs will have the same dll versions is getting so small that a static build will occupy less space on the disk. It is crazy thinking that a simple win32 hello world static Qt5 application takes 18 MB and needs more that 10 floppy disks to be distributed. A few years ago I was making a much more advanced win32 applications with same look & feel, using Borland C++ Builder, and those would take 100kb disk space and you could fit 10 such programs on a floppy disk.
    Last edited by QTom; 15th February 2021 at 07:50.

Similar Threads

  1. Issue with icons and static build
    By ceraolo in forum Installation and Deployment
    Replies: 3
    Last Post: 10th April 2014, 07:53
  2. Build static QT + static SSL problem.
    By makzimi in forum Qt Programming
    Replies: 3
    Last Post: 23rd April 2012, 23:45
  3. Replies: 3
    Last Post: 1st June 2011, 15:32
  4. Replies: 1
    Last Post: 13th January 2010, 23:35
  5. Moving from QT 4.5 shared build to QT 4.5.2 static build
    By extrakun in forum Qt Programming
    Replies: 0
    Last Post: 26th October 2009, 09:49

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.