Giter Club home page Giter Club logo

qt5-msvc-static's Introduction

Qt5-MSVC-Static

Set of tools to build Qt5 static libs on Windows.
There are some binaries available here

Dependencies

Make sure Python, Perl are all in the PATH or add them to PATH in options.bat

NTFS case sensitivity needs to be turned OFF in the parent folder before cloning.
You can check with this command:

fsutil file queryCaseSensitiveInfo .

If you need to disable it:

fsutil file setCaseSensitiveInfo . disable

You can check the official documentation here:
http://doc.qt.io/qt-5/windows-requirements.html
http://doc.qt.io/qt-5/windows-building.html

Usage

First, we need to check the folder names are correct in tools/options.bat

Open a VS command prompt in the repo's root.
The links for the prompts are "VS2017_Win32/64"

You will need to run qt.bat from the VS command prompt.

Run these commands in the following order to build Qt:

  • qt download
  • qt openssl
  • qt setup
  • qt build

Additional Qt modules

Those can be downloaded and installed by the script.
If you want to install extra Qt modules like qtscript or webkit:

  • Run this command: qt extra [module-name]
  • You need to run it once per module

You obviously have to do that after installing Qt. Modules can be found here: http://download.qt.io/official_releases/qt/5.12/5.12.1/submodules/

Configuration

Only release libs are enabled by default. You can add the debug libs or use the official sdk libs for debugging. You can add extra build options for Qt by editing the EXTRABUILDOPTIONS var in options.bat

You can check the official configuration guide here: http://doc.qt.io/qt-5/configure-options.html

qt5-msvc-static's People

Contributors

fpoussin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

qt5-msvc-static's Issues

Build not success with Qt 5.11.1

qmachparser.obj : warning LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library
qelfparser_p.obj : warning LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library
jom: Z:\Working\Qt\Qt5-MSVC-Static\sources\qtbase-everywhere-src-5.11.1\build\Makefile [sub-src-make_first] Error 2

impossible to check errors

I suggest to add /B options to all start commands, because now it is impossible to understand any problems due to the closing additional window.
Example: start /W /B /BELOWNORMAL "Building Qt..." jom

qt extra <moduleName> doesnt work

Hey, "qt extra " doesnt work for me.
After an "qt build" I did:

qt extra qtquickcontrols
qt extra qtquickcontrols2

and there's still an "Project ERROR: Unknown module(s) in QT: quick quickcontrols2". How can I verify if it's installed correctly?

5.8.0 Compatibility

Working on 5.8.0 compatibility.
Scripts updates required for:

  • ICU 58.2
  • OpenSSL 1.1.0 (Not compatible with < 5.8.0)

Typo in VS2017_Win64.lnk

Thanks for this great timesaver!

There is a typo in VS2017_Win64.lnk comment:
instead of "Open Visual Studio 2017 Tools Command Prompt for targeting x86" should be
"Open Visual Studio 2017 Tools Command Prompt for targeting x64".

OpenSSL Configuring Error

For qt 5.15.0 when using the "qt openssl" I recieve the following output and the configuration fails

Configuring OpenSSL 1.1.1d for WIN64A...
ELSE was unexpected at this time.

don't work bat file..

I tried to run.bat on command window.
I think.. it doensn't work..
I don't know how can build source code..
Explain some steps to build code.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.