Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. [.rcc\release\qrc_mimetypes.cpp] Error 2
Forum Updated to NodeBB v4.3 + New Features

[.rcc\release\qrc_mimetypes.cpp] Error 2

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
10 Posts 2 Posters 1.0k Views 2 Watching
  • 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.
  • U Offline
    U Offline
    UebelAndre
    wrote on last edited by
    #1

    Trying to compile qt5 with the following configuration

    configure.bat -opensource -confirm-license -release -no-pch -prefix C:/Users/me/Code/External/Windows/MT -feature-vulkan -silent -platform win32-msvc -c++std c++1z -L C:/Users/me/Code/External/Windows/MT/lib -I C:/Users/me/Code/External/Windows/MT/include -no-compile-examples -nomake tests -nomake examples -make tools -opengl desktop -no-sql-db2 -no-sql-ibase -no-sql-mysql -no-sql-oci -no-sql-odbc -no-sql-psql -no-sql-sqlite -no-sql-sqlite2 -no-sql-tds -webengine-pepper-plugins -webengine-proprietary-codecs -no-openssl -skip qt3d -skip qtactiveqt -skip qtandroidextras -skip qtcanvas3d -skip qtcharts -skip qtconnectivity -skip qtdatavis3d -skip qtdoc -skip qtdocgallery -skip qtfeedback -skip qtgamepad -skip qtgraphicaleffects -skip qtimageformats -skip qtlocation -skip qtlottie -skip qtmacextras -skip qtmultimedia -skip qtnetworkauth -skip qtpim -skip qtpurchasing -skip qtqa -skip qtquick3d -skip qtquickcontrols -skip qtquicktimeline -skip qtremoteobjects -skip qtscript -skip qtscxml -skip qtsensors -skip qtserialbus -skip qtserialport -skip qtspeech -skip qtsvg -skip qtsystems -skip qttools -skip qttranslations -skip qtwayland -skip qtwebglplugin -skip qtwebsockets -skip qtwebview -skip qtwinextras -skip qtx11extras -skip qtxmlpatterns -shared
    
    

    The thing I'm primarily trying to compile is QtWebEngine

    I get the following error

     rcc Y:\Build\qt5-5.14.1\src\qtbase\src\corelib\mimetypes\mimetypes.qrc
              rc /NOLOGO -DUNICODE -D_UNICODE -DWIN32 -D_ENABLE_EXTENDED_ALIGNED_STORAGE -DWIN64 -DQT_NO_LINKED_LIST -DQT_NO_JAVA_STYLE_ITERATORS -DNDEBUG -DQT_NO_USING_NAMESPACE -DQT_NO_FOREACH -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT
      _BUILD_CORE_LIB -DQT_BUILDING_QT -D_CRT_SECURE_NO_WARNINGS -D_USE_MATH_DEFINES -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x040800 -DQT_DEPRECATED_WARNINGS_
      SINCE=0x060000 -DQT_NO_DEBUG -DPCRE2_CODE_UNIT_WIDTH=16 -DPCRE2_STATIC -D_WINDLL -fo .obj\release\Qt5Core_resource.res Qt5Core_resource.rc
    C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(231,5): error MSB6006: "cmd.exe" exited with code 1. [Y:\Build\qt5.vcxproj]
    

    I'm using JOM to compile, this is the stderr from it

    jom 1.1.3 - empower your cores
    
    cl : Command line warning D9025 : overriding '/Fo./' with '/Foqlibraryinfo_final.obj'
    jom: Y:\Build\qt5-5.14.1\webengine\qtbase\src\corelib\Makefile.Release [.rcc\release\qrc_mimetypes.cpp] Error 2
    jom: Y:\Build\qt5-5.14.1\webengine\qtbase\src\corelib\Makefile [release] Error 2
    jom: Y:\Build\qt5-5.14.1\webengine\qtbase\src\Makefile [sub-corelib-make_first] Error 2
    jom: Y:\Build\qt5-5.14.1\webengine\qtbase\Makefile [sub-src-make_first] Error 2
    jom: Y:\Build\qt5-5.14.1\webengine\Makefile [module-qtbase-make_first] Error 2
    
    

    What am I doing wrong? Please help!

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      From what I can see, you might be skipping to many thing to build the qtwebengine module.

      If you only want to build qtwebengine with more stuff, you don't need to rebuild the whole of Qt.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      U 1 Reply Last reply
      0
      • U Offline
        U Offline
        UebelAndre
        wrote on last edited by
        #3
        This post is deleted!
        1 Reply Last reply
        0
        • SGaistS SGaist

          Hi,

          From what I can see, you might be skipping to many thing to build the qtwebengine module.

          If you only want to build qtwebengine with more stuff, you don't need to rebuild the whole of Qt.

          U Offline
          U Offline
          UebelAndre
          wrote on last edited by UebelAndre
          #4

          @SGaist
          But the configuration above works on MacOS if I swap -shared with -framework -securetransport the error seems completely ambiguous as well. I’m also skipping all the modules except qtbase, qtdeclarative, qtwebchannel, and qtwebengine so I don’t have to build things unnecessarily.

          What am I doing wrong on Windows 10?

          U 1 Reply Last reply
          0
          • U UebelAndre

            @SGaist
            But the configuration above works on MacOS if I swap -shared with -framework -securetransport the error seems completely ambiguous as well. I’m also skipping all the modules except qtbase, qtdeclarative, qtwebchannel, and qtwebengine so I don’t have to build things unnecessarily.

            What am I doing wrong on Windows 10?

            U Offline
            U Offline
            UebelAndre
            wrote on last edited by
            #5

            @UebelAndre said in [.rcc\release\qrc_mimetypes.cpp] Error 2:

            @SGaist
            But the configuration above works on MacOS if I swap -shared with -framework -securetransport the error seems completely ambiguous as well. I’m also skipping all the modules except qtbase, qtdeclarative, qtwebchannel, and qtwebengine so I don’t have to build things unnecessarily.

            What am I doing wrong on Windows 10?

            @SGaist Sorry, I didn't realize I had so many typos in my last reply. Hopefully this is clearer now.

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              What if you only build qtbase ?

              Since it failed, did you restart each time from a clean state ?

              On a side note, you should consider making out of source builds.

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              U 2 Replies Last reply
              1
              • SGaistS SGaist

                What if you only build qtbase ?

                Since it failed, did you restart each time from a clean state ?

                On a side note, you should consider making out of source builds.

                U Offline
                U Offline
                UebelAndre
                wrote on last edited by UebelAndre
                #7

                @SGaist I've tried removing all the skips and recompiling from a clean state using jom module-qtbase and still get the following. I usually completely clean my build directory and try again every time I want to recompile Qt.

                jom 1.1.3 - empower your cores
                
                cl : Command line warning D9025 : overriding '/Fo./' with '/Foqlibraryinfo_final.obj'
                jom: Y:\Build\qt5-5.14.1\webengine\qtbase\src\corelib\Makefile.Release [.rcc\release\qrc_mimetypes.cpp] Error 2
                jom: Y:\Build\qt5-5.14.1\webengine\qtbase\src\corelib\Makefile [release] Error 2
                jom: Y:\Build\qt5-5.14.1\webengine\qtbase\src\Makefile [sub-corelib-make_first] Error 2
                jom: Y:\Build\qt5-5.14.1\webengine\qtbase\Makefile [sub-src-make_first] Error 2
                jom: Y:\Build\qt5-5.14.1\webengine\Makefile [module-qtbase] Error 2
                
                1 Reply Last reply
                0
                • U Offline
                  U Offline
                  UebelAndre
                  wrote on last edited by
                  #8

                  @SGaist Is there something I can do to get a more detailed error message? Running with -verbose doesn't appear to change what outputs to stderr. What is .rcc\release\qrc_mimetypes.cpp?

                  1 Reply Last reply
                  0
                  • SGaistS SGaist

                    What if you only build qtbase ?

                    Since it failed, did you restart each time from a clean state ?

                    On a side note, you should consider making out of source builds.

                    U Offline
                    U Offline
                    UebelAndre
                    wrote on last edited by
                    #9

                    @SGaist hi, I could still use some help with this issue.

                    1 Reply Last reply
                    0
                    • SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on last edited by
                      #10

                      One other thing you can do is check whether you get the same issue with the latest LTS.

                      Interested in AI ? www.idiap.ch
                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                      1 Reply Last reply
                      0

                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved