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. new qt application, too many errors on make

new qt application, too many errors on make

Scheduled Pinned Locked Moved Solved General and Desktop
16 Posts 4 Posters 6.1k 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.
  • hskoglundH Offline
    hskoglundH Offline
    hskoglund
    wrote on last edited by
    #3

    Hi, I think you are using too old version of Xcode, you need a version which has clang as the compiler and not gcc. Try upgrade your Xcode to version 5,6,7 or 8. (Also if you using Snow Leopard 10.6 you need Mountain Lion 10.8 or better.)

    1 Reply Last reply
    6
    • L Offline
      L Offline
      Lightshadown
      wrote on last edited by
      #4

      @FamilyHistorian
      In order to fix the issue with netbeans not abble to find the paths, simply go to Options --> C/C++ --> Code Assistance, Select your tool colecction and simply add the paths you need, remeber to make sure its under the language you are using, either c or c++

      @hskoglund
      My system is as follows

      imac 21" mid 2012
      OSX 10.11.3 El Capitan
      Netbeans 8.2 Full Version (includes all laguages)
      Qt 5.7 (also added the functions from 5.6 version)

      im not quite sure on the compiler, might be making a mistake there, but i already tryied both, there any especific method to set it up? or just the plain options method?, im kinda lost on this version.

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

        Your project setup looks messed up. You are using an iOS build of Qt yet you pass it the outdated macx-g++ mkspec.

        You should check your Kits, looks like there's something wrong there.

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

          @SGaist
          ok sorry but i dont get it, you mean the compiler is wrong? im using the compilers included with netbeans (g++ and clang)

          i forgot to mention im using Xcode 7.3.1 because i was unable to install the new version of Xcode, cant make it work the new file fomat they have, compresed or whatever is that one

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

            You can still use 7.3.1 at the moment.

            What I'm writing is:

            1. It looks like you are building an iOS project (correct me if I'm wrong)
            2. The mkspec used is macx-g++

            So there's something wrong with your setup. Go to Build and Run in Qt Creator's preferences. There check your iOS Kits and take a look at the mkspec, it should be macx-ios-clang.

            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
            • L Offline
              L Offline
              Lightshadown
              wrote on last edited by
              #8

              You are correct im making an ios project, but planning on making programs for windows on the future, but thats for other topic.

              im not sure if theres something to do with it, but im using a version of qmake from clang
              /Qt/5.7/clang_64/bin/qmake

              Inside Qt Creator, i went to options --> Build & Run --> kits, and i do have Qt Desktop versions 5.6 and 5.7 installed and both seems to work fine, (there are warnings from other types but i dont used them)
              Also i use only Qt Designer for making the UI, never get inside Qt Creator but thats the only place i see the kits.

              also, i selected clang as default on netbeans and i still got the same, just with clang

              cd '/Users/StudioMac/NetBeansProjects/QtApplication_Test1'
              /usr/bin/make -f Makefile CONF=Debug QMAKE=/Users/StudioMac/Qt/5.7/clang_64/bin/qmake
              "/Applications/Xcode.app/Contents/Developer/usr/bin/make" -f nbproject/Makefile-Debug.mk QMAKE=/Users/StudioMac/Qt/5.7/clang_64/bin/qmake SUBPROJECTS= .build-conf
              /Users/StudioMac/Qt/5.7/clang_64/bin/qmake VPATH=. -spec macx-llvm -o qttmp-Debug.mk nbproject/qt-Debug.pro
              mv -f qttmp-Debug.mk nbproject/qt-Debug.mk
              "/Applications/Xcode.app/Contents/Developer/usr/bin/make" -f nbproject/qt-Debug.mk dist/Debug/CLang-MacOSX/QtApplication_Test1
              /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -pipe -g -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -mmacosx-version-min=10.8 -Wall -W -fPIC -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -Inbproject -I. -I../../Qt/5.7/ios/include/QtWidgets -I../../Qt/5.7/ios/include/ -I../../Qt/5.7/clang_64/lib/QtWidgets.framework/Headers -I../../Qt/5.7/clang_64/lib/QtGui.framework/Headers -I../../Qt/5.7/clang_64/lib/QtCore.framework/Headers -I. -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/AGL.framework/Headers -I. -I../../Qt/5.7/clang_64/mkspecs/macx-llvm -F/Users/StudioMac/Qt/5.7/clang_64/lib -o build/Debug/CLang-MacOSX/Ventas.cpp.o Ventas.cpp.cc
              In file included from Ventas.cpp.cc:14:
              In file included from ./Ventas.h:17:
              In file included from ./ui_Ventas.h:12:
              In file included from ../../Qt/5.7/ios/include/QtCore/QVariant:1:
              In file included from ../../Qt/5.7/ios/include/QtCore/qvariant.h:43:
              In file included from ../../Qt/5.7/ios/include/QtCore/qatomic.h:41:
              ../../Qt/5.7/ios/include/QtCore/qglobal.h:1133:23: warning: rvalue references are a C++11 extension [-Wc++11-extensions]
              void qAsConst(const T &&) Q_DECL_EQ_DELETE;
                                    ^
              In file included from Ventas.cpp.cc:14:
              In file included from ./Ventas.h:17:
              In file included from ./ui_Ventas.h:12:
              In file included from ../../Qt/5.7/ios/include/QtCore/QVariant:1:
              In file included from ../../Qt/5.7/ios/include/QtCore/qvariant.h:43:
              In file included from ../../Qt/5.7/ios/include/QtCore/qatomic.h:41:
              In file included from ../../Qt/5.7/ios/include/QtCore/qglobal.h:1145:
              In file included from ../../Qt/5.7/ios/include/QtCore/qatomic.h:46:
              ../../Qt/5.7/ios/include/QtCore/qbasicatomic.h:61:4: error: "Qt requires C++11 support"
              #  error "Qt requires C++11 support"
                 ^
              ../../Qt/5.7/ios/include/QtCore/qbasicatomic.h:90:13: error: unknown type name 'QAtomicOps'
                  typedef QAtomicOps<T> Ops;
                          ^
              ../../Qt/5.7/ios/include/QtCore/qbasicatomic.h:90:23: error: expected member name or ';' after declaration specifiers
                  typedef QAtomicOps<T> Ops;
                  ~~~~~~~~~~~~~~~~~~^
              ../../Qt/5.7/ios/include/QtCore/qbasicatomic.h:93:23: error: use of undeclared identifier 'QAtomicOpsSupport'
                  Q_STATIC_ASSERT_X(QAtomicOpsSupport<sizeof(T)>::IsSupported, "template parameter is an integral of a size not supported on this platform");
                                    ^
              ../../Qt/5.7/ios/include/QtCore/qbasicatomic.h:93:53: error: no member named 'IsSupported' in the global namespace
                  Q_STATIC_ASSERT_X(QAtomicOpsSupport<sizeof(T)>::IsSupported, "template parameter is an integral of a size not supported on this platform");
                                                                ~~^
              ../../Qt/5.7/ios/include/QtCore/qglobal.h:761:63: note: expanded from macro 'Q_STATIC_ASSERT_X'
              #define Q_STATIC_ASSERT_X(Condition, Message) Q_STATIC_ASSERT(Condition)
                                                                            ^~~~~~~~~
              ../../Qt/5.7/ios/include/QtCore/qglobal.h:756:110: note: expanded from macro 'Q_STATIC_ASSERT'
                  enum {Q_STATIC_ASSERT_PRIVATE_JOIN(q_static_assert_result, __COUNTER__) = sizeof(QStaticAssertFailure<!!(Condition)>)}
                                                                                                                           ^~~~~~~~~
              In file included from Ventas.cpp.cc:14:
              In file included from ./Ventas.h:17:
              In file included from ./ui_Ventas.h:12:
              In file included from ../../Qt/5.7/ios/include/QtCore/QVariant:1:
              In file included from ../../Qt/5.7/ios/include/QtCore/qvariant.h:43:
              In file included from ../../Qt/5.7/ios/include/QtCore/qatomic.h:41:
              In file included from ../../Qt/5.7/ios/include/QtCore/qglobal.h:1145:
              In file included from ../../Qt/5.7/ios/include/QtCore/qatomic.h:46:
              ../../Qt/5.7/ios/include/QtCore/qbasicatomic.h:93:5: error: type name requires a specifier or qualifier
                  Q_STATIC_ASSERT_X(QAtomicOpsSupport<sizeof(T)>::IsSupported, "template parameter is an integral of a size not supported on this platform");
                  ^
              ../../Qt/5.7/ios/include/QtCore/qglobal.h:761:47: note: expanded from macro 'Q_STATIC_ASSERT_X'
              #define Q_STATIC_ASSERT_X(Condition, Message) Q_STATIC_ASSERT(Condition)
                                                            ^
              ../../Qt/5.7/ios/include/QtCore/qglobal.h:756:121: note: expanded from macro 'Q_STATIC_ASSERT'
                  enum {Q_STATIC_ASSERT_PRIVATE_JOIN(q_static_assert_result, __COUNTER__) = sizeof(QStaticAssertFailure<!!(Condition)>)}
                                                                                                                                      ^
              In file included from Ventas.cpp.cc:14:
              In file included from ./Ventas.h:17:
              In file included from ./ui_Ventas.h:12:
              In file included from ../../Qt/5.7/ios/include/QtCore/QVariant:1:
              In file included from ../../Qt/5.7/ios/include/QtCore/qvariant.h:43:
              In file included from ../../Qt/5.7/ios/include/QtCore/qatomic.h:41:
              In file included from ../../Qt/5.7/ios/include/QtCore/qglobal.h:1145:
              In file included from ../../Qt/5.7/ios/include/QtCore/qatomic.h:46:
              ../../Qt/5.7/ios/include/QtCore/qbasicatomic.h:95:14: error: use of undeclared identifier 'Ops'
                  typename Ops::Type _q_value;
                           ^
              ../../Qt/5.7/ios/include/QtCore/qbasicatomic.h:95:19: error: expected a qualified name after 'typename'
                  typename Ops::Type _q_value;
                                ^
              ../../Qt/5.7/ios/include/QtCore/qbasicatomic.h:95:23: error: expected ';' at end of declaration list
                  typename Ops::Type _q_value;
                                    ^
                                    ;
              ../../Qt/5.7/ios/include/QtCore/qbasicatomic.h:99:44: error: use of undeclared identifier 'Ops'
                  T load() const Q_DECL_NOTHROW { return Ops::load(_q_value); }
                                                         ^
              ../../Qt/5.7/ios/include/QtCore/qbasicatomic.h:99:54: error: use of undeclared identifier '_q_value'
                  T load() const Q_DECL_NOTHROW { return Ops::load(_q_value); }
                                                                   ^
              ../../Qt/5.7/ios/include/QtCore/qbasicatomic.h:100:45: error: use of undeclared identifier 'Ops'
                  void store(T newValue) Q_DECL_NOTHROW { Ops::store(_q_value, newValue); }
                                                          ^
              ../../Qt/5.7/ios/include/QtCore/qbasicatomic.h:100:56: error: use of undeclared identifier '_q_value'
                  void store(T newValue) Q_DECL_NOTHROW { Ops::store(_q_value, newValue); }
                                                                     ^
              ../../Qt/5.7/ios/include/QtCore/qbasicatomic.h:102:51: error: use of undeclared identifier 'Ops'
                  T loadAcquire() const Q_DECL_NOTHROW { return Ops::loadAcquire(_q_value); }
                                                                ^
              ../../Qt/5.7/ios/include/QtCore/qbasicatomic.h:102:68: error: use of undeclared identifier '_q_value'
                  T loadAcquire() const Q_DECL_NOTHROW { return Ops::loadAcquire(_q_value); }
                                                                                 ^
              ../../Qt/5.7/ios/include/QtCore/qbasicatomic.h:103:52: error: use of undeclared identifier 'Ops'
                  void storeRelease(T newValue) Q_DECL_NOTHROW { Ops::storeRelease(_q_value, newValue); }
                                                                 ^
              ../../Qt/5.7/ios/include/QtCore/qbasicatomic.h:103:70: error: use of undeclared identifier '_q_value'
                  void storeRelease(T newValue) Q_DECL_NOTHROW { Ops::storeRelease(_q_value, newValue); }
                                                                                   ^
              ../../Qt/5.7/ios/include/QtCore/qbasicatomic.h:107:86: error: use of undeclared identifier 'Ops'
                  static Q_DECL_CONSTEXPR bool isReferenceCountingNative() Q_DECL_NOTHROW { return Ops::isReferenceCountingNative(); }
                                                                                                   ^
              ../../Qt/5.7/ios/include/QtCore/qbasicatomic.h:108:88: error: use of undeclared identifier 'Ops'
                  static Q_DECL_CONSTEXPR bool isReferenceCountingWaitFree() Q_DECL_NOTHROW { return Ops::isReferenceCountingWaitFree(); }
                                                                                                     ^
              fatal error: too many errors emitted, stopping now [-ferror-limit=]
              1 warning and 20 errors generated.
              make[2]: *** [build/Debug/CLang-MacOSX/Ventas.cpp.o] Error 1
              make[1]: *** [.build-conf] Error 2
              make: *** [.build-impl] Error 2
              
              BUILD FAILED (exit value 2, total time: 2s)
              
              
              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #9

                Don't use your clang_64 Qt to setup and build your project for iOS.

                Use the Qt version built for iOS with the macx-ios-clang mkspec.

                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
                • L Offline
                  L Offline
                  Lightshadown
                  wrote on last edited by
                  #10

                  @SGaist
                  i start messing around with the compiler and added this for the qmake command /Qt/5.7/ios/bin/qmake

                  i went to properties of the proyect and added the follow to the Build-->Qt--> Expert--> Qmake spec tab ......macx-ios-clang

                  and got the follow thing

                  cd '/Users/StudioMac/NetBeansProjects/QtApplication_Test1'
                  /usr/bin/make -f Makefile CONF=Debug QMAKE=/Users/StudioMac/Qt/5.7/ios/bin/qmake
                  "/Applications/Xcode.app/Contents/Developer/usr/bin/make" -f nbproject/Makefile-Debug.mk QMAKE=/Users/StudioMac/Qt/5.7/ios/bin/qmake SUBPROJECTS= .build-conf
                  /Users/StudioMac/Qt/5.7/ios/bin/qmake VPATH=. -spec macx-ios-clang -o qttmp-Debug.mk nbproject/qt-Debug.pro
                  mv -f qttmp-Debug.mk nbproject/qt-Debug.mk
                  "/Applications/Xcode.app/Contents/Developer/usr/bin/make" -f nbproject/qt-Debug.mk dist/Debug/CLang-MacOSX/QtApplication_Test1
                  make[2]: *** No rule to make target `dist/Debug/CLang-MacOSX/QtApplication_Test1'.  Stop.
                  make[1]: *** [.build-conf] Error 2
                  make: *** [.build-impl] Error 2
                  
                  BUILD FAILED (exit value 2, total time: 5s)
                  

                  I still got some errors but it seems to work, any other idea? im not sure if thats what you told me at first, but i do find the mac-ios-clang folder, but i cant find any make or clang++ file that i can use.

                  1 Reply Last reply
                  0
                  • L Offline
                    L Offline
                    Lightshadown
                    wrote on last edited by
                    #11

                    i did check the Kits on Qt Creator's preference and cant find it, i do find it on Qt version and yes im using macx-ios-clang, i got this,

                    Name:
                    Qt 5.7.0 for iOS
                    ABI:
                    arm-macos-generic-mach_o-32bit
                    
                    arm-macos-generic-mach_o-64bit
                    
                    x86-macos-generic-mach_o-32bit
                    
                    x86-macos-generic-mach_o-64bit
                    Source:
                    /Users/StudioMac/Qt/5.7/ios
                    mkspec: 
                    macx-ios-clang
                    qmake:
                    /Users/StudioMac/Qt/5.7/ios/bin/qmake
                    Default:
                    debug
                    Version:
                    5.7.0
                    QMAKE_SPEC
                    macx-clang
                    QMAKE_VERSION
                    3.0
                    QMAKE_XSPEC
                    macx-ios-clang
                    QT_HOST_BINS
                    /Users/StudioMac/Qt/5.7/ios/bin
                    QT_HOST_DATA
                    /Users/StudioMac/Qt/5.7/ios
                    QT_HOST_LIBS
                    /Users/StudioMac/Qt/5.7/ios/lib
                    QT_HOST_PREFIX
                    /Users/StudioMac/Qt/5.7/ios
                    QT_INSTALL_ARCHDATA
                    /Users/StudioMac/Qt/5.7/ios
                    QT_INSTALL_BINS
                    /Users/StudioMac/Qt/5.7/ios/bin
                    QT_INSTALL_CONFIGURATION
                    /Users/StudioMac/Qt/5.7/ios
                    QT_INSTALL_DATA
                    /Users/StudioMac/Qt/5.7/ios
                    QT_INSTALL_DEMOS
                    /Users/StudioMac/Qt/Examples/Qt-5.7
                    QT_INSTALL_DOCS
                    /Users/StudioMac/Qt/Docs/Qt-5.7
                    QT_INSTALL_EXAMPLES
                    /Users/StudioMac/Qt/Examples/Qt-5.7
                    QT_INSTALL_HEADERS
                    /Users/StudioMac/Qt/5.7/ios/include
                    QT_INSTALL_IMPORTS
                    /Users/StudioMac/Qt/5.7/ios/imports
                    QT_INSTALL_LIBEXECS
                    /Users/StudioMac/Qt/5.7/ios/libexec
                    QT_INSTALL_LIBS
                    /Users/StudioMac/Qt/5.7/ios/lib
                    QT_INSTALL_PLUGINS
                    /Users/StudioMac/Qt/5.7/ios/plugins
                    QT_INSTALL_PREFIX
                    /Users/StudioMac/Qt/5.7/ios
                    QT_INSTALL_QML
                    /Users/StudioMac/Qt/5.7/ios/qml
                    QT_INSTALL_TESTS
                    /Users/StudioMac/Qt/5.7/ios/tests
                    QT_INSTALL_TRANSLATIONS
                    /Users/StudioMac/Qt/5.7/ios/translations
                    QT_SYSROOT
                    
                    QT_VERSION
                    5.7.0
                    

                    im looking for a Clang compiler or something similar on the IOS folder but cant find anything, I do find Qt 5.7 for IOS on the Qt's Versions tab (Shown before), but it saids "not all posible targets enviroments supported due to missing compilers"
                    So, im kinda lost on this one

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

                      How did you install Qt ?

                      Note that I don't use Netbeans for development so I don't know all the related quirks that might happen with it.

                      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
                      • L Offline
                        L Offline
                        Lightshadown
                        wrote on last edited by
                        #13

                        got the files from the qt website i got this file for mac qt-unified-mac-x64-2.0.3-2-online.dmg and also installed the netbeans IDE, they have been working perfectly the issue where at the momment of compiling, i dont know if that answer your quesiton.

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

                          Yes it does. However, like I already wrote I never used Netbeans for development especially cross-compilation. So I can't go further.

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

                            Ok i found the problem, this wont solve the issue, but its better to document this kind of issues and avoid someone else the headache.

                            Netbeans 8.2 + Qt 5.7 on Mac OSX creates a bug and it only affects MAC users, althoug is documented, theres no know fix for this version, the only viable way is to downgrade to Netbeans 8.1 and work your way from there, also you have to specify the mkspec to your desire target OS (in my case im using macx-clang) on your proyect properties, for the momment it worked for me, and thanks for all the info it actually help me out to find a solution. thanks

                            heres the Bug Report Netbeans and Qt on Mac

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

                              Glad you found out and thanks for sharing !

                              Since you have it working now, please mark the thread as solved using the "Topic Tools" button so that other forum users may know a solution has been found :)

                              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

                              • Login

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