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

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

Scheduled Pinned Locked Moved Unsolved General and Desktop
18 Posts 4 Posters 3.8k 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.
  • 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