Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[qt5] Update to 5.15.1 #13477

Merged
merged 30 commits into from
Oct 17, 2020
Merged

[qt5] Update to 5.15.1 #13477

merged 30 commits into from
Oct 17, 2020

Conversation

Neumann-A
Copy link
Contributor

@Neumann-A Neumann-A commented Sep 11, 2020

Let CI run the build. I currently need my local compute rescources :P

close #13464

@PhoebeHui PhoebeHui added the category:port-update The issue is with a library, which is requesting update new revision label Sep 11, 2020
@Neumann-A
Copy link
Contributor Author

@cenit Since you touched assimp. Are there any optional dependencies in assimp which vcpkg is not aware of?

@cenit
Copy link
Contributor

cenit commented Sep 14, 2020

Going by memory, they should be marked as todo in the portfile

@Neumann-A Neumann-A marked this pull request as ready for review September 15, 2020 17:55
@Neumann-A
Copy link
Contributor Author

Just for future reference if there is an issue with qt5-webengine

Starting package 1/1: qt5-webengine:x64-windows
Building package qt5-webengine[core]:x64-windows...
Could not locate cached archive: C:\Users\Alexander\AppData\Local\vcpkg\archives\bf\bf4b76c9792918b20a1e5c9ec9ebe2f7e61b602f.zip
-- qt5-webengine requires a lot of free disk space (>300GB), ram (>32 GB) and time (>4h per configuration) to be successfully build.
-- As such qt5-webengine is not properly tested.
-- If qt5-webengine fails post build validation please open up an issue.
-- If it fails due to post validation the successfully installed files can be found in E:/detect_compiler/packages/qt5-webengine_x64-windows
-- and just need to be copied into E:/detect_compiler/installed/x64-windows
CMake Warning at scripts/cmake/vcpkg_buildpath_length_warning.cmake:4 (message):
  qt5-webengine's buildsystem uses very long paths and may fail on your
  system.

  We recommend moving vcpkg to a short path such as 'C:\src\vcpkg' or using
  the subst command.
Call Stack (most recent call first):
  installed/x64-windows/share/qt5/qt_download_submodule.cmake:13 (vcpkg_buildpath_length_warning)
  installed/x64-windows/share/qt5/qt_submodule_installation.cmake:4 (qt_download_submodule)
  ports/qt5-webengine/portfile.cmake:48 (qt_submodule_installation)
  scripts/ports.cmake:79 (include)


-- Using cached E:/vcpkg_cache/downloads/qtwebengine-everywhere-src-5.15.1.tar.xz
-- Extracting source E:/vcpkg_cache/downloads/qtwebengine-everywhere-src-5.15.1.tar.xz
-- Applying patch common.pri.patch
-- Applying patch gl.patch
-- Using source at E:/detect_compiler/buildtrees/qt5-webengine/src/5.15.1-8798b27a4c.clean
-- Configuring x64-windows-rel
-- Configuring x64-windows-rel done
-- Configuring x64-windows-dbg
-- Configuring x64-windows-dbg done
-- Package build-x64-windows-dbg
-- Package build-x64-windows-rel
-- Package install-x64-windows-dbg
-- Package install-x64-windows-rel
-- Installing: E:/detect_compiler/packages/qt5-webengine_x64-windows/share/qt5-webengine/copyright
-- Performing post-build validation
-- Performing post-build validation done
Stored binary cache: C:\Users\Alexander\AppData\Local\vcpkg\archives\bf\bf4b76c9792918b20a1e5c9ec9ebe2f7e61b602f.zip
Building package qt5-webengine[core]:x64-windows... done
Installing package qt5-webengine[core]:x64-windows...
Installing package qt5-webengine[core]:x64-windows... done
Elapsed time for package qt5-webengine:x64-windows: 4.441 h

Total elapsed time: 4.441 h

The package qt5-webengine:x64-windows provides CMake targets:

    find_package(Qt5Gui CONFIG REQUIRED)
    target_link_libraries(main PRIVATE Qt5::QPdfPlugin)

    find_package(Qt5Pdf CONFIG REQUIRED)
    target_link_libraries(main PRIVATE Qt::Pdf Qt5::Pdf Qt::PdfPrivate Qt5::PdfPrivate)

    find_package(Qt5PdfWidgets CONFIG REQUIRED)
    target_link_libraries(main PRIVATE Qt::PdfWidgets Qt5::PdfWidgets Qt::PdfWidgetsPrivate Qt5::PdfWidgetsPrivate)

    find_package(Qt5WebEngine CONFIG REQUIRED)
    target_link_libraries(main PRIVATE Qt::WebEngine Qt5::WebEngine Qt::WebEnginePrivate Qt5::WebEnginePrivate)

    find_package(Qt5WebEngineCore CONFIG REQUIRED)
    target_link_libraries(main PRIVATE Qt::WebEngineCore Qt5::WebEngineCore Qt::WebEngineCorePrivate Qt5::WebEngineCorePrivate)

    find_package(Qt5WebEngineWidgets CONFIG REQUIRED)
    target_link_libraries(main PRIVATE Qt::WebEngineWidgets Qt5::WebEngineWidgets Qt::WebEngineWidgetsPrivate Qt5::WebEngineWidgetsPrivate)

