Code Monkey home page Code Monkey logo

Comments (9)

guihkx avatar guihkx commented on June 10, 2024 1

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:

set(CMAKE_AUTORCC ON)

And retry the build steps from the beginning?

from notes.

guihkx avatar guihkx commented on June 10, 2024 1

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.

from notes.

hien-ngo29 avatar hien-ngo29 commented on June 10, 2024

I followed the steps that you said, but it didn't work. The error was still there, nothing changed

from notes.

zjeffer avatar zjeffer commented on June 10, 2024

Did you delete the build folder before making the change and trying again?

from notes.

hien-ngo29 avatar hien-ngo29 commented on June 10, 2024

Yes, I did

from notes.

hien-ngo29 avatar hien-ngo29 commented on June 10, 2024

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.

from notes.

guihkx avatar guihkx commented on June 10, 2024

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...

from notes.

hien-ngo29 avatar hien-ngo29 commented on June 10, 2024

Well.. I found 1 more way to build this by using Qt 5 instead of Qt 6. By changing this line:

find_package(QT NAMES Qt6 QUIET)

to:

find_package(QT NAMES Qt5 QUIET)

from notes.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.