Problem coming in building the project in Qt 4.8?
-
wrote on 3 Mar 2012, 04:41 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".
-
wrote on 3 Mar 2012, 09:08 last edited by
You need to make sure that the complete source is rebuilt.
-
wrote on 3 Mar 2012, 09:56 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.
-
wrote on 3 Mar 2012, 10:06 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? -
wrote on 3 Mar 2012, 10:08 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
-
wrote on 3 Mar 2012, 20:45 last edited by
Try run qmake from Qt 4.8 before you rebuild project.
2/6