Closed handianping closed 1 year ago
Package: qtbase[brotli,concurrent,core,dbus,default-features,doubleconversion,egl,fontconfig,freetype,gui,harfbuzz,icu,jpeg,network,opengl,openssl,pcre2,png,sql,sql-psql,sql-sqlite,testlib,thread,widgets,xcb,xcb-xlib,xkb,xkbcommon-x11,xlib,xrender,zstd]:x64-linux -> 6.5.1#3
Host Environment
To Reproduce
vcpkg install qt
Failure logs
CMake Warning at ports/qtbase/portfile.cmake:37 (message):
qtbase currently requires packages from the system package manager. They
can be installed on Ubuntu systems via sudo apt-get install '^libxcb.*-dev'
libx11-xcb-dev libglu1-mesa-dev libxrender-dev libxi-dev libxkbcommon-dev
libxkbcommon-x11-dev.
Call Stack (most recent call first):
scripts/ports.cmake:147 (include)
-- Using cached qtbase-everywhere-src-6.5.1.tar.xz.
-- Cleaning sources at /home/pzc5dz/git/vcpkg/buildtrees/qtbase/src/here-src-6-372f0bcb02.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source /home/pzc5dz/git/vcpkg/downloads/qtbase-everywhere-src-6.5.1.tar.xz
-- Applying patch allow_outside_prefix.patch
-- Applying patch config_install.patch
-- Applying patch fix_cmake_build.patch
-- Applying patch harfbuzz.patch
-- Applying patch fix_egl.patch
-- Applying patch fix_egl_2.patch
-- Applying patch installed_dir.patch
-- Applying patch GLIB2-static.patch
-- Applying patch clang-cl_source_location.patch
-- Applying patch clang-cl_QGADGET_fix.diff
-- Applying patch dont_force_cmakecache_latest.patch
-- Using source at /home/pzc5dz/git/vcpkg/buildtrees/qtbase/src/here-src-6-372f0bcb02.clean
-- Configuring x64-linux
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:112 (message):
Command failed: /home/pzc5dz/git/vcpkg/downloads/tools/ninja/1.10.2-linux/ninja -v
Working Directory: /home/pzc5dz/git/vcpkg/buildtrees/qtbase/x64-linux-rel/vcpkg-parallel-configure
Error code: 1
See logs for more information:
/home/pzc5dz/git/vcpkg/buildtrees/qtbase/config-x64-linux-dbg-CMakeCache.txt.log
/home/pzc5dz/git/vcpkg/buildtrees/qtbase/config-x64-linux-rel-CMakeCache.txt.log
/home/pzc5dz/git/vcpkg/buildtrees/qtbase/config-x64-linux-out.log
Call Stack (most recent call first):
installed/x64-linux/share/vcpkg-cmake/vcpkg_cmake_configure.cmake:252 (vcpkg_execute_required_process)
ports/qtbase/cmake/qt_install_submodule.cmake:147 (vcpkg_cmake_configure)
ports/qtbase/cmake/qt_install_submodule.cmake:341 (qt_cmake_configure)
ports/qtbase/portfile.cmake:284 (qt_install_submodule)
scripts/ports.cmake:147 (include)
Additional context
CMake Warning at ports/qtbase/portfile.cmake:37 (message): qtbase currently requires packages from the system package manager. They can be installed on Ubuntu systems via sudo apt-get install '^libxcb.*-dev' libx11-xcb-dev libglu1-mesa-dev libxrender-dev libxi-dev libxkbcommon-dev libxkbcommon-x11-dev.
Have you done that?
I run the command locally: sudo apt-get install '^libxcb.*-dev' libx11-xcb-dev libglu1-mesa-dev libxrender-dev libxi-dev libxkbcommon-dev libxkbcommon-x11-dev
. After reinstalling qtbase
, the result is correct.
Check the Qt for X11 Requirements from her https://doc.qt.io/qt-6/linux-requirements.html it works with me after install all Requirements in fedora 38 and also my need a libclang
I run the command locally:
sudo apt-get install '^libxcb.*-dev' libx11-xcb-dev libglu1-mesa-dev libxrender-dev libxi-dev libxkbcommon-dev libxkbcommon-x11-dev
. After reinstallingqtbase
, the result is correct.
I followed the instruction and now vcpkg install qt stuck at here: Build error #32480
I can manually download https://github.com/mesonbuild/meson/archive/bb91cea0d66d8d036063dedec1f194d663399cdf.tar.gz
And my proxy is setup properly, both HTTP_PROXY and HTTPS_PROXY pointing to the same http://<address>:<port>
I can manually download https://github.com/mesonbuild/meson/archive/bb91cea0d66d8d036063dedec1f194d663399cdf.tar.gz
And my proxy is setup properly, both HTTP_PROXY and HTTPS_PROXY pointing to the same
http://<address>:<port>
Whether there is a firewall or anti-virus software on your computer, close them, and then download again. Refer to url.
I am getting this exact same error with CentOS 8 through WSL. I was able to build 2023.04.15 (Qt 6.4.2) within this environment but 2023.06.20 (Qt 6.5.1) does not seem to like it. I've tried to install every GL, Xi, X11, Xorg, Mesa, and XCB devel package I could find (yum search)_and nothing seems to take. To reiterate, this same environment I am using built Qt 6.4.2.
Edit: I've tracked my issue down to missing libxcb-cursor. I cannot seem to find a repository that has it for CentOS 8. None of the xcb packages I have installed come with it. Qt is expecting xcb/xcb_cursor.h
as per https://github.com/qt/qtbase/blob/fbd259856da5f7775c27ad80c2e913987fd923f8/src/gui/configure.cmake#L506
Edit2: In case someone else has this problem. This required installing the epel-release
repository followed by sudo dnf install xcb-util-cursor
Qt 6.4.2 didn't need this so this must be something new that was added.
Thanks for posting this issue. Please reopen this issue if this is still a problem for you.
Copy issue body from issue_body.md