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. Problem coming in building the project in Qt 4.8?
Forum Updated to NodeBB v4.3 + New Features

Problem coming in building the project in Qt 4.8?

Scheduled Pinned Locked Moved Installation and Deployment
6 Posts 3 Posters 3.1k 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.
  • P Offline
    P Offline
    pratik041
    wrote on last edited by
    #1

    I have tried to build the project made in Qt4.7 in Qt4.8 but i am getting the error "#error the file was generated using the moc 4.7.4".

    Pratik Agrawal

    1 Reply Last reply
    0
    • K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      You need to make sure that the complete source is rebuilt.

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      0
      • P Offline
        P Offline
        pratik041
        wrote on last edited by
        #3

        [quote author="koahnig" date="1330765723"]You need to make sure that the complete source is rebuilt. [/quote]

        but i have cleaned the project and rebuild it so again the error was coming.

        Pratik Agrawal

        1 Reply Last reply
        0
        • K Offline
          K Offline
          koahnig
          wrote on last edited by
          #4

          Either your Qt4.8 build is not correct or you are recomiling moc_*.cpp files which are not rebuilt.
          In your Qt 4.8 installation there should be a moc.exe (windows). You can start it from the command prompt with "moc -help" and "moc -v". The second command tells you the version.
          What IDE and compiler are you using?

          Vote the answer(s) that helped you to solve your issue(s)

          1 Reply Last reply
          0
          • P Offline
            P Offline
            pratik041
            wrote on last edited by
            #5

            [quote author="koahnig" date="1330769161"]Either your Qt4.8 build is not correct or you are recomiling moc_*.cpp files which are not rebuilt.
            In your Qt 4.8 installation there should be a moc.exe (windows). You can start it from the command prompt with "moc -help" and "moc -v". The second command tells you the version.
            What IDE and compiler are you using?
            [/quote]

            ok i will check it

            Pratik Agrawal

            1 Reply Last reply
            0
            • H Offline
              H Offline
              Hostel
              wrote on last edited by
              #6

              Try run qmake from Qt 4.8 before you rebuild project.

              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