Closed hien-ngo29 closed 1 month ago
Seems to be related to this bug:
https://bugreports.qt.io/browse/QTBUG-101353
Can you try adding this line:
set(CMAKE_AUTORCC_OPTIONS "--no-zstd")
Below this line:
And retry the build steps from the beginning?
I followed the steps that you said, but it didn't work. The error was still there, nothing changed
Did you delete the build folder before making the change and trying again?
Yes, I did
Somehow the code was successfully built if I installed Qt by the Qt binaries installer (Not by source.list or any Linux package managers) So basically, my problem has been resolved for now.
Somehow the code was successfully built if I installed Qt by the Qt binaries installer (Not by source.list or any Linux package managers)
That worked because official Qt binaries were likely built with zstd support, while Qt binaries from Ubuntu repositories were not (apparently).
I'm not sure why tweaking CMAKE_AUTORCC_OPTIONS
didn't work...
Well.. I found 1 more way to build this by using Qt 5 instead of Qt 6. By changing this line: https://github.com/nuttyartist/notes/blob/10bed3427934456711a7e49b05ecb47fff617666/CMakeLists.txt#L64 to:
find_package(QT NAMES Qt5 QUIET)
I found 1 more way to build this by using Qt 5 instead of Qt 6
Just so you know, you don't have to edit that file manually. You can invoke cmake
with -DUSE_QT_VERSION=5
, e.g.:
cmake -B build -USE_QT_VERSION=5 -DCMAKE_BUILD_TYPE=Release
Just keep in mind that the Qt 5 build currently lacks some features compared to a Qt 6 build.
Assuming the Qt bug report I linked in https://github.com/nuttyartist/notes/issues/650#issuecomment-1763323410 is the root cause of this, I believe this one can be finally closed, because that bug has been fixed in Qt 6.2.2, and Ubuntu 22.04 already has Qt 6.2.4.
But feel free to reopen if the issue still persists.
I followed the build instruction on
/docs/build_on_linux.md
. It was configured successfully until I compiled it withmake
. Here's the log:Note that I have installed all the needed packages with the command:
Hardware and Software info: