Results 1 to 3 of 3

Thread: "This file was generated using the moc from 5.1.0 ... The moc has changed too much

  1. #1
    Join Date
    Apr 2011
    Posts
    231
    Thanks
    141
    Thanked 6 Times in 5 Posts

    Default "This file was generated using the moc from 5.1.0 ... The moc has changed too much

    Yes, the project was compiled with Qt 4.8, and now I am using Qt 5.1.0.

    Now, even after doing:
    make clean,
    make distclean,
    qmake,
    make,


    the output isn't different:

    Qt Code:
    1. :~/qt-gstreamer-RELEASE-0.10.2/examples/qmlplayer$ make clean
    2. rm -f moc_player.cpp
    3. rm -f qrc_qmlplayer.cpp
    4. rm -f main.o player.o qrc_qmlplayer.o
    5. rm -f *~ core *.core
    6. :~/qt-gstreamer-RELEASE-0.10.2/examples/qmlplayer$ make distclean
    7. rm -f moc_player.cpp
    8. rm -f qrc_qmlplayer.cpp
    9. rm -f main.o player.o qrc_qmlplayer.o
    10. rm -f *~ core *.core
    11. rm -f qmlplayer
    12. rm -f Makefile
    13. :~/qt-gstreamer-RELEASE-0.10.2/examples/qmlplayer$ qmake
    14. :~/qt-gstreamer-RELEASE-0.10.2/examples/qmlplayer$ make
    15. compiling main.cpp
    16. moc player.h
    17. compiling player.cpp
    18. In file included from player.cpp:107:0:
    19. moc_player.cpp:15:2: error: #error "This file was generated using the moc from 5.1.0. It"
    20. moc_player.cpp:16:2: error: #error "cannot be used with the include files from this version of Qt."
    21. moc_player.cpp:17:2: error: #error "(The moc has changed too much.)"
    To copy to clipboard, switch view to plain text mode 

  2. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: "This file was generated using the moc from 5.1.0 ... The moc has changed too muc

    What is your environment for variables PATH and QTDIR ?

    Also check if any shadow build was done or not,,

  3. #3
    Join Date
    Apr 2011
    Posts
    231
    Thanks
    141
    Thanked 6 Times in 5 Posts

    Default Re: "This file was generated using the moc from 5.1.0 ... The moc has changed too muc

    Quote Originally Posted by aamer4yu View Post
    What is your environment for variables PATH and QTDIR ?
    Qt Code:
    1. :~/qt-gstreamer-RELEASE-0.10.2/examples/qmlplayer$ $PATH
    2. bash: /opt/Qt5.1.0/5.1.0/gcc_64/bin/:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games: No such file or directory
    3.  
    4. :~/qt-gstreamer-RELEASE-0.10.2/examples/qmlplayer$ $QTDIR
    5. bash: /opt/Qt5.1.0/5.1.0/: Is a directory
    6. ocu@cbrn:~/qt-gstreamer-RELEASE-0.10.2/examples/qmlplayer$
    To copy to clipboard, switch view to plain text mode 

    Also check if any shadow build was done or not,,
    See the screenshot:Screenshot from 2014-01-15 18:08:43.jpg

Similar Threads

  1. Replies: 1
    Last Post: 12th October 2010, 15:43
  2. Replies: 4
    Last Post: 18th April 2010, 01:37
  3. Replies: 3
    Last Post: 15th February 2010, 18:27
  4. Replies: 3
    Last Post: 28th March 2009, 16:37
  5. Replies: 3
    Last Post: 8th July 2008, 20:37

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.