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. Compiling qtcreator by sources failed: recipe for target '.obj/release-shared/contextpanewidgetimage.o' failed
Forum Updated to NodeBB v4.3 + New Features

Compiling qtcreator by sources failed: recipe for target '.obj/release-shared/contextpanewidgetimage.o' failed

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
7 Posts 3 Posters 1.1k 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.
  • Q Offline
    Q Offline
    qtuser12
    wrote on 2 Feb 2020, 10:14 last edited by
    #1

    Hi all:
    When I compiled qtcreator from sources, I counter a question as :
    ctcreator-compile-failed.png
    I used qt 5.12. 6 and compiled qtcreator 4.3.1.
    Please tell me the reason to the question and how I can solve it?
    Thank you!

    A K 2 Replies Last reply 2 Feb 2020, 10:42
    0
    • Q qtuser12
      2 Feb 2020, 10:14

      Hi all:
      When I compiled qtcreator from sources, I counter a question as :
      ctcreator-compile-failed.png
      I used qt 5.12. 6 and compiled qtcreator 4.3.1.
      Please tell me the reason to the question and how I can solve it?
      Thank you!

      A Offline
      A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on 2 Feb 2020, 10:42 last edited by
      #2

      Hi @qtuser12,

      I dont think Creator 4.3 is compatible with Qt 5.12, which was released a year ago.

      Either use a newer Qt Creator or an older Qt version.

      Btw, which compiler is that?

      Regards

      Qt has to stay free or it will die.

      Q 1 Reply Last reply 2 Feb 2020, 11:13
      1
      • Q qtuser12
        2 Feb 2020, 10:14

        Hi all:
        When I compiled qtcreator from sources, I counter a question as :
        ctcreator-compile-failed.png
        I used qt 5.12. 6 and compiled qtcreator 4.3.1.
        Please tell me the reason to the question and how I can solve it?
        Thank you!

        K Offline
        K Offline
        koahnig
        wrote on 2 Feb 2020, 10:48 last edited by
        #3

        @qtuser12

        Hi and welcome to devnet forum

        Basically you need to change creator code to resolve this compile error. Personally I would not change the creator code.

        Each creator code is compiled a specific version of Qt libs. When something is changing you may get such compile errors.

        On the other side from where did you get the creator code?

        We are already at creator version 4.11. It looks you are actually trying to compile the fairly old version of 4.3.1. For whatever reason you are trying to recompile the code, you shall check which Qt libs version has been used at that time.To compile against shall be easier.

        Otherwise I would recommend to download the most recent stable creator version from https://github.com/qt-creator/qt-creator and compile against recent version of Qt libs or whatever is used there.

        Vote the answer(s) that helped you to solve your issue(s)

        Q 1 Reply Last reply 2 Feb 2020, 11:32
        1
        • A aha_1980
          2 Feb 2020, 10:42

          Hi @qtuser12,

          I dont think Creator 4.3 is compatible with Qt 5.12, which was released a year ago.

          Either use a newer Qt Creator or an older Qt version.

          Btw, which compiler is that?

          Regards

          Q Offline
          Q Offline
          qtuser12
          wrote on 2 Feb 2020, 11:13 last edited by
          #4

          @aha_1980
          Thank you for the reply!
          The compiler I used is gcc/g++ 6.3.0.
          I will try with a newer Qt creator sources.
          Thank you!

          1 Reply Last reply
          0
          • K koahnig
            2 Feb 2020, 10:48

            @qtuser12

            Hi and welcome to devnet forum

            Basically you need to change creator code to resolve this compile error. Personally I would not change the creator code.

            Each creator code is compiled a specific version of Qt libs. When something is changing you may get such compile errors.

            On the other side from where did you get the creator code?

            We are already at creator version 4.11. It looks you are actually trying to compile the fairly old version of 4.3.1. For whatever reason you are trying to recompile the code, you shall check which Qt libs version has been used at that time.To compile against shall be easier.

            Otherwise I would recommend to download the most recent stable creator version from https://github.com/qt-creator/qt-creator and compile against recent version of Qt libs or whatever is used there.

            Q Offline
            Q Offline
            qtuser12
            wrote on 2 Feb 2020, 11:32 last edited by
            #5

            @koahnig
            Thank you for your attention and reply!
            I download my creator code from http://download.qt.io/archive/qtcreator/4.3/.
            Thank you for the remind and I also have a question that how can I check the Qt libs version used in compiling qtcreator.
            I have this question because I compiled my Qt5.12.6 from source code and installed it in /opt/Qt5.12.6/, but I'm not sure whether I have install some part of Qt libs in /lib /usr/lib or /usr/local/lib etc. when I install other software' dependencies. And I don't know which Qt libs would be used when compiled qtcreator. Shall I see the print in terminal when compiling?
            Thank you for the reply!

            K 1 Reply Last reply 2 Feb 2020, 11:40
            0
            • Q qtuser12
              2 Feb 2020, 11:32

              @koahnig
              Thank you for your attention and reply!
              I download my creator code from http://download.qt.io/archive/qtcreator/4.3/.
              Thank you for the remind and I also have a question that how can I check the Qt libs version used in compiling qtcreator.
              I have this question because I compiled my Qt5.12.6 from source code and installed it in /opt/Qt5.12.6/, but I'm not sure whether I have install some part of Qt libs in /lib /usr/lib or /usr/local/lib etc. when I install other software' dependencies. And I don't know which Qt libs would be used when compiled qtcreator. Shall I see the print in terminal when compiling?
              Thank you for the reply!

              K Offline
              K Offline
              koahnig
              wrote on 2 Feb 2020, 11:40 last edited by
              #6

              @qtuser12 said in Compiling qtcreator by sources failed: recipe for target '.obj/release-shared/contextpanewidgetimage.o' failed:

              how can I check the Qt libs version used in compiling qtcreator

              Well, that is certainly an issue. Typically you can see this in creator with the creator version number. However, you got a hen and egg issue here.

              @koahnig said in Compiling qtcreator by sources failed: recipe for target '.obj/release-shared/contextpanewidgetimage.o' failed:

              Otherwise I would recommend to download the most recent stable creator version from https://github.com/qt-creator/qt-creator and compile against recent version of Qt libs or whatever is used there.

              This statement is IMHO the best way to go, because of the version correlation issue. Personally I am refraining from being with the first to try the complete stuff. Too many failures in the past taught me so.
              Grabbing the last stable released code with a recent Qt lib version seems to me the most promising way to get a start.

              Vote the answer(s) that helped you to solve your issue(s)

              Q 1 Reply Last reply 2 Feb 2020, 14:24
              1
              • K koahnig
                2 Feb 2020, 11:40

                @qtuser12 said in Compiling qtcreator by sources failed: recipe for target '.obj/release-shared/contextpanewidgetimage.o' failed:

                how can I check the Qt libs version used in compiling qtcreator

                Well, that is certainly an issue. Typically you can see this in creator with the creator version number. However, you got a hen and egg issue here.

                @koahnig said in Compiling qtcreator by sources failed: recipe for target '.obj/release-shared/contextpanewidgetimage.o' failed:

                Otherwise I would recommend to download the most recent stable creator version from https://github.com/qt-creator/qt-creator and compile against recent version of Qt libs or whatever is used there.

                This statement is IMHO the best way to go, because of the version correlation issue. Personally I am refraining from being with the first to try the complete stuff. Too many failures in the past taught me so.
                Grabbing the last stable released code with a recent Qt lib version seems to me the most promising way to get a start.

                Q Offline
                Q Offline
                qtuser12
                wrote on 2 Feb 2020, 14:24 last edited by
                #7

                @koahnig
                Thank you and I will try it as you said. And I will give you feedback when I get some ideas.
                Regards.

                1 Reply Last reply
                0

                5/7

                2 Feb 2020, 11:32

                • Login

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