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. I'm going crazy because of Mac OSX and Qt!

I'm going crazy because of Mac OSX and Qt!

Scheduled Pinned Locked Moved Unsolved General and Desktop
18 Posts 4 Posters 4.3k Views 3 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.
  • mrdebugM Offline
    mrdebugM Offline
    mrdebug
    wrote on last edited by
    #4

    Xcode 9.2, 9C40b
    Latest Command line tools.

    After having update Xcode and the command line tools at the latest version, after having uninstall and reinstall Qt framwerork, I have the same problem.
    Lazarus / Freepascal is working without any problem.

    Please have a look at the attached image.

    0_1517650599026_Screenshot_20180203_103152.png

    Need programmers to hire?
    www.labcsp.com
    www.denisgottardello.it
    GMT+1
    Skype: mrdebug

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #5

      What does the compile output show ?

      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
      • mrdebugM Offline
        mrdebugM Offline
        mrdebug
        wrote on last edited by
        #6

        Please have a look at the above screenshot.

        Need programmers to hire?
        www.labcsp.com
        www.denisgottardello.it
        GMT+1
        Skype: mrdebug

        1 Reply Last reply
        0
        • K Offline
          K Offline
          kenchan
          wrote on last edited by kenchan
          #7

          I think @SGaist means the output shown in the "4 Compiler Output" window, is that right @SGaist ?
          BTW, why are those paths "/Users/denis/Qt5.9.2/..." etc. different from the others? different install or just the way it being displayed? might not be related to the problem though.

          1 Reply Last reply
          1
          • mrdebugM mrdebug

            My Mac OSX machine with the latest version of Mac OS X has worked perfectly with Qt 5.9.2.
            But today, after a one month without to compile something with this machine and after some Apple uptades, when i try to compile something with Qt I obtain the error:

            error: Qt requires a C++11 compiler and yours does not seem to be that.
            error: "Qt requires C++11 support"

            The command line tools are installed and seems to be ok because I can compile an application using Lazarus / Freepascal.
            I tryed the lates Qt 5.10.0 but I obtain the same error.

            What can I do to resolve?

            DiracsbracketD Offline
            DiracsbracketD Offline
            Diracsbracket
            wrote on last edited by Diracsbracket
            #8

            @mrdebug

            I'm going crazy because of Mac OSX and Qt!
            

            Me too!

            K 1 Reply Last reply
            0
            • DiracsbracketD Diracsbracket

              @mrdebug

              I'm going crazy because of Mac OSX and Qt!
              

              Me too!

              K Offline
              K Offline
              kenchan
              wrote on last edited by
              #9

              @Diracsbracket you too?

              1 Reply Last reply
              0
              • mrdebugM Offline
                mrdebugM Offline
                mrdebug
                wrote on last edited by
                #10

                Has someone got any idea to solve?

                Need programmers to hire?
                www.labcsp.com
                www.denisgottardello.it
                GMT+1
                Skype: mrdebug

                DiracsbracketD 2 Replies Last reply
                0
                • mrdebugM mrdebug

                  Has someone got any idea to solve?

                  DiracsbracketD Offline
                  DiracsbracketD Offline
                  Diracsbracket
                  wrote on last edited by Diracsbracket
                  #11

                  @mrdebug
                  Hi,
                  I've just had a look into the header file qcompilerdetection.h (see this link) as it is the one raising the error in your screenshot. I searched for your error and found only 1 occurence for it in the file:

                  559	#ifdef __cplusplus
                  560	#  if __cplusplus < 201103L && !defined(Q_CC_MSVC)
                  561	#    error Qt requires a C++11 compiler and yours does not seem to be that.
                  562	#  endif
                  563	#endif
                  

                  So, I tried to check the value of __cplusplus in my case, by putting the following in e.g. main.cpp:

                  #define DISPLAY_VALUE2(x) #x
                  #define DISPLAY_VALUE(x) DISPLAY_VALUE2(x)
                  #pragma message(DISPLAY_VALUE(__cplusplus))
                  

                  It shows that on my system, the value is 201103L, thus OK.

                  0_1517843872169_0772f294-5eba-4b2f-99c7-64453b454895-image.png

                  What does it show when you use it?

                  1 Reply Last reply
                  1
                  • mrdebugM mrdebug

                    Has someone got any idea to solve?

                    DiracsbracketD Offline
                    DiracsbracketD Offline
                    Diracsbracket
                    wrote on last edited by
                    #12

                    @mrdebug
                    In addition, the Makefile of my test program has the following line:

                    CXXFLAGS      = -pipe -stdlib=libc++ -g -std=gnu++11 $(EXPORT_ARCH_ARGS) -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk -mmacosx-version-min=10.10 -Wall -W -fPIC $(DEFINES)
                    

                    The interesting part here is -std=gnu++11.
                    Would adding QMAKE_CXXFLAGS += -std=gnu++11 in your .pro file make any difference?

                    1 Reply Last reply
                    0
                    • mrdebugM Offline
                      mrdebugM Offline
                      mrdebug
                      wrote on last edited by
                      #13

                      After may hours spent on searching the solution I have moved the project in another directory. Now the project (without any editing) was been compiled.
                      After that I have moved the project in its own default directory. After a clean the project was been compiled without any problem.

                      Need programmers to hire?
                      www.labcsp.com
                      www.denisgottardello.it
                      GMT+1
                      Skype: mrdebug

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

                        What were the paths ?

                        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
                        • mrdebugM Offline
                          mrdebugM Offline
                          mrdebug
                          wrote on last edited by
                          #15

                          Before
                          /Users/denis/IOManager/IOManager
                          After
                          /Users/denis/Cpp/IOManager/IOManager

                          Need programmers to hire?
                          www.labcsp.com
                          www.denisgottardello.it
                          GMT+1
                          Skype: mrdebug

                          1 Reply Last reply
                          0
                          • SGaistS Offline
                            SGaistS Offline
                            SGaist
                            Lifetime Qt Champion
                            wrote on last edited by
                            #16

                            And just moving it fixed the issue ?

                            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
                            • mrdebugM Offline
                              mrdebugM Offline
                              mrdebug
                              wrote on last edited by
                              #17

                              Yes I do.
                              It sounds to be very strange but I don't remember to have did something else.
                              I have tried to clean the output directory, by deleting the non visible files without to resolve.

                              Really I am very confused.

                              Need programmers to hire?
                              www.labcsp.com
                              www.denisgottardello.it
                              GMT+1
                              Skype: mrdebug

                              1 Reply Last reply
                              0
                              • SGaistS Offline
                                SGaistS Offline
                                SGaist
                                Lifetime Qt Champion
                                wrote on last edited by
                                #18

                                Strange indeed. Oh well, the essential is that you have it working now.

                                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
                                1

                                • Login

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