Qt 6.8 Duplicate symbol: qInitResources
-
-
@Parvathy2020 Thanks @Christian-Ehrlicher Thanks for the information. The bug report page about the same issue that I face.
So this was a known issue /bug & it is mentioned in the page that fix for the issue is already available with Qt 6.8.But I am using latest Qt 6.8 which I installed 3 days back. But still I get the error.
Also as mentioned in the page, I have removed the set(CMAKE_AUTOUIC ON) , set(CMAKE_AUTOMOC ON) and set(CMAKE_AUTORCC ON) from my code.
Is there any other changes to be made to resolve the issue.
Thanks in advance.
-
@Parvathy2020 said in Qt 6.8 Duplicate symbol: qInitResources:
But I am using latest Qt 6.8 which I installed 3 days back.
How? Did you compile from source? Otherwise you're using Qt6.8.0 which does not contain the fix.
But you can apply them manually - it's only six additional lines in a cmake script. -
@Christian-Ehrlicher Oh yes, my bad , I am using 6.8.0. So the fix is not available with that.
Got it now.Is this the change that need to be added in src/corelib/Qt6CoreMacros.cmake ?
Any change required to be added in my application cmake file ?
-
@Parvathy2020 said in Qt 6.8 Duplicate symbol: qInitResources:
Any change required to be added in my application cmake file ?
Why - the bug report clearly states that the fix from gerrit fixes the problem.
-
Thanks @Christian-Ehrlicher ! The error got solved now. I have updated Qt6CoreMacros.cmake file with the change . Thanks !
When will fix for this issue will be available with Qt 6.8.0 ?
-
@Parvathy2020 Just look at "Fix Version/s:" in the bug ticket
-
-
@jsulm Yes, from the fix versions , it is seen that fix available in 6.5.8, 6.8.1, 6.9.0 FF .
But I have installed 6.8.0 LTS version . Will the fix for this will be available to 6.8.0 any time later or is it required to upgrade to 6.8.1. What is the suggested solution ?
-
@Parvathy2020 said in Qt 6.8 Duplicate symbol: qInitResources:
ill the fix for this will be available to 6.8.0 any time later or is it required to upgrade to 6.8.1.
As you already wrote it's available in 6.8.1 so how should it magically go into the already released 6.8.0 version then?
-
@Parvathy2020 said in Qt 6.8 Duplicate symbol: qInitResources:
But I have installed 6.8.0 LTS version
If 6.8 is a LTS version then also all 6.8.x versions are LTS and you should anyway upgrade to these versions to get all the bug fixes.