How to build a static version of Qt 5.9 with OpenSSL and MariaDB support (os X) ?



  • Hello,
    I'm looking for a step-by-step tutorial to build a static version of Qt 5.9 with OpenSSL and MariaDB support (os 10.12.6).

    Thanks. Selzig.


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    1. Understand the licensing constraints of using a static build of Qt and be ready to abide by them
    2. Install an up to date version of OpenSSL (the system version is just too old)
    3. Install MariaDB
    4. Download Qt's source
    5. Read documentation about static building
    6. Pass the -openssl-linked as parameter to configure
    7. Pass -sql-mysql as parameter to configure
    8. Pass the -I and -L parameters as needed in order for Qt to find the MariaDB and OpenSSL libraries.
    9. Call make -jX where X is the number of cores of your machine multiplied by 2 plus 1.
    10. Go grab <insert favorite beverage> and look at your processors heating up
    11. Call make install
    12. Enjoy development

Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.