qtbridge-zig update: made it public
https://codeberg.org/vyivel/qtbridge-zig
not *fully* finished (there are zero docs, good luck + some build system stuff needs to be ironed out) but technically usable
will try to write a real app with it now
qtbridge-zig update: made it public
https://codeberg.org/vyivel/qtbridge-zig
not *fully* finished (there are zero docs, good luck + some build system stuff needs to be ironed out) but technically usable
will try to write a real app with it now
@vyivel Might be the last straw that makes me bail on Ubuntu. May I ask what your dev system is, given Qt6.pc is apparently undefined for all of Ubuntu if apt-file is to be believed. I figured I'd give it a quick test run and see if I could do any value added work drafting initial getting started notes for folks.
@siriusfox i use a fedora distrobox; it is fully possible that my build.zig is wrong, though
@vyivel I think its just a difference in packaging schemes. It looks like (for whatever reason) Ubuntu doesn't ship a top-level Qt6.pc file. I'll give your setup a whirl to start.
@siriusfox pushed a fix (with some build.zig.zon changes too), should help
@vyivel that fixed likely most of the issues. Getting an error related to being unable to find std::destroying_delete_t in Ubuntu 24 and 26, likely (?) tied to some g++ or clang++ version shenanigans. Potentially g
Fedora 45 distrobox working like a champ with the two main QT dependencies installed, qt6-qtbase-devel and qt6-qtdeclarative-devel. For Ubuntu its qt6-declarative-dev and qt6-base-dev with TBD c++ compiler dependencies.
What's odd, is the Ubuntu failures seem like a g++ problem, but supposedly this would have been working since GCC version 9: https://en.cppreference.com/cpp/compiler_support#cpp_lib_destroying_delete_201806L
@siriusfox strange, it's a c++20 thing, which is explicitly enabled
i wish i could just use zig's c++ compiler unconditionally, but unfortunately it causes abi mismatch with qt built against libstdc++ :(
@vyivel yep. The internal c++ build command succeeds if I simply add --std=c++20 to the build line.
So either a set of OS defaults making it work in Fedora, or potentially a missing option (?) in the translate_c package or the build.zig?
@siriusfox the flag is in default_cpp_flags, maybe i forgot to pass them somewhere
@siriusfox reworked the flag list construction a bit, should be better now
@vyivel the commit just before your update looks like the cflags for the .system option where just whatever pkg-config generated. The fix you just pushed resolved it. :)
@siriusfox yeah, the current logic is a bit messy… which is partially what i meant by ironing out the build system stuff