Results 1 to 2 of 2

Thread: Did I find a Bug? [Project wont compile anymore]

  1. #1
    Join Date
    Jul 2013
    Posts
    36
    Thanks
    14
    Thanked 8 Times in 8 Posts
    Qt products
    Qt5

    Default Re: Did I find a Bug? [Project wont compile anymore]

    I was working on my project all day long and tried to add the QCustomPlot .cpp and .h files, which didn't work as I wished. I removed them, and since that time I can't compile any more:

    18:00:44: Führe Schritte für Projekt GUI aus...
    18:00:44: Unveränderte Konfiguration, qmake-Schritt wird übersprungen.
    18:00:44: Starte "C:\Qt5.1.0\Tools\QtCreator\bin\jom.exe"
    C:\Qt5.1.0\Tools\QtCreator\bin\jom.exe -f Makefile.Release
    C:\Qt5.1.0\\5.1.0\msvc2012_64\bin\moc.exe -DUNICODE -DWIN32 -DWIN64 -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_TESTLIB_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_OPENGL_ES_2 -DQT_OPENGL_ES_2_ANGLE -DQT_TESTCASE_BUILDDIR=\"C:/Users/rt/Desktop/Bac Arbeit/build-GUI-Desktop_Qt_5_1_0_MSVC2012_64bit-Release\" -DNDEBUG -D_MSC_VER=1700 -D_WIN32 -D_WIN64 -I"..\..\..\..\..\Qt5.1.0\qextserialport-1.2rc\src" -I"..\..\..\..\..\Qt5.1.0\5.1.0\msvc2012_64\include " -I"..\..\..\..\..\Qt5.1.0\5.1.0\msvc2012_64\include \QtWidgets" -I"..\..\..\..\..\Qt5.1.0\5.1.0\msvc2012_64\include \QtTest" -I"..\..\..\..\..\Qt5.1.0\5.1.0\msvc2012_64\include \QtGui" -I"..\..\..\..\..\Qt5.1.0\5.1.0\msvc2012_64\include \QtANGLE" -I"..\..\..\..\..\Qt5.1.0\5.1.0\msvc2012_64\include \QtCore" -I"release" -I"." -I"." -I"..\..\..\..\..\Qt5.1.0\5.1.0\msvc2012_64\mkspecs \win32-msvc2012" ..\..\..\..\..\Qt5.1.0\qextserialport-1.2rc\src\qextserialport.h -o release\moc_qextserialport.cpp
    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 (overwrite default)
    -b<file> prepend #include <file> (preserve default include)
    -nn do not display notes
    -nw do not display warnings
    @<file> read additional options from file
    -v display version of moc
    jom: C:\Users\rt\Desktop\Bac Arbeit\build-GUI-Desktop_Qt_5_1_0_MSVC2012_64bit-Release\Makefile.Release [release\moc_qextserialport.cpp] Error 1
    C:\Qt5.1.0\\5.1.0\msvc2012_64\bin\moc.exe -DUNICODE -DWIN32 -DWIN64 -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_TESTLIB_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_OPENGL_ES_2 -DQT_OPENGL_ES_2_ANGLE -DQT_TESTCASE_BUILDDIR=\"C:/Users/rt/Desktop/Bac Arbeit/build-GUI-Desktop_Qt_5_1_0_MSVC2012_64bit-Release\" -DNDEBUG -D_MSC_VER=1700 -D_WIN32 -D_WIN64 -I"..\..\..\..\..\Qt5.1.0\qextserialport-1.2rc\src" -I"..\..\..\..\..\Qt5.1.0\5.1.0\msvc2012_64\include " -I"..\..\..\..\..\Qt5.1.0\5.1.0\msvc2012_64\include \QtWidgets" -I"..\..\..\..\..\Qt5.1.0\5.1.0\msvc2012_64\include \QtTest" -I"..\..\..\..\..\Qt5.1.0\5.1.0\msvc2012_64\include \QtGui" -I"..\..\..\..\..\Qt5.1.0\5.1.0\msvc2012_64\include \QtANGLE" -I"..\..\..\..\..\Qt5.1.0\5.1.0\msvc2012_64\include \QtCore" -I"release" -I"." -I"." -I"..\..\..\..\..\Qt5.1.0\5.1.0\msvc2012_64\mkspecs \win32-msvc2012" ..\..\..\..\..\Qt5.1.0\qextserialport-1.2rc\src\qextserialenumerator.h -o release\moc_qextserialenumerator.cpp
    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 (overwrite default)
    -b<file> prepend #include <file> (preserve default include)
    -nn do not display notes
    -nw do not display warnings
    @<file> read additional options from file
    -v display version of moc
    I tried to google:
    moc: Too many input files specified
    and
    [release\moc_qextserialport.cpp] Error 1
    with barely success. What did I do wrong? I read in the forums this can happen if I included the QExtSerialPorts wrong, but I didn't change anything 18:08:36: Der
    Prozess "C:\Qt5.1.0\Tools\QtCreator\bin\jom.exe" wurde mit dem Rückgabewert 2 beendet.
    Ok... really weired. It works some time to compile. Why is that?
    Last edited by xtlc; 8th August 2013 at 17:09.

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Did I find a Bug? [Project wont compile anymore]

    Here is the information you have given us... you have a project that did not include QCustomPlot (whatever that is), you added QCustomPlot, removed QCustomPlot, and the project still does not include QCustomPlot. The project no longer compiles with errors related to moc and you think it has something to do with QExtSerialport.

    Have you re-run qmake since you modified your PRO file?

Similar Threads

  1. qtCreator wont compile Hello World Program
    By realJohnDoe in forum Installation and Deployment
    Replies: 3
    Last Post: 29th February 2012, 14:49
  2. Replies: 12
    Last Post: 24th September 2011, 01:36
  3. Replies: 1
    Last Post: 14th August 2011, 13:48
  4. My first Linux QT program wont compile
    By GrahamLabdon in forum Newbie
    Replies: 1
    Last Post: 27th October 2010, 15:49
  5. Qt Opensource 4.5.2 wont compile
    By MarkoSan in forum Installation and Deployment
    Replies: 8
    Last Post: 26th November 2009, 06:56

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.