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. QT5 beta1 and QtCreator 2.6.0
Qt 6.11 is out! See what's new in the release blog

QT5 beta1 and QtCreator 2.6.0

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

    Hi,

    I am trying to build an application using QT 5 beta1 and QtCreator 2.6.0 on MacOS Mountain Lion. I added the widets and printsupport QT config options, but the linker seems to be unable to resolve all QGraphicsItem related code. I get an "Undefined symbols for architecture x86_64" error for all QGraphicsItem classes I use, for example "QGraphicsLineItem::QGraphicsLineItem(QGraphicsItem*, QGraphicsScene*)".

    Is the Graphics View code being moved to a separate module maybe? But all header files are still in the QtGui folders.

    I also tried to create a simple GUI with MainWindow applciation from scratch, and although QT5 seems to be supported already (greaterThan(QT_MAJOR_VERSION, 4): QT += widgets is added to the .pro file automatically), this project also produces an unresolved symbol link error, all for QWidget functions ending with "Changed". For example: "QWidget::fontChange(QFont const&)".

    Am I doing something wrong?

    Build information:

    • Mac OS Mountain Lion
    • Compiler: Clang (x86 64bit)
    • Qt version: Qt 5.0.0 (gcc_64)

    Edit I also tried using the GCC 64bit compiler, with the same results

    Greetings,
    JeDi

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      You can try changing the linker from ld to g++. New Xcode versions have huge amount of problems with Qt ATM. Things will probably improve on the way. A good idea would be to check newest sources from gitorious, too.

      (Z(:^

      1 Reply Last reply
      0
      • J Offline
        J Offline
        JeroenDierckx
        wrote on last edited by
        #3

        I tried this on windows: I installed Visual C++ 2010, QT 5.0 beta1 and QtCreator 2.6.0. The project builds successfully, although I had to remove QtGui/ from a QGraphicsItem include. Apparently, on windows, the QGraphics* headers are in the QtWidgets headers folder?

        Edit I compiled QT5 on MacOS from git, and now it also compiles on Mac (although there are rendering issues). So essentially, the problem is fixed for me but I still hope this information was useful.

        1 Reply Last reply
        0
        • JKSHJ Offline
          JKSHJ Offline
          JKSH
          Moderators
          wrote on last edited by
          #4

          Qt 5 Beta 2 just came out. Give it a try; maybe the problem is already fixed

          Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

          1 Reply Last reply
          0
          • J Offline
            J Offline
            JeroenDierckx
            wrote on last edited by
            #5

            I can confirm that beta2 works out of the box, for both Windows XP and MacOS Mountain Lion.

            As a side note, the rendering issues I was having were due to to QPen that isn't cosmetic by default anymore. I use a scene with data in meters as units, so there is a lot of zooming involved. I think it would help if this was stated in the porting guide.

            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