杜比 我的机器倒是配了32G内存。但是编译qt6-webengine 6.4.3报这个错:
CMake Error at /home/searchstar/git/others/qt6/qtwebengine/cmake/Gn.cmake:72 (message):
-- GN FAILED
ERROR at //third_party/angle/gni/angle.gni:84:5: Assertion failed.
assert(false, "Unknown current CPU: $current_cpu")
^-----
Unknown current CPU:
See //third_party/angle/src/tests/BUILD.gn:7:1: whence it was imported.
import("../../gni/angle.gni")
^---------------------------
See //BUILD.gn:96:5: which caused the file to be included.
"//third_party/angle/src/tests:angle_end2end_tests",
^--------------------------------------------------
make[2]: *** [src/core/CMakeFiles/runGn_core_RelWithDebInfo_loongarch64.dir/build.make:83: src/core/RelWithDebInfo/loongarch64/QtWebEngineCore_objects.rsp] Error 1
make[1]: *** [CMakeFiles/Makefile2:1240: src/core/CMakeFiles/runGn_core_RelWithDebInfo_loongarch64.dir/all] Error 2
make: *** [Makefile:146: all] Error 2
看了一下代码,发现它支持的是loong64,而不是loongarch64。血压上来了
if (current_cpu == "arm64" || current_cpu == "x64" ||
current_cpu == "mips64el" || current_cpu == "s390x" ||
current_cpu == "ppc64" || current_cpu == "loong64") {
angle_64bit_current_cpu = true
} else if (current_cpu == "arm" || current_cpu == "x86" ||
current_cpu == "mipsel" || current_cpu == "s390" ||
current_cpu == "ppc" || current_cpu == "loong32") {
angle_64bit_current_cpu = false
} else {
assert(false, "Unknown current CPU: $current_cpu")
}