Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Compiling error qt 5.2.0 os x mavericks
QtWS25 Last Chance

Compiling error qt 5.2.0 os x mavericks

Scheduled Pinned Locked Moved Installation and Deployment
12 Posts 2 Posters 3.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.
  • L Offline
    L Offline
    LORDIF
    wrote on last edited by
    #1

    Getting this error:

    /Users/eugenekolesnikov/Qt5.2.0/5.2.0/clang_64/lib/QtWidgets.framework/Headers/qsizepolicy.h:52: error: variable has incomplete type 'class Q_WIDGETS_EXPORT'
    class Q_WIDGETS_EXPORT QSizePolicy
    ^

    How to solve that problem?

    1 Reply Last reply
    0
    • L Offline
      L Offline
      LORDIF
      wrote on last edited by
      #2

      Solved that problem by changing the path of "include" directory.
      But arises another problem:

      :-1: error: symbol(s) not found for architecture x86_64

      QMAKE_MACOSX_DEPLOYMENT_TARGET=10.9 doesn't help....

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

        Hi and welcome to devnet,

        How did you installed Qt ?

        What does your pro file look like ?

        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
          LORDIF
          wrote on last edited by
          #4

          installed via macports

          .pro file:
          @
          QT += core gui

          greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

          TARGET = TestProj
          TEMPLATE = app

          CONFIG += MAC_CONFIG

          MAC_CONFIG {
          QMAKE_CXXFLAGS = -mmacosx-version-min=10.9
          QMAKE_LFLAGS = -mmacosx-version-min=10.9
          }

          INCLUDEPATH += /Users/eugenekolesnikov/Library/OpencvLib
          /usr/local/include
          LIBS +=
          -L/opt/local/lib
          -lopencv_core
          -lopencv_imgproc
          -lopencv_highgui
          -lopencv_objdetect
          -lm

          SOURCES += main.cpp
          mainwindow.cpp

          HEADERS += mainwindow.h

          FORMS += mainwindow.ui
          @

          [edit: added missing coding tags @ SGaist]

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

            Unless you have macports in a strange place, your error says that it's searching in /Users/eugenekolesnikov/Qt5.2.0/5.2.0/clang_64/lib/

            So it seems you have something mixed-up . Did you install Qt through the installer once ?

            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
              LORDIF
              wrote on last edited by
              #6

              Yes, sorry... my mistake... used macports to install qt4, this one i installed manually or kind of... can't compile from source code, because have this error "clang: error: unsupported option '-static-libgcc'"

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

                How did you "kind of manually" installed 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
                  LORDIF
                  wrote on last edited by
                  #8

                  I've downloaded dmg file and executed it

                  1 Reply Last reply
                  0
                  • L Offline
                    L Offline
                    LORDIF
                    wrote on last edited by
                    #9

                    I think that the problem with opencv lib

                    1 Reply Last reply
                    0
                    • L Offline
                      L Offline
                      LORDIF
                      wrote on last edited by
                      #10

                      Compiling from the console I got more words about the error so now it can be analysed:

                      Undefined symbols for architecture x86_64:
                      "NeuralNet::~NeuralNet()", referenced from:
                      MainWindow::MainWindow(QWidget*) in mainwindow.o
                      MainWindow::~MainWindow() in mainwindow.o
                      MainWindow::~MainWindow() in mainwindow.o
                      non-virtual thunk to MainWindow::~MainWindow() in mainwindow.o
                      MainWindow::~MainWindow() in mainwindow.o
                      non-virtual thunk to MainWindow::~MainWindow() in mainwindow.o
                      ld: symbol(s) not found for architecture x86_64
                      clang: error: linker command failed with exit code 1 (use -v to see invocation)
                      make: *** [TestGuiProj.app/Contents/MacOS/TestGuiProj] Error 1

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

                        Finally got this error and I don't know what does that mean

                        Undefined symbols for architecture x86_64:
                        "NeuralNet::~NeuralNet()", referenced from:
                        MainWindow::MainWindow(QWidget*) in mainwindow.o
                        MainWindow::~MainWindow() in mainwindow.o
                        ld: symbol(s) not found for architecture x86_64

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

                          What is NeuralNet ?

                          The error means that it can't find the implementation of the destructor of NerualNet for 64 bit

                          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