Results 1 to 5 of 5

Thread: How to static compile Qt 5.9.1 with OpenSsl?

  1. #1
    Join Date
    Jun 2017
    Posts
    2
    Qt products
    Qt3 Qt4 Qt5 PyQt3 PyQt4
    Platforms
    Unix/X11 Windows Android

    Exclamation How to static compile Qt 5.9.1 with OpenSsl?

    down vote
    favorite


    hello people i need your help

    i have qt-opensource-windows-x86-5.9.1.exe installed qt-everywhere-opensource-src-5.9.1 and openssl-win32 1.0.2l installed to

    so i want to do the statically caompilation with qt-everywhere-opensource-src-5.9.1 and activate openssl for this a i use this script: so please what is the modification of this part of the script that a i need to do for that:

    configure.bat -static -release -platform win32-g++ -prefix %QtStaticDir% -qt-zlib -qt-pcre -qt-libpng -qt-libjpeg -qt-freetype -opengl desktop -sql-odbc -sql-sqlite -no-openssl -opensource -confirm-license -make libs -nomake tools -nomake examples -nomake tests"

    thanks

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

    Default Re: How to static compile Qt 5.9.1 with OpenSsl?

    well, logically it would be good to remove '-no-openssl ' option from the configure line.
    '-static' is already in your line so that is ok.
    ==========================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
    Oct 2012
    Posts
    132
    Thanks
    10
    Thanked 21 Times in 21 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows Android

    Default Re: How to static compile Qt 5.9.1 with OpenSsl?

    To ensure your application will link statically against OpenSSL (rather than loading it at run-time via `dlopen` or similar) you should add `-openssl-linked` to the configure arguments. And you should have a static build of the OpenSSL libs of course.

    Which compiler do you use? If you use mingw-w64, here's a build script which also covers static configuration: https://github.com/Martchus/PKGBUILD.../PKGBUILD#L319

  4. The following user says thank you to Infinity for this useful post:

    jaca (10th January 2019)

  5. #4
    Join Date
    Dec 2007
    Location
    Brazil
    Posts
    61
    Thanks
    14
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to static compile Qt 5.9.1 with OpenSsl?

    Is there a script for Windows?

  6. #5
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,094
    Thanks
    35
    Thanked 1,468 Times in 1,421 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: How to static compile Qt 5.9.1 with OpenSsl?

    This is on Windows, see the ".bat" in the original posting.

    Cheers,
    _

Similar Threads

  1. Compile QT 4.8.5 Embedded Linux openssl
    By lifeissad in forum Installation and Deployment
    Replies: 0
    Last Post: 1st May 2014, 15:50
  2. Compiling static for Windows with OpenSSL
    By manekineko in forum Qt Programming
    Replies: 19
    Last Post: 23rd March 2012, 23:13
  3. Replies: 2
    Last Post: 19th April 2011, 19:14
  4. Problem Configure openssl static build
    By moh.gup@gmail.com in forum Installation and Deployment
    Replies: 0
    Last Post: 16th March 2010, 18:28
  5. Qt 4.5.3 openssl 0.9.8k windows static mingw32
    By tpf80 in forum Installation and Deployment
    Replies: 3
    Last Post: 26th February 2010, 06:44

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.