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. Switching from Qmake to Cmake

Switching from Qmake to Cmake

Scheduled Pinned Locked Moved Solved General and Desktop
7 Posts 3 Posters 1.7k 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.
  • M Offline
    M Offline
    Matombo
    wrote on last edited by
    #1

    i try to switch from qmake to cmake
    i followed the tutorial on this side but when i want to compile i get this error:
    /usr/include/qt/QtCore/qobject.h:491:24: Fehler: missing binary operator before token "("
    #if QT_DEPRECATED_SINCE(5, 0)

    my cmake file:
    http://pastebin.com/qRVpXpAW

    what am i missing?

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

      Hi and welcome to devnet,

      What version of Qt are you using ?

      Does it also happen with a simple Qt Hello World application ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      M 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi and welcome to devnet,

        What version of Qt are you using ?

        Does it also happen with a simple Qt Hello World application ?

        M Offline
        M Offline
        Matombo
        wrote on last edited by
        #3

        @SGaist Qt 5
        Well just tested it with a hello world programm and that works just fine

        1 Reply Last reply
        0
        • M Offline
          M Offline
          mchinand
          wrote on last edited by
          #4

          Did you see this forum post? Perhaps you have a similar header name collision in your project.

          M 1 Reply Last reply
          0
          • M mchinand

            Did you see this forum post? Perhaps you have a similar header name collision in your project.

            M Offline
            M Offline
            Matombo
            wrote on last edited by Matombo
            #5

            @mchinand nope just tested it out and refactored every last name of my .h files, still the same error
            edit: make output, maybe it helps: http://pastebin.com/cKULZyXp

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

              Not the fastest technique but one thing you can do is to remove all files from your build and add each again one by one to see exactly which one triggers the error.

              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
              • M Offline
                M Offline
                Matombo
                wrote on last edited by Matombo
                #7

                found the error
                one of the other library I'm using had a cmake flag that put qt4 headers in the include path
                (include_directories(${libgeodecomp_INCLUDE_DIRS}) to be exact)

                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