Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Qt6.5.3 and QTcreator 9 .... problem to use gcc-9
Forum Updated to NodeBB v4.3 + New Features

Qt6.5.3 and QTcreator 9 .... problem to use gcc-9

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
23 Posts 6 Posters 3.6k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • jsulmJ jsulm

    @gfxx said in Qt6.5.3 and QTcreator 9 .... problem to use gcc-9:

    but with previous step I change compiler from gcc12 to gcc9 or not?

    You changed from 9 to 12 and wrote that the build fails, right?
    I asked whether you rebuild from scratch after changing compiler - you did not answer...

    gfxxG Offline
    gfxxG Offline
    gfxx
    wrote on last edited by
    #13

    @jsulm no I change from 12 to 9 .... because qtcreator and qt6 support max 9 on linux ..... after these I cancel every build of my project, run again qmake, and after build project. For major safety I close qtcreator, I open it again, I open again project, I check if gcc9 is still the choosen compiler, than clean again project, again qmake, and again build project. .... if you ask me install again qt6 with gcc9 ... these is not done.

    is ok?

    bkt

    1 Reply Last reply
    0
    • aha_1980A Offline
      aha_1980A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on last edited by
      #14

      Why do you think max gcc 9 is supported?

      Qt has to stay free or it will die.

      1 Reply Last reply
      1
      • Axel SpoerlA Offline
        Axel SpoerlA Offline
        Axel Spoerl
        Moderators
        wrote on last edited by Axel Spoerl
        #15

        Well, for openSuSE we officially support max gcc9 (see here). But that's mainly due to backwards compatibility. On openSuSE, Qt compiles with anything from gcc9 till gcc13.

        Software Engineer
        The Qt Company, Oslo

        1 Reply Last reply
        1
        • gfxxG Offline
          gfxxG Offline
          gfxx
          wrote on last edited by
          #16

          So seems try to downgrade to gcc9 is not necessary .... any how I'm mainly on debian12. So gcc12 is still ok or not?

          bkt

          1 Reply Last reply
          0
          • aha_1980A Offline
            aha_1980A Offline
            aha_1980
            Lifetime Qt Champion
            wrote on last edited by
            #17

            My experience is, that you can always upgrade gcc and even use that with libraries (like Qt) that are compiled with older gcc versions.

            The opposite is not always true

            Regards.

            Qt has to stay free or it will die.

            gfxxG 1 Reply Last reply
            0
            • aha_1980A aha_1980

              My experience is, that you can always upgrade gcc and even use that with libraries (like Qt) that are compiled with older gcc versions.

              The opposite is not always true

              Regards.

              gfxxG Offline
              gfxxG Offline
              gfxx
              wrote on last edited by
              #18

              @aha_1980 My case is about a qt project create with qt5.15.2 ..... need to upgrade hardware and cpu .... so I use original project not compiled ..... and try to upgrade it to qt6.5 .... because I use debian12, reading qt6 doc, seems need to use gcc9 .... debian12 have as default gcc12 .... so I install gcc9 and use appropriate qtcreator version .... try to compile using gcc9 ... but seems qtcreator non help me on these ..... someone suggest to upgrade my gcc12 because with some bugs, than compile my qt6 project using default gcc12 ..... because qt doc talk about supported gcc version on opensuse and ubuntu (nothing about debian) supported and supported one seems gcc9 .... I try to do these .... but for Axel users these is not necessary .....

              I ask for confirmation .... gcc12 work good with qt6.5 in linux system?

              bkt

              aha_1980A 1 Reply Last reply
              0
              • gfxxG gfxx

                @aha_1980 My case is about a qt project create with qt5.15.2 ..... need to upgrade hardware and cpu .... so I use original project not compiled ..... and try to upgrade it to qt6.5 .... because I use debian12, reading qt6 doc, seems need to use gcc9 .... debian12 have as default gcc12 .... so I install gcc9 and use appropriate qtcreator version .... try to compile using gcc9 ... but seems qtcreator non help me on these ..... someone suggest to upgrade my gcc12 because with some bugs, than compile my qt6 project using default gcc12 ..... because qt doc talk about supported gcc version on opensuse and ubuntu (nothing about debian) supported and supported one seems gcc9 .... I try to do these .... but for Axel users these is not necessary .....

                I ask for confirmation .... gcc12 work good with qt6.5 in linux system?

                aha_1980A Offline
                aha_1980A Offline
                aha_1980
                Lifetime Qt Champion
                wrote on last edited by
                #19

                @gfxx Why don't you just try it?

                I have several systems with different compilers and as I said, upgrading the compiler mostly unproblematic.

                You could, for example try gcc-12 with Qt 5.15.2 first to see if you program compiles. Afterwards, do the upgrade to Qt 6.

                Regards

                Qt has to stay free or it will die.

                1 Reply Last reply
                1
                • gfxxG Offline
                  gfxxG Offline
                  gfxx
                  wrote on last edited by
                  #20

                  thanks a lot .... but qt5.15.2 work with c++20 gcc11 .... not try gcc12 .... but try to install different version of qt6 and where qt6.5.3 lts have almost 6-7 installation problem from online installer ... qt6.6.3 no problem at all during installation process .... previous of these I discover that kernel 6.6 that I previously used have a lot of bug ... some library is impossible to install ... so in any case was inusable for me. So I reinstal SO using these time kernel 6.10 ..... whith no problem about library that previous I have ..... BUT i see a lot of error during qt6.5.3 online installer process .... so I try almost 12 time with plain and totally new installation ... without a complete sucess ... sometime qt6.5.3 istall whitout creator, sometime whitout other module ..... so try one time qt6.6.3 and all work ..... for duble check I try an other plain istall of qt6.6.3 ... same result ... no error at all .... not try until now compile my app just converted on qt6 version .... but for now all work ... and simple browser example work great, where with qt6.5.3 was impossible to use ..... impossible to install correctly webengine in my case with qt6.5.3. ..... these is not my app but use web page on my app for example .... when I try my app on qt creator, I write here the result. But seems most part of problem was solved.

                  bkt

                  1 Reply Last reply
                  0
                  • gfxxG Offline
                    gfxxG Offline
                    gfxx
                    wrote on last edited by gfxx
                    #21

                    exactly ... all previous problem with compile process disappear ... all problem not language decode .... instead of mismatch of compiler now there are only decoding file problem .....

                    Detected locale "C" with character encoding "ANSI_X3.4-1968", which is not UTF-8.
                    Qt depends on a UTF-8 locale, and has switched to "C.UTF-8" instead.
                    

                    so need to solve these problems (depends from bookworm locale tree) .... Can compile with success I think or with normal error become from wrong code.

                    bkt

                    gfxxG 1 Reply Last reply
                    0
                    • gfxxG gfxx

                      exactly ... all previous problem with compile process disappear ... all problem not language decode .... instead of mismatch of compiler now there are only decoding file problem .....

                      Detected locale "C" with character encoding "ANSI_X3.4-1968", which is not UTF-8.
                      Qt depends on a UTF-8 locale, and has switched to "C.UTF-8" instead.
                      

                      so need to solve these problems (depends from bookworm locale tree) .... Can compile with success I think or with normal error become from wrong code.

                      gfxxG Offline
                      gfxxG Offline
                      gfxx
                      wrote on last edited by gfxx
                      #22

                      @gfxx very interesting ..... I run sudo dpk-reconfigure locales command .... all ok , after these with root permission I read /etc/default/locale and add LC_ALL row .... after I reboot .... that try to build my app on QTCreator 14 (new intallation ...but same error of QTCreator 9) ..... now I have these error .... plus other because some heather was corrupt from QtCreator (original file is perfect, after build these file at end have a lot of bad characters like @#|\ and so on ASCII chars random)....

                      (repeated more than one time ... almost 20 time ...)
                      
                      Detected locale "LC_CTYPE=C;LC_NUMERIC=C;LC_TIME=C;LC_COLLATE=C;LC_MONETARY=C;LC_MESSAGES=en_US.utf8;LC_PAPER=C;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=C;LC_IDENTIFICATION=C" with character encoding "ANSI_X3.4-1968", which is not UTF-8.
                      Qt depends on a UTF-8 locale, and has switched to "C.UTF-8" instead.
                      If this causes problems, reconfigure your locale. See the locale(1) manual
                      for more information.
                      

                      But these is my locale commad output ....

                      @mint51:~$ locale
                      LANG=it_IT.UTF-8
                      LANGUAGE=it_IT.UTF-8
                      LC_CTYPE="it_IT.UTF-8"
                      LC_NUMERIC="it_IT.UTF-8"
                      LC_TIME="it_IT.UTF-8"
                      LC_COLLATE="it_IT.UTF-8"
                      LC_MONETARY="it_IT.UTF-8"
                      LC_MESSAGES="it_IT.UTF-8"
                      LC_PAPER="it_IT.UTF-8"
                      LC_NAME="it_IT.UTF-8"
                      LC_ADDRESS="it_IT.UTF-8"
                      LC_TELEPHONE="it_IT.UTF-8"
                      LC_MEASUREMENT="it_IT.UTF-8"
                      LC_IDENTIFICATION="it_IT.UTF-8"
                      LC_ALL=it_IT.UTF-8
                      
                      

                      So think there are somethings not work on QtCreator and Qt6, But Try again to play aroud locale ....

                      ******** edit:
                      my locale is ok ... seems problem is qt6 side. So means previous problem is solved!

                      regards

                      bkt

                      gfxxG 1 Reply Last reply
                      0
                      • gfxxG gfxx

                        @gfxx very interesting ..... I run sudo dpk-reconfigure locales command .... all ok , after these with root permission I read /etc/default/locale and add LC_ALL row .... after I reboot .... that try to build my app on QTCreator 14 (new intallation ...but same error of QTCreator 9) ..... now I have these error .... plus other because some heather was corrupt from QtCreator (original file is perfect, after build these file at end have a lot of bad characters like @#|\ and so on ASCII chars random)....

                        (repeated more than one time ... almost 20 time ...)
                        
                        Detected locale "LC_CTYPE=C;LC_NUMERIC=C;LC_TIME=C;LC_COLLATE=C;LC_MONETARY=C;LC_MESSAGES=en_US.utf8;LC_PAPER=C;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=C;LC_IDENTIFICATION=C" with character encoding "ANSI_X3.4-1968", which is not UTF-8.
                        Qt depends on a UTF-8 locale, and has switched to "C.UTF-8" instead.
                        If this causes problems, reconfigure your locale. See the locale(1) manual
                        for more information.
                        

                        But these is my locale commad output ....

                        @mint51:~$ locale
                        LANG=it_IT.UTF-8
                        LANGUAGE=it_IT.UTF-8
                        LC_CTYPE="it_IT.UTF-8"
                        LC_NUMERIC="it_IT.UTF-8"
                        LC_TIME="it_IT.UTF-8"
                        LC_COLLATE="it_IT.UTF-8"
                        LC_MONETARY="it_IT.UTF-8"
                        LC_MESSAGES="it_IT.UTF-8"
                        LC_PAPER="it_IT.UTF-8"
                        LC_NAME="it_IT.UTF-8"
                        LC_ADDRESS="it_IT.UTF-8"
                        LC_TELEPHONE="it_IT.UTF-8"
                        LC_MEASUREMENT="it_IT.UTF-8"
                        LC_IDENTIFICATION="it_IT.UTF-8"
                        LC_ALL=it_IT.UTF-8
                        
                        

                        So think there are somethings not work on QtCreator and Qt6, But Try again to play aroud locale ....

                        ******** edit:
                        my locale is ok ... seems problem is qt6 side. So means previous problem is solved!

                        regards

                        gfxxG Offline
                        gfxxG Offline
                        gfxx
                        wrote on last edited by
                        #23

                        @gfxx because definitively an other problem now ... I open I new post .... If these is wrong, moderator can joint these two.

                        bkt

                        1 Reply Last reply
                        0
                        • gfxxG gfxx has marked this topic as solved on

                        • Login

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • Users
                        • Groups
                        • Search
                        • Get Qt Extensions
                        • Unsolved