@JackBoosY JackBoosY added the category:tool-update The issue is with build tool or build script, which requires update or should be executed correctly label Sep 16, 2020
@Neumann-A
Copy link
Contributor Author

@JackBoosY @ras0219: Somebody needs to fetch the config.log from buildtrees/qt5-3d/<triplet>-<config>/ seems like the changes to assimp in #13264 did not work out as intended

@JackBoosY
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

No pipelines are associated with this pull request.

@JackBoosY
Copy link
Contributor

qt5-3d fails on x64-windows-static and x64-linux.

@Neumann-A
Copy link
Contributor Author

@JackBoosY: I need the config.log from <triplet>-(dbg|rel) to see what is wrong. I currently only know that it is assimp related

@JackBoosY
Copy link
Contributor

@Neumann-A Sorry, I will test it manually and pick the log to you,

@JackBoosY
Copy link
Contributor

Failed with qt5-base:x64-linux on my local machine:

ERROR: Feature 'xcb' was enabled, but the pre-condition 'features.thread && libs.xcb && tests.xcb_syslibs && features.xkbcommon-x11' failed.

@Neumann-A
Copy link
Contributor Author

@JackBoosY that just means you need to install all the system libs CI also installs.

@JackBoosY
Copy link
Contributor

@Neumann-A Seems the qt5-imageformats's patch is outdated:

Starting package 3/7: qt5-imageformats:x64-linux
Building package qt5-imageformats[core]:x64-linux...
Could not locate cached archive: /root/.cache/vcpkg/archives/77/7702362a5b4e67f7792f74bf475084f56a7dc632.zip
-- Downloading http://download.qt.io/official_releases/qt/5.15/5.15.1/submodules/qtimageformats-everywhere-src-5.15.1.tar.xz...
-- Extracting source /home/work/13477/vcpkg/downloads/qtimageformats-everywhere-src-5.15.1.tar.xz
-- Applying patch fix-include-math.patch
CMake Error at scripts/cmake/vcpkg_apply_patches.cmake:54 (message):
  Applying patch failed.  Checking patch
  src/plugins/imageformats/jp2/qjp2handler.cpp...

  error: while searching for:

  #include "qcolor.h"



  #include <jasper/jasper.h>



  QT_BEGIN_NAMESPACE





  error: patch failed: src/plugins/imageformats/jp2/qjp2handler.cpp:45

  error: src/plugins/imageformats/jp2/qjp2handler.cpp: patch does not apply

Call Stack (most recent call first):
  scripts/cmake/vcpkg_extract_source_archive_ex.cmake:141 (vcpkg_apply_patches)
  installed/x64-linux/share/qt5/qt_download_submodule.cmake:32 (vcpkg_extract_source_archive_ex)
  installed/x64-linux/share/qt5/qt_submodule_installation.cmake:4 (qt_download_submodule)
  ports/qt5-imageformats/portfile.cmake:54 (qt_submodule_installation)
  scripts/ports.cmake:79 (include)


Error: Building package qt5-imageformats:x64-linux failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with `./vcpkg update`, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
  Package: qt5-imageformats:x64-linux
  Vcpkg version: 2020.06.15-unknownhash

Additionally, attach any relevant sections from the log files above.

@Neumann-A
Copy link
Contributor Author

@JackBoosY has there been a merge of a Qt(-imageformats) related PR since 6d77472 (last month)? 75bd2ef was merged 13h ago that is not something I can fight ;). Just remove the patch if it is unnecessary

@JackBoosY
Copy link
Contributor

Oh, seems you've correct it.

endif()

find_library(ASSIMP_REL NAMES assimp ${REL_NAMES} PATHS "${CURRENT_INSTALLED_DIR}/lib" NO_DEFAULT_PATH)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only one irrelevant question: do you think vcpkg should provide commin function to implement it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the only thing it removes would be the PATHS arguments. Unless vcpkg provides a more sophisticated function than vcpkg_find_library there is not a lot of benefit. I mean a common function could be used to get all depending libraries which also can be added by features of the depending port. But since vcpkg does not currently store any information on how a port was build in an accessibly way there is no way to implement it unless vcpkg is enabled to be run re-entrant.

@JackBoosY JackBoosY added the info:reviewed Pull Request changes follow basic guidelines label Oct 16, 2020
@dan-shaw dan-shaw merged commit aa0ffba into microsoft:master Oct 17, 2020
@Neumann-A Neumann-A deleted the update_qt_5.15.1 branch October 17, 2020 12:01
lijgame added a commit to lijgame/vcpkg that referenced this pull request Oct 18, 2020
lijgame added a commit to lijgame/vcpkg that referenced this pull request Oct 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:port-update The issue is with a library, which is requesting update new revision category:tool-update The issue is with build tool or build script, which requires update or should be executed correctly info:reviewed Pull Request changes follow basic guidelines
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[qt5] update to 5.15.1
6 participants