Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Problem coming in building the project in Qt 4.8?

    Installation and Deployment
    3
    6
    2837
    Loading More Posts
    • 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
      pratik041 last edited by

      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 Reply Quote 0
      • K
        koahnig last edited by

        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 Reply Quote 0
        • P
          pratik041 last edited by

          [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 Reply Quote 0
          • K
            koahnig last edited by

            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 Reply Quote 0
            • P
              pratik041 last edited by

              [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 Reply Quote 0
              • H
                Hostel last edited by

                Try run qmake from Qt 4.8 before you rebuild project.

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post