Skip to content

qml_minimal example fails to bulid due to "byte index 1 is out of bounds of ``" #590

@spacekookie

Description

@spacekookie

Hey there,

sorry if this is the wrong channel to ask questions. I was looking around for a Matrix/IRC/Discord channel in the documentation but couldn't find anything.

I'm new to both cxx-qt and qt development, so apologies also if this is an obvious problem :D

I'm trying to build the qml_minimal example from the cxx-qt repository. I'm using a NixOS shell environment to install the build requirements into my environment (nix-shell -p rustc cargo qt5.full mold clang cmake - it also happens with the qt6.full package). I don't know if there's something missing from it though.

I try building the qml-minimal example via this command:

cargo run -p qml-minimal-no-cmake

And here's the full stacktrace of my build (it looks like the cxx macro fails?): https://paste.rs/GBOwa.txt

Anyway, I hope you can give me some pointers as to what is wrong on my system/ what I'm missing to make this example build. Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    🔨 build systemIssues related to integrating CXX-Qt into CMake/Cargo🪲 bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions