Skip to content

Qt 5.11 and static build fixes#4164

Merged
ras0219-msft merged 16 commits intomicrosoft:masterfrom
RobertBColton:master
Oct 22, 2018
Merged

Qt 5.11 and static build fixes#4164
ras0219-msft merged 16 commits intomicrosoft:masterfrom
RobertBColton:master

Conversation

@RobertBColton
Copy link
Copy Markdown
Contributor

@RobertBColton RobertBColton commented Aug 26, 2018

This updates the qt5-base port to build successfully under the new Qt 5.11. It also fixes the issues with respect to static building allowing the static triplet to be used.

Noteworthy changes

  • fix-C3615.patch deleted as it has already been sent upstream and is in Qt 5.11
  • fix-msvc2017.patch added to enable MSVC 2017 builds
  • fix-system-pcre2.patch recreated to match newer source
  • fix-system-pcre2-linux.patch recreated to match newer source
  • portfile.cmake changed from Qt 5.9 to Qt 5.11

@msftclas
Copy link
Copy Markdown

msftclas commented Aug 26, 2018

CLA assistant check
All CLA requirements met.

@tumugin
Copy link
Copy Markdown
Contributor

tumugin commented Oct 5, 2018

I tested this PR but static build seems to fail on my environment.

WARNING: Failure to find: C:\Users\kazuki\Documents\SourceCode\vcpkg\buildtrees\qt5-base\src\5.11.1-35431efc74\src\3rdparty\sqlite\sqlite3.c
WARNING: Failure to find: C:\Users\kazuki\Documents\SourceCode\vcpkg\buildtrees\qt5-base\src\5.11.1-35431efc74\src\3rdparty\sqlite\sqlite3.c
Error: dependent 'C:\Users\kazuki\Documents\SourceCode\vcpkg\buildtrees\qt5-base\src\5.11.1-35431efc74\src\3rdparty\sqlite\sqlite3.c' does not exist.
jom: C:\Users\kazuki\Documents\SourceCode\vcpkg\buildtrees\qt5-base\x86-windows-static-dbg\src\plugins\sqldrivers\sqlite\Makefile [debug] Error 2
jom: C:\Users\kazuki\Documents\SourceCode\vcpkg\buildtrees\qt5-base\x86-windows-static-dbg\src\plugins\sqldrivers\Makefile [sub-sqlite-make_first] Error 2
jom: C:\Users\kazuki\Documents\SourceCode\vcpkg\buildtrees\qt5-base\x86-windows-static-dbg\src\plugins\Makefile [sub-sqldrivers-make_first] Error 2
jom: C:\Users\kazuki\Documents\SourceCode\vcpkg\buildtrees\qt5-base\x86-windows-static-dbg\src\Makefile [sub-plugins-make_first] Error 2
jom: C:\Users\kazuki\Documents\SourceCode\vcpkg\buildtrees\qt5-base\x86-windows-static-dbg\Makefile [sub-src-make_first] Error 2

Added this patch to portfile.cmake and static build succeeded.

diff --git a/ports/qt5-base/portfile.cmake b/ports/qt5-base/portfile.cmake
index 5a29e47c..b007757d 100644
--- a/ports/qt5-base/portfile.cmake
+++ b/ports/qt5-base/portfile.cmake
@@ -61,7 +61,7 @@ set(CORE_OPTIONS
 if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
     list(APPEND CORE_OPTIONS
         -static
-        -no-sqlite
+        -system-sqlite
     )
 else()
     list(APPEND CORE_OPTIONS

@RobertBColton
Copy link
Copy Markdown
Contributor Author

Please tell Robert to update the Chilla.

@ras0219-msft
Copy link
Copy Markdown
Contributor

update the Chilla.

@RobertBColton What do you mean?

@ras0219-msft ras0219-msft merged commit 473d63c into microsoft:master Oct 22, 2018
@ras0219-msft
Copy link
Copy Markdown
Contributor

Thanks for the PR and sorry for the long delay handling this!

The current status for x64-windows-static after this PR is:

  • qt5-declarative fails
  • qt5-activeqt fails
  • qt5-xmlpatterns fails

However the other qt components succeed! 🎉

@RobertBColton
Copy link
Copy Markdown
Contributor Author

Please see #4332 about the chilla.

@ras0219-msft
Copy link
Copy Markdown
Contributor

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants