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-base] build failure #11220

Closed
Yuhanun opened this issue May 7, 2020 · 5 comments · Fixed by #11371
Closed

[qt5-base] build failure #11220

Yuhanun opened this issue May 7, 2020 · 5 comments · Fixed by #11371
Assignees
Labels
category:port-bug The issue is with a library, which is something the port should already support

Comments

@Yuhanun
Copy link

Yuhanun commented May 7, 2020

Host Environment

  • OS: Windows WSL ubuntu 20.04
  • Compiler: g++ (10)

To Reproduce
vcpkg install qt5-charts

Failure logs

Starting package 2/8: qt5-base:x64-linux
Building package qt5-base[core]:x64-linux...
-- Figuring out qt target mkspec. Target arch x64
-- Target mkspec set to: linux-g++
-- Host mkspec not set. Qt's own buildsystem will try to figure out the host system
-- Downloading http://download.qt.io/official_releases/qt/5.12/5.12.8/submodules/qtbase-everywhere-src-5.12.8.tar.xz...
-- Extracting source /home/john/.vcpkg/downloads/qtbase-everywhere-src-5.12.8.tar.xz
-- Applying patch patches/winmain_pro.patch
-- Applying patch patches/windows_prf.patch
-- Applying patch patches/qt_app.patch
-- Applying patch patches/gui_configure.patch
-- Applying patch patches/icu.patch
-- Applying patch patches/xlib.patch
-- Applying patch patches/Qt5BasicConfig.patch
-- Applying patch patches/Qt5PluginTarget.patch
-- Applying patch patches/prl_parser.patch
-- Applying patch patches/Qt5GuiConfigExtras.patch
-- Using source at /home/john/.vcpkg/buildtrees/qt5-base/src/5.12.8-58a5dc6709
-- Configuring x64-linux-dbg
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:72 (message):
    Command failed: /home/john/.vcpkg/buildtrees/qt5-base/src/5.12.8-58a5dc6709/configure -confirm-license -opensource -verbose -system-zlib -system-libjpeg -system-libpng -system-freetype -system-pcre -system-doubleconversion -system-sqlite -system-harfbuzz -icu -no-angle -openssl-linked -fontconfig -xcb-xlib -linuxfb -nomake examples -nomake tests -static LIBJPEG_LIBS=/home/john/.vcpkg/installed/x64-linux/debug/lib/libjpeg.a ZLIB_LIBS=/home/john/.vcpkg/installed/x64-linux/debug/lib/libz.a "LIBPNG_LIBS=/home/john/.vcpkg/installed/x64-linux/debug/lib/libpng16d.a /home/john/.vcpkg/installed/x64-linux/debug/lib/libz.a" PCRE2_LIBS=/home/john/.vcpkg/installed/x64-linux/debug/lib/libpcre2-16.a "FREETYPE_LIBS=/home/john/.vcpkg/installed/x64-linux/debug/lib/libfreetyped.a /home/john/.vcpkg/installed/x64-linux/debug/lib/libbz2d.a /home/john/.vcpkg/installed/x64-linux/debug/lib/libpng16d.a /home/john/.vcpkg/installed/x64-linux/debug/lib/libz.a" "ICU_LIBS=/home/john/.vcpkg/installed/x64-linux/debug/lib/libicui18n.a /home/john/.vcpkg/installed/x64-linux/debug/lib/libicutu.a  /home/john/.vcpkg/installed/x64-linux/debug/lib/libicuuc.a /home/john/.vcpkg/installed/x64-linux/debug/lib/libicuio.a /home/john/.vcpkg/installed/x64-linux/debug/lib/libicudata.a" QMAKE_LIBS_PRIVATE+=/home/john/.vcpkg/installed/x64-linux/debug/lib/libbz2d.a QMAKE_LIBS_PRIVATE+=/home/john/.vcpkg/installed/x64-linux/debug/lib/libpng16d.a "PSQL_LIBS=/home/john/.vcpkg/installed/x64-linux/debug/lib/libpq.so /home/john/.vcpkg/installed/x64-linux/debug/lib/libssl.a /home/john/.vcpkg/installed/x64-linux/debug/lib/libcrypto.a -ldl -lpthread" "SQLITE_LIBS=/home/john/.vcpkg/installed/x64-linux/debug/lib/libsqlite3.a -ldl -lpthread" HARFBUZZ_LIBS=/home/john/.vcpkg/installed/x64-linux/debug/lib/libharfbuzz.a "OPENSSL_LIBS=/home/john/.vcpkg/installed/x64-linux/debug/lib/libssl.a /home/john/.vcpkg/installed/x64-linux/debug/lib/libcrypto.a -ldl -lpthread" "FONTCONFIG_LIBS=/home/john/.vcpkg/installed/x64-linux/debug/lib/libfontconfig.a /home/john/.vcpkg/installed/x64-linux/debug/lib/libfreetyped.a /home/john/.vcpkg/installed/x64-linux/debug/lib/libexpat.a" -debug -prefix /home/john/.vcpkg/installed/x64-linux -extprefix /home/john/.vcpkg/installed/x64-linux -hostprefix /home/john/.vcpkg/installed/x64-linux/tools/qt5/debug -hostlibdir /home/john/.vcpkg/installed/x64-linux/tools/qt5/debug/lib -hostbindir /home/john/.vcpkg/installed/x64-linux/tools/qt5/debug/bin -archdatadir /home/john/.vcpkg/installed/x64-linux/tools/qt5/debug -datadir /home/john/.vcpkg/installed/x64-linux/share/qt5/debug -plugindir /home/john/.vcpkg/installed/x64-linux/debug/plugins -qmldir /home/john/.vcpkg/installed/x64-linux/debug/qml -headerdir /home/john/.vcpkg/installed/x64-linux/include -libexecdir /home/john/.vcpkg/installed/x64-linux/tools/qt5/debug -bindir /home/john/.vcpkg/installed/x64-linux/debug/bin -libdir /home/john/.vcpkg/installed/x64-linux/debug/lib -I /home/john/.vcpkg/installed/x64-linux/include -L /home/john/.vcpkg/installed/x64-linux/debug/lib -L /home/john/.vcpkg/installed/x64-linux/debug/lib/manual-link -xplatform linux-g++
    Working Directory: /home/john/.vcpkg/buildtrees/qt5-base/x64-linux-dbg
    Error code: 3
    See logs for more information:
      /home/john/.vcpkg/buildtrees/qt5-base/config-x64-linux-dbg-out.log
      /home/john/.vcpkg/buildtrees/qt5-base/config-x64-linux-dbg-err.log

Call Stack (most recent call first):
  ports/qt5-base/cmake/configure_qt.cmake:110 (vcpkg_execute_required_process)
  ports/qt5-base/portfile.cmake:272 (configure_qt)
  scripts/ports.cmake:90 (include)


Error: Building package qt5-base: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-base:x64-linux
  Vcpkg version: 2020.02.04-unknownhash

Additionally, attach any relevant sections from the log files above.
@Yuhanun Yuhanun added the category:port-bug The issue is with a library, which is something the port should already support label May 7, 2020
@Yuhanun Yuhanun changed the title [<port name>] build failure [qt5-charts] build failure May 7, 2020
@Neumann-A
Copy link
Contributor

Title should say qt5-base

    See logs for more information:
      /home/john/.vcpkg/buildtrees/qt5-base/config-x64-linux-dbg-out.log
      /home/john/.vcpkg/buildtrees/qt5-base/config-x64-linux-dbg-err.log

No logs, no help possible

@LilyWangL LilyWangL changed the title [qt5-charts] build failure [qt5-base] build failure May 8, 2020
@JackBoosY JackBoosY added requires:more-information This Issue requires more information to solve requires:repro The issue is not currently repro-able labels May 8, 2020
@Jo-Meer
Copy link

Jo-Meer commented May 12, 2020

I get the same error with ./vcpkg install qt5
Wsl ubuntu 20.04

Here are my logs
config-x64-linux-dbg-out.log
config-x64-linux-dbg-err.log

Last line in error log ERROR: Feature 'xcb-xlib' was enabled, but the pre-condition 'features.xlib && libs.xcb_xlib' failed.

@JackBoosY JackBoosY removed the requires:more-information This Issue requires more information to solve label May 12, 2020
@alirzaev
Copy link

I got the same error with ./vcpkg install qt5-base[latest]

Solved this by installing package libx11-xcb-dev

Also you can find some useful information about Qt dependencies at https://doc.qt.io/qt-5/linux-requirements.html

@JackBoosY
Copy link
Contributor

@Neumann-A Should we inform users to install this package in Linux / OSX?

@Neumann-A
Copy link
Contributor

@JackBoosY: feel free to add a message or add the link to the build requirements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:port-bug The issue is with a library, which is something the port should already support
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants