Results 1 to 2 of 2

Thread: moc: Too many input files specified - unable to clear error.

  1. #1
    Join Date
    Oct 2007
    Location
    Warminster, England
    Posts
    31
    Thanks
    17
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Question moc: Too many input files specified - unable to clear error.

    Hi,
    I can't shift this error when I try to build my application. (Win XP, SP2, Creator 2.0.1 Qt 4.7.2).
    I have tried recreating the .pro file, and deleting the makefiles. The code compiles and builds under Linux.

    Running build steps for project CF2new...
    Starting: "D:/Carlton/Qt/2010.05/mingw/bin/mingw32-make.exe" clean -w
    mingw32-make: Entering directory `D:/Carlton/bin'

    D:/Carlton/Qt/2010.05/mingw/bin/mingw32-make -f Makefile.Release clean

    mingw32-make[1]: Entering directory `D:/Carlton/bin'

    del build\moc_dialogimpl.cpp build\moc_dialogcf2_t.cpp build\moc_dialogcf2_a.cpp build\moc_dialog_cf_a.cpp

    del build\ui_dialogCF2.h build\ui_dialogCF2_A.h build\ui_dialogCF2_T.h

    del build\main.o build\account.o build\bank.o build\creditcard.o build\currency.o build\cashflow2.o build\dialogimpl.o build\dialogTimpl.o build\dialogAimpl.o build\dialogFimpl.o build\dialogcf2_a.o build\dialogcf2_t.o build\mortgage.o build\tdata.o build\moc_dialogimpl.o build\moc_dialogcf2_t.o build\moc_dialogcf2_a.o build\moc_dialog_cf_a.o

    Could Not Find D:\Carlton\bin\build\moc_dialogimpl.cpp

    Could Not Find D:\Carlton\bin\build\ui_dialogCF2.h

    del release\libcf2.a

    mingw32-make[1]: Leaving directory `D:/Carlton/bin'

    D:/Carlton/Qt/2010.05/mingw/bin/mingw32-make -f Makefile.Debug clean

    mingw32-make[1]: Entering directory `D:/Carlton/bin'

    del build\moc_dialogimpl.cpp build\moc_dialogcf2_t.cpp build\moc_dialogcf2_a.cpp build\moc_dialog_cf_a.cpp

    Could Not Find D:\Carlton\bin\build\main.o

    Could Not Find D:\Carlton\bin\release\libcf2.a

    del build\ui_dialogCF2.h build\ui_dialogCF2_A.h build\ui_dialogCF2_T.h

    del build\main.o build\account.o build\bank.o build\creditcard.o build\currency.o build\cashflow2.o build\dialogimpl.o build\dialogTimpl.o build\dialogAimpl.o build\dialogFimpl.o build\dialogcf2_a.o build\dialogcf2_t.o build\mortgage.o build\tdata.o build\moc_dialogimpl.o build\moc_dialogcf2_t.o build\moc_dialogcf2_a.o build\moc_dialog_cf_a.o

    del debug\libcf2.a

    mingw32-make[1]: Leaving directory `D:/Carlton/bin'

    del libcf2.a

    Could Not Find D:\Carlton\bin\build\moc_dialogimpl.cpp

    Could Not Find D:\Carlton\bin\build\ui_dialogCF2.h

    Could Not Find D:\Carlton\bin\build\main.o

    Could Not Find D:\Carlton\bin\debug\libcf2.a

    mingw32-make: Leaving directory `D:/Carlton/bin'

    Could Not Find D:\Carlton\bin\libcf2.a

    The process "D:/Carlton/Qt/2010.05/mingw/bin/mingw32-make.exe" exited normally.
    Configuration unchanged, skipping qmake step.
    Starting: "D:/Carlton/Qt/2010.05/mingw/bin/mingw32-make.exe" -w
    mingw32-make: Entering directory `D:/Carlton/bin'

    D:/Carlton/Qt/2010.05/mingw/bin/mingw32-make -f Makefile.Release

    mingw32-make[1]: Entering directory `D:/Carlton/bin'

    d:\Carlton\Qt\2010.05\qt\bin\uic.exe "..\Software Development\CashFlow2\ui\dialogCF2.ui" -o build\ui_dialogCF2.h

    d:\Carlton\Qt\2010.05\qt\bin\uic.exe "..\Software Development\CashFlow2\ui\dialogCF2_A.ui" -o build\ui_dialogCF2_A.h

    d:\Carlton\Qt\2010.05\qt\bin\uic.exe "..\Software Development\CashFlow2\ui\dialogCF2_T.ui" -o build\ui_dialogCF2_T.h

    Warning: name layoutWidget is already used

    Warning: name layoutWidget is already used

    Warning: name layoutWidget is already used

    g++ -c -O2 -Wall -frtti -fexceptions -mthreads -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I"..\Qt\2010.05\qt\include\QtCore" -I"..\Qt\2010.05\qt\include\QtGui" -I"..\Qt\2010.05\qt\include" -I"..\QWT_5_3.0\SRC" -I"..\Qt\2010.05\qt\include\ActiveQt" -I"build" -I"build" -I"." -I"..\Qt\2010.05\qt\mkspecs\win32-g++" -o build\main.o "..\Software Development\CashFlow2\src\main.cpp"

    .. compile "..\Software Development\CashFlow2\src\account.cpp"

    .. compile .. "..\Software Development\CashFlow2\src\bank.cpp"

    .. compile .. "..\Software Development\CashFlow2\src\creditcard.cpp"

    .. compile .. "..\Software Development\CashFlow2\src\currency.cpp"

    .. compile .. "..\Software Development\CashFlow2\src\cashflow2.cpp"

    .. compile .. "..\Software Development\CashFlow2\src\dialogimpl.cpp"

    .. compile .. "..\Software Development\CashFlow2\src\dialogTimpl.cpp"

    .. compile .. "..\Software Development\CashFlow2\src\dialogAimpl.cpp"

    .. compile .. "..\Software Development\CashFlow2\src\dialogFimpl.cpp"

    ..\Software Development\CashFlow2\src\dialogFimpl.cpp: In member function 'void DialogImpl::generateForcastPlot(CashFlow::Account* )':

    ..\Software Development\CashFlow2\src\dialogFimpl.cpp:279: warning: operation on 'x' may be undefined

    .. some steps removed

    g++ -c -O2 -Wall -frtti -fexceptions -mthreads -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I"..\Qt\2010.05\qt\include\QtCore" -I"..\Qt\2010.05\qt\include\QtGui" -I"..\Qt\2010.05\qt\include" -I"..\QWT_5_3.0\SRC" -I"..\Qt\2010.05\qt\include\ActiveQt" -I"build" -I"build" -I"." -I"..\Qt\2010.05\qt\mkspecs\win32-g++" -o build\tdata.o "..\Software Development\CashFlow2\src\tdata.cpp"

    D:\Carlton\Qt\2010.05\qt\bin\moc.exe -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I"..\Qt\2010.05\qt\include\QtCore" -I"..\Qt\2010.05\qt\include\QtGui" -I"..\Qt\2010.05\qt\include" -I"..\QWT_5_3.0\SRC" -I"..\Qt\2010.05\qt\include\ActiveQt" -I"build" -I"build" -I"." -I"..\Qt\2010.05\qt\mkspecs\win32-g++" -D__GNUC__ -DWIN32 ..\Software Development\CashFlow2\src\dialogimpl.h -o build\moc_dialogimpl.cpp

    mingw32-make[1]: Leaving directory `D:/Carlton/bin'

    mingw32-make: Leaving directory `D:/Carlton/bin'

    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

    @<file> read additional options from file

    -v display version of moc

    mingw32-make[1]: *** [build/moc_dialogimpl.cpp] Error 1

    mingw32-make: *** [release] Error 2

    The process "D:/Carlton/Qt/2010.05/mingw/bin/mingw32-make.exe" exited with code %2.
    Error while building project CF2new (target: Desktop)
    When executing build step 'Make'

  2. #2
    Join Date
    Mar 2011
    Posts
    1
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: moc: Too many input files specified - unable to clear error.

    Hello,

    This is due to a bug somewhere, the string passed to the moc.exe does not contain the double-quote, so if you have space in your path name, it is interpreted as several different files.

    Try to put your project in a directory with a path containing no spaces and it should work.

    D:\Carlton\Qt\2010.05\qt\bin\moc.exe -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I"..\Qt\2010.05\qt\include\QtCore" -I"..\Qt\2010.05\qt\include\QtGui" -I"..\Qt\2010.05\qt\include" -I"..\QWT_5_3.0\SRC" -I"..\Qt\2010.05\qt\include\ActiveQt" -I"build" -I"build" -I"." -I"..\Qt\2010.05\qt\mkspecs\win32-g++" -D__GNUC__ -DWIN32 ..\Software Development\CashFlow2\src\dialogimpl.h -o build\moc_dialogimpl.cpp

Similar Threads

  1. Replies: 8
    Last Post: 4th March 2011, 15:54
  2. QT designer error "unable to lunche .../..../uic-qt4
    By chochatown in forum Qt Programming
    Replies: 1
    Last Post: 22nd May 2009, 05:44
  3. Unable to build Qt 4.4.0 debug libs with MinGW (pch error)
    By AlGaN in forum Installation and Deployment
    Replies: 2
    Last Post: 7th June 2008, 14:24
  4. Qt 4.1.4 on VS2005 error- cannot open input file 'qtmain.lib'
    By Ashish in forum Installation and Deployment
    Replies: 10
    Last Post: 11th October 2006, 16:05
  5. Unable to play gif files
    By yellowmat in forum Newbie
    Replies: 2
    Last Post: 24th March 2006, 19:24

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.