Results 1 to 4 of 4

Thread: Error about MOC

  1. #1
    Join Date
    Mar 2009
    Location
    Gansu,China
    Posts
    188
    Qt products
    Qt4
    Platforms
    Windows

    Default Error about MOC

    I download a .sln from internet,and I compile it,the flowlling error occur,
    Moc-ing qfilesystemcomm
    moc: Too many input files specified
    Usage: moc [options] <header-file>
    -o<file> write output to file rather than stdout
    -I<dir> add dir to the include path for header files
    -E preprocess only; do not generate meta object code
    -D<macro>[=<def>] define macro, with optional definition
    -U<macro> undefine macro
    -i do not generate an #include statement
    -p<path> path prefix for included file
    -f[<file>] force #include, optional file name
    -nw do not display warnings
    -v display version of moc
    Project : error PRJ0019: A tool returned an error code from "Moc-ing qfilesystemcomm"
    Thk u in advance.
    T

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Error about MOC

    But what do you want from us? It seems the sln file is broken.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Mar 2009
    Location
    Gansu,China
    Posts
    188
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Error about MOC

    I think that my vs2005 +QT is not configured correctly,but I do not know what is wrong with them?

  4. #4
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Error about MOC

    Right click "qfilesystemcomm" in solution browser - custom build step and ensure the run application ('moc') has correct parameters. Or, if there's a .pro file, just re-convert that into a new solution as they do get corrupt.

Similar Threads

  1. Invoking MOC w/MSVS + Qt Visual Integration
    By WinchellChung in forum Newbie
    Replies: 4
    Last Post: 10th August 2010, 22:56
  2. Replies: 12
    Last Post: 7th July 2009, 17:32
  3. Compilation error with MSVC: Wrong MOC version
    By vuakko in forum Qt Programming
    Replies: 3
    Last Post: 26th June 2009, 09:59
  4. How to avoid creation of MOC files on each compilation
    By nileshsince1980 in forum Qt Programming
    Replies: 4
    Last Post: 29th May 2009, 08:00
  5. moc with same file names?
    By cjhuitt in forum Qt Programming
    Replies: 9
    Last Post: 27th April 2007, 20:36

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.