Details
-
Bug
-
Resolution: Invalid
-
P2: Important
-
None
-
6.2.0
-
None
Description
The MSVC's recently changes broken zlib when building QT6, the CRT does not define those macros because they are not standard C, can you help look? Our workaround: add "/D_CRT_DECLARE_NONSTDC_NAMES" to define them. The next version of VS will have this behavior.
Repro steps:
- open VS 2019 x64 Tools command
- git clone git://code.qt.io/qt/qt5 F:\gitP\qt\qt6
- cd F:\gitP\qt\qt6
- git checkout 6.2
- perl init-repository
- mkdir F:\gitP\qt\qt6\build_amd64
- cd F:\gitP\qt\qt6\build_amd64
- ..\configure -developer-build -release -confirm-license -opensource -nomake tests
- cmake --build . --parallel --verbose
Error info:
F:\gitP\qt\qt6\qtbase\src\3rdparty\zlib\src\gzlib.c
F:\gitP\qt\qt6\qtbase\src\3rdparty\zlib\src\gzlib.c(231): error C2065: 'O_RDONLY': undeclared identifier
F:\gitP\qt\qt6\qtbase\src\3rdparty\zlib\src\gzlib.c(232): error C2065: 'O_WRONLY': undeclared identifier
F:\gitP\qt\qt6\qtbase\src\3rdparty\zlib\src\gzlib.c(232): error C2065: 'O_CREAT': undeclared identifier
F:\gitP\qt\qt6\qtbase\src\3rdparty\zlib\src\gzlib.c(237): error C2065: 'O_TRUNC': undeclared identifier
F:\gitP\qt\qt6\qtbase\src\3rdparty\zlib\src\gzlib.c(238): error C2065: 'O_APPEND': undeclared identifier
Attachments
For Gerrit Dashboard: QTBUG-99854 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
390296,3 | Avoid issues with compiling zlib with newest MSVC | dev | qt/qtbase | Status: ABANDONED | +2 | 0 |