Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Qt5.1 Compiling on Ubuntu - moc

    Installation and Deployment
    1
    2
    1767
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      Serenity last edited by

      Hello,

      I tried to compile Qt5.1 alpha for trying out, how the Android implementation is working.
      After configuring and executing "make", I get followed error:
      @wayne@hellfire ~/qt-everywhere-opensource-src-5.1.0-alpha $ make
      cd qtbase/ && ( test -e Makefile || /home/wayne/qt-everywhere-opensource-src-5.1.0-alpha/qtbase/bin/qmake /home/wayne/qt-everywhere-opensource-src-5.1.0-alpha/qtbase/qtbase.pro -o Makefile ) && make -f Makefile
      make[1]: Betrete Verzeichnis '/home/wayne/qt-everywhere-opensource-src-5.1.0-alpha/qtbase'
      cd src/ && ( test -e Makefile || /home/wayne/qt-everywhere-opensource-src-5.1.0-alpha/qtbase/bin/qmake /home/wayne/qt-everywhere-opensource-src-5.1.0-alpha/qtbase/src/src.pro -o Makefile ) && make -f Makefile
      make[2]: Betrete Verzeichnis '/home/wayne/qt-everywhere-opensource-src-5.1.0-alpha/qtbase/src'
      cd tools/bootstrap/ && ( test -e Makefile || /home/wayne/qt-everywhere-opensource-src-5.1.0-alpha/qtbase/bin/qmake /home/wayne/qt-everywhere-opensource-src-5.1.0-alpha/qtbase/src/tools/bootstrap/bootstrap.pro -o Makefile ) && make -f Makefile
      make[3]: Betrete Verzeichnis '/home/wayne/qt-everywhere-opensource-src-5.1.0-alpha/qtbase/src/tools/bootstrap'
      make[3]: Für das Ziel »first« ist nichts zu tun.
      make[3]: Verlasse Verzeichnis '/home/wayne/qt-everywhere-opensource-src-5.1.0-alpha/qtbase/src/tools/bootstrap'
      cd tools/moc/ && ( test -e Makefile || /home/wayne/qt-everywhere-opensource-src-5.1.0-alpha/qtbase/bin/qmake /home/wayne/qt-everywhere-opensource-src-5.1.0-alpha/qtbase/src/tools/moc/moc.pro -o Makefile ) && make -f Makefile
      make[3]: Betrete Verzeichnis '/home/wayne/qt-everywhere-opensource-src-5.1.0-alpha/qtbase/src/tools/moc'
      make[3]: Für das Ziel »first« ist nichts zu tun.
      make[3]: Verlasse Verzeichnis '/home/wayne/qt-everywhere-opensource-src-5.1.0-alpha/qtbase/src/tools/moc'
      cd tools/rcc/ && ( test -e Makefile || /home/wayne/qt-everywhere-opensource-src-5.1.0-alpha/qtbase/bin/qmake /home/wayne/qt-everywhere-opensource-src-5.1.0-alpha/qtbase/src/tools/rcc/rcc.pro -o Makefile ) && make -f Makefile
      make[3]: Betrete Verzeichnis '/home/wayne/qt-everywhere-opensource-src-5.1.0-alpha/qtbase/src/tools/rcc'
      make[3]: Für das Ziel »first« ist nichts zu tun.
      make[3]: Verlasse Verzeichnis '/home/wayne/qt-everywhere-opensource-src-5.1.0-alpha/qtbase/src/tools/rcc'
      cd corelib/ && ( test -e Makefile || /home/wayne/qt-everywhere-opensource-src-5.1.0-alpha/qtbase/bin/qmake /home/wayne/qt-everywhere-opensource-src-5.1.0-alpha/qtbase/src/corelib/corelib.pro -o Makefile ) && make -f Makefile
      make[3]: Betrete Verzeichnis '/home/wayne/qt-everywhere-opensource-src-5.1.0-alpha/qtbase/src/corelib'
      /home/wayne/qt-everywhere-opensource-src-5.1.0-alpha/qtbase/bin/moc -DQT_NO_XKBCOMMON -DQT_NO_USING_NAMESPACE -DQT_BUILD_CORE_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DELF_INTERPRETER="/lib/ld-linux.so.2" -DPCRE_HAVE_CONFIG_H -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -I../../mkspecs/linux-g++ -I. -I../../include -I../../include/QtCore -I../../include/QtCore/5.1.0 -I../../include/QtCore/5.1.0/QtCore -Iglobal -I../3rdparty/pcre -I../3rdparty/harfbuzz/src -I../3rdparty/md5 -I../3rdparty/md4 -I../3rdparty/sha3 -I.moc/release-shared -IIBRARY_PATH=/usr/lib/gcc/i686-linux-gnu/4.6/:/usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu/:/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/:/lib/i386-linux-gnu/:/lib/../lib/:/usr/lib/i386-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/i686-linux-gnu/4.6/../../../:/lib/:/usr/lib/ -Inde der Suchliste. -IOLLECT_GCC_OPTIONS='-pipe' '-E' '-v' '-shared-libgcc' '-mtune=generic' '-march=i686' -IOMPILER_PATH=/usr/lib/gcc/i686-linux-gnu/4.6/:/usr/lib/gcc/i686-linux-gnu/4.6/:/usr/lib/gcc/i686-linux-gnu/:/usr/lib/gcc/i686-linux-gnu/4.6/:/usr/lib/gcc/i686-linux-gnu/ -I/usr/include -I/usr/include/c++/4.6 -I/usr/include/c++/4.6/backward -I/usr/include/c++/4.6/i686-linux-gnu/. -I/usr/include/i386-linux-gnu -I/usr/lib/gcc/i686-linux-gnu/4.6/include -I/usr/lib/gcc/i686-linux-gnu/4.6/include-fixed -I/usr/local/include animation/qabstractanimation.h -o .moc/release-shared/moc_qabstractanimation.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
      make[3]: *** [.moc/release-shared/moc_qabstractanimation.cpp] Fehler 1
      make[3]: Verlasse Verzeichnis '/home/wayne/qt-everywhere-opensource-src-5.1.0-alpha/qtbase/src/corelib'
      make[2]: *** [sub-corelib-make_first] Fehler 2
      make[2]: Verlasse Verzeichnis '/home/wayne/qt-everywhere-opensource-src-5.1.0-alpha/qtbase/src'
      make[1]: *** [sub-src-make_first] Fehler 2
      make[1]: Verlasse Verzeichnis '/home/wayne/qt-everywhere-opensource-src-5.1.0-alpha/qtbase'
      make: *** [module-qtbase-make_first] Fehler 2
      @
      (Sorry, it's in german, but I think, you can see it. Fehler=error)

      Any idea, what I am doing wrong?
      I used the tar.gz version from there: http://download.qt-project.org/development_releases/qt/5.1/5.1.0-alpha/single/

      Thank you in advance
      best regards
      Martin

      1 Reply Last reply Reply Quote 0
      • S
        Serenity last edited by

        I "solved" it by taking the latest code from git.... and that works pretty fine...
        I only have some problems to configure qt creator for android.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post