[oi-dev] tips for building a Qt6 extension?
Aurélien Larcher
aurelien.larcher at gmail.com
Sun Nov 1 13:10:34 UTC 2026
Do not hesitate to reach out if you struggle with C++ compilation errors.
Cheers
Aurélien
Le vendredi 30 octobre 2026, Tim Mooney via oi-dev <oi-dev at openindiana.org>
a écrit :
> In regard to: Re: [oi-dev] tips for building a Qt6 extension?, Aurélien...:
>
> the release notes specify that C++20 is required to build QtWebEngine, the
>> features of which at the time of the release may have been better
>> supported
>> by Clang.
>> GCC 10 did not provide full support for consteval and improved template
>> deduction.
>> Any GCC >= 12 is probably suitable, and GCC 13 definitely is.
>> If you insist on Clang, any >= 18 will probably do the job and as long as
>> the same libstdc++ it should be fine.
>>
>> Howeber I would stick to the system GCC if I were you.
>> Given that GCC is more permissive and more forgiving with template
>> deduction, it should OK.
>>
>
> Thanks Aurélien!
>
> You're definitely more knowledgeable about the C++ landscape than I am.
> What you're saying makes sense and sticking with gcc makes things easier
> for sure.
>
> After getting a couple of the other prereqs packaged and installed, I have
> made some progress, but it has been slow. There are lots and lots of
> places in the cmake config that do checks like
>
> if (LINUX)
> ... do a bunch of stuff
> endif()
>
> and I'm having to find all of those and either lie that OI is Linux or
> attempt other adjustments.
>
> Thanks again,
>
> Tim
>
> Le mardi 27 octobre 2026, Tim Mooney via oi-dev <oi-dev at openindiana.org> a
>> écrit :
>>
>>
>>> All-
>>>
>>> Some software I'm experimenting with needs Qt WebEngineWidgets,
>>>
>>> https://doc-snapshots.qt.io/qtwebengine/qtwebengine-platform
>>> -notes.html
>>>
>>> That's not part of OI's Qt6 build. That's fine, it looks like it should
>>> be built (and if relevant, packaged) separately.
>>>
>>> I've never built a Qt extension, though, and this one specifically says
>>> it can't be built with GNU C/C++, it requires Clang.
>>>
>>> I'm not asking anyone to build and package this, but I'm wondering if
>>> anyone has any suggestions for building *any* Qt(6) extension with Clang?
>>> I'm pretty familiar with gcc, but I have next to no experience with
>>> Clang.
>>>
>>> It looks like OI's qtcreator package uses g++ but also requires Clang?
>>> Would that be the best option for an example, or is there something
>>> better?
>>>
>>> Thanks,
>>>
>>> Tim
>>> --
>>> Tim Mooney
>>> Tim.Mooney at ndsu.edu
>>> Enterprise Computing & Infrastructure /
>>> Division of Information Technology / 701-231-1076
>>> (Voice)
>>> North Dakota State University, Fargo, ND 58105-5164
>>>
>>> _______________________________________________
>>> oi-dev mailing list
>>> oi-dev at openindiana.org
>>> https://openindiana.org/mailman/listinfo/oi-dev
>>>
>>>
>>
>>
>>
> --
> Tim Mooney Tim.Mooney at ndsu.edu
> Enterprise Computing & Infrastructure /
> Division of Information Technology / 701-231-1076 (Voice)
> North Dakota State University, Fargo, ND 58105-5164
--
---
Praise the Caffeine embeddings
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openindiana.org/pipermail/oi-dev/attachments/20261101/0adf0651/attachment.html>
More information about the oi-dev
mailing list