You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update: Can confirm same problem when using x86_64-w64-mingw32.shared.
I have successfully built qtbase and qttools, and then qt5 after noticing the error on a brand-new Ubuntu 22.04.1 LTS virtual machine by running the following commands:
git clone https://github.com/mxe/mxe
cd mxe
make qtbase qtools qt5 -j9 MXE_TARGETS='x86_64-w64-mingw32.static'
When I try to build my project with the bundled CMake:
cd ~/project
mkdir build
cd build
PATH=$PATH:/home/finn/mxe/usr/bin
x86_64-w64-mingw32.static-cmake -DCMAKE_BUILD_TYPE=Release ../CMakeLists.txt
I get the following output:
== Using MXE wrapper: /home/finn/mxe/usr/bin/x86_64-w64-mingw32.static-cmake
- cmake version 3.26.3
- warnings for unused CMAKE_POLICY_DEFAULT variables can be ignored
== Using MXE toolchain: /home/finn/mxe/usr/x86_64-w64-mingw32.static/share/cmake/mxe-conf.cmake
== Using MXE runresult: /home/finn/mxe/usr/share/cmake/modules/TryRunResults.cmake
loading initial cache file /home/finn/mxe/usr/share/cmake/modules/TryRunResults.cmake
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
CMake Error at /home/finn/mxe/usr/x86_64-w64-mingw32.static/qt5/lib/cmake/Qt5Help/Qt5HelpConfig.cmake:14 (message):
The imported target "Qt5::Help" references the file
"/home/finn/mxe/usr/x86_64-w64-mingw32.static/qt5/bin/qcollectiongenerator"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
"/home/finn/mxe/usr/x86_64-w64-mingw32.static/qt5/lib/cmake/Qt5Help/Qt5HelpConfigExtras.cmake"
but not all the files it references.
Call Stack (most recent call first):
/home/finn/mxe/usr/x86_64-w64-mingw32.static/qt5/lib/cmake/Qt5Help/Qt5HelpConfigExtras.cmake:6 (_qt5_Help_check_file_exists)
/home/finn/mxe/usr/x86_64-w64-mingw32.static/qt5/lib/cmake/Qt5Help/Qt5HelpConfig.cmake:407 (include)
/home/finn/mxe/usr/x86_64-w64-mingw32.static/qt5/lib/cmake/Qt5/Qt5Config.cmake:28 (find_package)
CMakeLists.txt:38 (find_package)
We shouldn't need to include either qcollectiongenerator or qhelpgenerator as the cross-compilation negates their usefulness.
Update: Can confirm same problem when using
x86_64-w64-mingw32.shared
.I have successfully built
qtbase
andqttools
, and thenqt5
after noticing the error on a brand-new Ubuntu 22.04.1 LTS virtual machine by running the following commands:When I try to build my project with the bundled CMake:
I get the following output:
We shouldn't need to include either
qcollectiongenerator
orqhelpgenerator
as the cross-compilation negates their usefulness.Here is my CMakelists.txt:
Environment:
The text was updated successfully, but these errors were encountered: