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 Updated to NodeBB v4.3 + New Features

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 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.
  • B BorjaFrade

    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

    jsulmJ Offline
    jsulmJ Offline
    jsulm
    Lifetime Qt Champion
    wrote on 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
    0
    • dheerendraD Offline
      dheerendraD Offline
      dheerendra
      Qt Champions 2022
      wrote on 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
      0
      • jsulmJ jsulm

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

        B Offline
        B Offline
        BorjaFrade
        wrote on 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
        • dheerendraD dheerendra

          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 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
          • dheerendraD Offline
            dheerendraD Offline
            dheerendra
            Qt Champions 2022
            wrote on 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
            0
            • dheerendraD dheerendra

              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 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
              • dheerendraD Offline
                dheerendraD Offline
                dheerendra
                Qt Champions 2022
                wrote on 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
                0
                • dheerendraD dheerendra

                  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 last edited by
                  #9

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

                  1 Reply Last reply
                  0
                  • SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on 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
                    • dheerendraD Offline
                      dheerendraD Offline
                      dheerendra
                      Qt Champions 2022
                      wrote on 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

                      • Login

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