moc: Too many input files specified
Verfasst: 4. Juli 2012 11:29
Moin.
Wenn ich im Qt Creator (2.4.0) ein einfaches Unit Test Projekt erstelle und es unverändert kompilieren möchte bekomme ich folgende Fehler:
Edit: wenn ich aus der pro Datei den Eintrag #DEFINES += SRCDIR=\\\"$$PWD/\\\" auskommentiere gehts. Kann es sein das es ein Problem mit Leerzeichen im Pfad gibt?
Wenn ich im Qt Creator (2.4.0) ein einfaches Unit Test Projekt erstelle und es unverändert kompilieren möchte bekomme ich folgende Fehler:
bzw.░11:10:40: Führe Build-Schritte für Projekt QtUnitTestAuto01 aus...
11:10:40: Starte "c:\qtsdk\desktop\qt\4.8.1\mingw\bin\qmake.exe" "E:\Eigene Dokumente\Visual Studio 2008\Projects\QtUnitTestAuto01\QtUnitTestAuto01.pro" -r -spec win32-g++ "CONFIG+=release"
11:10:40: Der Prozess "c:\qtsdk\desktop\qt\4.8.1\mingw\bin\qmake.exe" wurde normal beendet.
11:10:40: Starte "C:\Qt\qtcreator-2.4.0\mingw\bin\mingw32-make.exe"
C:/Qt/qtcreator-2.4.0/mingw/bin/mingw32-make.exe -f Makefile.Release
mingw32-make.exe[1]: Entering directory `E:/Eigene Dokumente/Visual Studio 2008/Projects/QtUnitTestAuto01'
C:\QtSDK\Desktop\Qt\4.8.1\mingw\bin\moc.exe -DUNICODE -DQT_LARGEFILE_SUPPORT -DSRCDIR=\"E:/Eigene Dokumente/Visual Studio 2008/Projects/QtUnitTestAuto01/\" -DQT_DLL -DQT_NO_DEBUG -DQT_TESTLIB_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -I"c:\QtSDK\Desktop\Qt\4.8.1\mingw\include\QtCore" -I"c:\QtSDK\Desktop\Qt\4.8.1\mingw\include\QtTest" -I"c:\QtSDK\Desktop\Qt\4.8.1\mingw\include" -I"c:\QtSDK\Desktop\Qt\4.8.1\mingw\include\ActiveQt" -I"release" -I"c:\QtSDK\Desktop\Qt\4.8.1\mingw\mkspecs\win32-g++" -D__GNUC__ -DWIN32 tst_qtunittestauto01test.cpp -o release\tst_qtunittestauto01test.moc
mingw32-make.exe[1]: Leaving directory `E:/Eigene Dokumente/Visual Studio 2008/Projects/QtUnitTestAuto01'
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
-nn do not display notes
-nw do not display warnings
@<file> read additional options from file
-v display version of moc
mingw32-make.exe[1]: *** [release/tst_qtunittestauto01test.moc] Error 1
mingw32-make.exe: *** [release] Error 2
11:10:41: Der Prozess "C:\Qt\qtcreator-2.4.0\mingw\bin\mingw32-make.exe" wurde mit dem Rückgabewert 2 beendet.
Fehler beim Erstellen des Projekts QtUnitTestAuto01(Ziel: Desktop)
Bei der Ausführung von Build-Schritt 'Make'
Wo liegt da das Problem?11:12:40: Führe Build-Schritte für Projekt QtUnitTestAuto01 aus...
11:12:40: Starte "c:\qtsdk\desktop\qt\4.8.1\msvc2008\bin\qmake.exe" "E:\Eigene Dokumente\Visual Studio 2008\Projects\QtUnitTestAuto01\QtUnitTestAuto01.pro" -r -spec win32-msvc2008 "CONFIG+=release"
11:12:41: Der Prozess "c:\qtsdk\desktop\qt\4.8.1\msvc2008\bin\qmake.exe" wurde normal beendet.
11:12:41: Starte "C:\Qt\qtcreator-2.4.0\bin\jom.exe"
C:\Qt\qtcreator-2.4.0\bin\jom.exe -nologo -j 2 -f Makefile.Release
C:\QtSDK\Desktop\Qt\4.8.1\msvc2008\bin\moc.exe -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DSRCDIR=\"E:/Eigene Dokumente/Visual Studio 2008/Projects/QtUnitTestAuto01/\" -DQT_DLL -DQT_NO_DEBUG -DQT_TESTLIB_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -I"c:\QtSDK\Desktop\Qt\4.8.1\msvc2008\include\QtCore" -I"c:\QtSDK\Desktop\Qt\4.8.1\msvc2008\include\QtTest" -I"c:\QtSDK\Desktop\Qt\4.8.1\msvc2008\include" -I"c:\QtSDK\Desktop\Qt\4.8.1\msvc2008\include\ActiveQt" -I"release" -I"c:\QtSDK\Desktop\Qt\4.8.1\msvc2008\mkspecs\win32-msvc2008" -D_MSC_VER=1500 -DWIN32 tst_qtunittestauto01test.cpp -o release\tst_qtunittestauto01test.moc
jom 1.0.6 - empower your cores
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
-nn do not display notes
-nw do not display warnings
@<file> read additional options from file
-v display version of moc
command failed with exit code 1
command failed with exit code 2
11:12:41: Der Prozess "C:\Qt\qtcreator-2.4.0\bin\jom.exe" wurde mit dem Rückgabewert 2 beendet.
Fehler beim Erstellen des Projekts QtUnitTestAuto01(Ziel: Desktop)
Bei der Ausführung von Build-Schritt 'Make'
Edit: wenn ich aus der pro Datei den Eintrag #DEFINES += SRCDIR=\\\"$$PWD/\\\" auskommentiere gehts. Kann es sein das es ein Problem mit Leerzeichen im Pfad gibt?