Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Error compiling default template qt widget application on macOS high sierra
Forum Update on Monday, May 27th 2025

Error compiling default template qt widget application on macOS high sierra

Scheduled Pinned Locked Moved Unsolved General and Desktop
qt creatormacos
11 Posts 4 Posters 1.4k Views
  • 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.
  • B Offline
    B Offline
    BorjaFrade
    wrote on 4 Dec 2018, 10:57 last edited by
    #1

    I recently installed qt 5.11 on my MacBook Air with MacOS high Sierra 10.13 and Xcode 10.

    I’m used to write c/c++ codes on visual studio for windows and several Swift-written iOS apps on Xcode,however I’ve never used qt for creating visual apps on my Mac.

    I created a default widget application (for Mac) with no more code than it’s generated by the qt creator. When I try to compile it, I receive two errors: -framework not found Qtwidgets -linker command failed with exit 1

    I think that qtcreator doesn’t find the path of the qtwidgets but I have no idea how include this path.

    Did anyone have this same problem and how I could be solved it?

    Thanks

    J 1 Reply Last reply 4 Dec 2018, 11:42
    0
    • B BorjaFrade
      4 Dec 2018, 10:57

      I recently installed qt 5.11 on my MacBook Air with MacOS high Sierra 10.13 and Xcode 10.

      I’m used to write c/c++ codes on visual studio for windows and several Swift-written iOS apps on Xcode,however I’ve never used qt for creating visual apps on my Mac.

      I created a default widget application (for Mac) with no more code than it’s generated by the qt creator. When I try to compile it, I receive two errors: -framework not found Qtwidgets -linker command failed with exit 1

      I think that qtcreator doesn’t find the path of the qtwidgets but I have no idea how include this path.

      Did anyone have this same problem and how I could be solved it?

      Thanks

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 4 Dec 2018, 11:42 last edited by
      #2

      @BorjaFrade Did you install Qt?
      Did you check your Kit in QtCreator (are there any warnings/errors?)?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      B 1 Reply Last reply 4 Dec 2018, 14:13
      0
      • D Offline
        D Offline
        dheerendra
        Qt Champions 2022
        wrote on 4 Dec 2018, 12:11 last edited by
        #3

        In addition what @jsulm requested, can you show the configuration in QtCreator->Preferences->Build & Run. Look for tabs Kits & Qt Versions. Do you see any errors there like red mark ?

        Dheerendra
        @Community Service
        Certified Qt Specialist
        http://www.pthinks.com

        B 1 Reply Last reply 4 Dec 2018, 14:24
        0
        • J jsulm
          4 Dec 2018, 11:42

          @BorjaFrade Did you install Qt?
          Did you check your Kit in QtCreator (are there any warnings/errors?)?

          B Offline
          B Offline
          BorjaFrade
          wrote on 4 Dec 2018, 14:13 last edited by
          #4

          @jsulm thanks for the answer.

          Yes, I installed the 5.11.2 Qt version last weekend.

          I attach a screenshot with the warnings after trying compiling the default widget project.

          0_1543932683038_Captura de pantalla 2018-12-04 a las 15.10.44.png

          1 Reply Last reply
          0
          • D dheerendra
            4 Dec 2018, 12:11

            In addition what @jsulm requested, can you show the configuration in QtCreator->Preferences->Build & Run. Look for tabs Kits & Qt Versions. Do you see any errors there like red mark ?

            B Offline
            B Offline
            BorjaFrade
            wrote on 4 Dec 2018, 14:24 last edited by
            #5

            Hi @dheerendra,

            this is my config. Do you see anything wrong and weird? I didn't change anything, it's default config.

            0_1543932858819_Captura de pantalla 2018-12-04 a las 15.06.24.png

            1 Reply Last reply
            0
            • D Offline
              D Offline
              dheerendra
              Qt Champions 2022
              wrote on 4 Dec 2018, 14:40 last edited by
              #6

              weird & confused as well :). From where did you get the Qt Creator ? I'm not seeing the Qt Versions, Kits, Compilers tabs at all. Do you have old Qt version also on your box ?

              Dheerendra
              @Community Service
              Certified Qt Specialist
              http://www.pthinks.com

              B 1 Reply Last reply 4 Dec 2018, 15:16
              0
              • D dheerendra
                4 Dec 2018, 14:40

                weird & confused as well :). From where did you get the Qt Creator ? I'm not seeing the Qt Versions, Kits, Compilers tabs at all. Do you have old Qt version also on your box ?

                B Offline
                B Offline
                BorjaFrade
                wrote on 4 Dec 2018, 15:16 last edited by
                #7

                Hi @dheerendra , I download the web installer from this site https://www.qt.io/download-thank-you?os=macos

                I completely erased my ssd last weekend and installed Qt creator. Should I delete and reinstall Qt?

                thanks!

                1 Reply Last reply
                0
                • D Offline
                  D Offline
                  dheerendra
                  Qt Champions 2022
                  wrote on 4 Dec 2018, 16:04 last edited by
                  #8

                  What you have tried is online installer. It should not make any difference. You can try downloading off-line installer and try ?

                  Dheerendra
                  @Community Service
                  Certified Qt Specialist
                  http://www.pthinks.com

                  B 1 Reply Last reply 4 Dec 2018, 17:15
                  0
                  • D dheerendra
                    4 Dec 2018, 16:04

                    What you have tried is online installer. It should not make any difference. You can try downloading off-line installer and try ?

                    B Offline
                    B Offline
                    BorjaFrade
                    wrote on 4 Dec 2018, 17:15 last edited by
                    #9

                    I reinstalled Qt and it compiles now. Maybe I didn't install any libraries:)
                    Thanks

                    1 Reply Last reply
                    0
                    • S Offline
                      S Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on 4 Dec 2018, 17:28 last edited by
                      #10

                      Hi and welcome to devnet,

                      Based on what you wrote, it looks like, indeed, you installed only Qt Creator which has also its own separate installer.

                      In any case, happy coding !

                      Interested in AI ? www.idiap.ch
                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                      1 Reply Last reply
                      0
                      • D Offline
                        D Offline
                        dheerendra
                        Qt Champions 2022
                        wrote on 4 Dec 2018, 17:36 last edited by
                        #11

                        hmmm Common mistake. Qt Creator is not Qt. Now you can move the case to SOLVED.

                        Dheerendra
                        @Community Service
                        Certified Qt Specialist
                        http://www.pthinks.com

                        1 Reply Last reply
                        0

                        4/11

                        4 Dec 2018, 14:13

                        7 unread
                        • Login

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