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. QT build error
Forum Updated to NodeBB v4.3 + New Features

QT build error

Scheduled Pinned Locked Moved Installation and Deployment
17 Posts 4 Posters 8.9k 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.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #2

    Hi,

    Is your perl version compatible with the version recommended by the building guide ?

    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
    • N Offline
      N Offline
      Narasimman
      wrote on last edited by
      #3

      Yes. Compatible perl is present. that is 5.20.2.2001 latest version. Also perl is in PATH.

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

        Something's is puzzling me, moc can't be found.

        What steps did you follow to start building Qt ?

        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
        • N Offline
          N Offline
          Narasimman
          wrote on last edited by
          #5

          Now I have added the C:QTqt5-buildqtbasebin (C:\qt\qt5-build\qtbase\bin) to path then moc.exe is found further processing now. Let see further then update you.

          1 Reply Last reply
          0
          • N Offline
            N Offline
            Narasimman
            wrote on last edited by
            #6

            Now QT has builded . but wekit &Related has not built

            I got warning like the following :

            Some of the required modules (qtHaveModule(webkit)) are not available.
            Skipped.

            Why it is not built ? what are the dependencies ?

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

              I can't tell why, I don't know where you called configure nor the options you gave it and how you got Qt's sources

              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
              • N Offline
                N Offline
                Narasimman
                wrote on last edited by
                #8

                After Building the ICU from source I given the configure like the following:
                call C:\QT\QT542_Test\VS2012\qtsrc_5.4.2\configure.bat -opensource -confirm-license ^
                -prefix C:/QT/QT542_Test/VS2012/Qt5_4_2-ssl-icu-2012 -debug-and-release -platform win32-msvc2012 -mp ^
                -icu -shared -c++11 -make libs -nomake tests -nomake examples -angle ^
                -qt-zlib -qt-libpng -qt-libjpeg -qt-freetype -openssl-linked

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

                  Something strange: you have sh in your PATH ?

                  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
                  • N Offline
                    N Offline
                    Narasimman
                    wrote on last edited by
                    #10

                    I found webkit project is skipped due to dependencies are not compiled . but I am not seeing any errors regarding this. no idea why it is not able to compile dependecies. still i am finding what are the depencies. then I found sqlite. i compiled manually and start compiling webkit. then i got :-1: error: WebKit requires SQLite. Either make it available via pkg-config, set $SQLITE3SRCDIR or build WebKit under qt5.git. CAn you advice me regarding this?

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

                      Call configure with the -v option to see what is happening

                      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
                      • N Offline
                        N Offline
                        Narasimman
                        wrote on last edited by
                        #12

                        I got the error like the following : Seems webkit has not built

                        ////////////////////////////////////////////////////////////////////////////////////////////////////////
                        main.cpp
                        qtdiag.cpp
                        Generating Code...
                        link /NOLOGO /DYNAMICBASE /NXCOMPAT /INCREMENTAL:NO /SUBSYSTEM:CONSOLE,5.01 "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='' processorArchitecture=''" /MANIFEST /MANIFESTFILE:....\bin\qtdiag.exe.embed.manifest /OUT:....\bin\qtdiag.exe @C:\Users\KQNG43\AppData\Local\Temp\nmA4AD.tmp
                        mt.exe /nologo /manifest ....\bin\qtdiag.exe.embed.manifest /outputresource:....\bin\qtdiag.exe;1
                        cd qtwebkit-examples\ && ( if not exist Makefile C:\QT\QT542_Test\VS2012\qt5.4.2_build\qtbase\bin\qmake C:\QT\QT542_Test\VS2012\qtsrc_5.4.2\qtwebkit-examples\qtwebkit-examples.pro -o Makefile ) && "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\nmake.exe" -f Makefile
                        Info: creating cache file C:\QT\QT542_Test\VS2012\qt5.4.2_build\qtwebkit-examples.qmake.cache
                        Some of the required modules (qtHaveModule(webkit)) are not available.
                        Skipped.
                        Some of the required modules (qtHaveModule(webkit)) are not available.
                        Skipped.
                        Some of the required modules (qtHaveModule(webkit)) are not available.
                        Skipped.
                        Some of the required modules (qtHaveModule(webkit)) are not available.
                        Skipped.
                        Some of the required modules (qtHaveModule(webkit)) are not available.
                        Skipped.
                        Some of the required modules (qtHaveModule(webkit)) are not available.
                        Skipped.
                        Some of the required modules (qtHaveModule(webkit)) are not available.
                        Skipped.
                        Some of the required modules (qtHaveModule(webkit)) are not available.
                        Skipped.
                        Some of the required modules (qtHaveModule(webkit)) are not available.
                        Skipped.
                        Some of the required modules (qtHaveModule(webkit)) are not available.
                        Skipped.
                        Some of the required modules (qtHaveModule(webkit)) are not available.
                        Skipped.
                        Some of the required modules (qtHaveModule(webkit)) are not available.
                        Skipped.
                        Some of the required modules (qtHaveModule(webkit)) are not available.
                        Skipped.
                        Some of the required modules (qtHaveModule(webkit)) are not available.
                        Skipped.
                        Some of the required modules (qtHaveModule(webkit)) are not available.
                        Skipped.
                        Some of the required modules (qtHaveModule(webkit)) are not available.
                        Skipped.
                        Some of the required modules (qtHaveModule(webkit)) are not available.
                        Skipped.
                        Some of the required modules (qtHaveModule(webkit)) are not available.
                        Skipped.
                        Some of the required modules (qtHaveModule(webkit)) are not available.
                        Skipped.
                        Some of the required modules (qtHaveModule(webkit)) are not available.
                        Skipped.
                        Some of the required modules (qtHaveModule(webkit)) are not available.
                        Skipped.
                        cd qtimageformats\ && ( if not exist Makefile C:\QT\QT542_Test\VS2012\qt5.4.2_build\qtbase\bin\qmake C:\QT\QT542_Test\VS2012\qtsrc_5.4.2\qtimageformats\qtimageformats.pro -o Makefile ) && "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\nmake.exe" -f Makefile
                        Info: creating cache file C:\QT\QT542_Test\VS2012\qt5.4.2_build\qtimageformats.qmake.cache
                        cd src\ && ( if not exist Makefile C:\QT\QT542_Test\VS2012\qt5.4.2_build\qtbase\bin\qmake C:\QT\QT542_Test\VS2012\qtsrc_5.4.2\qtimageformats\src\src.pro -o Makefile ) && "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\nmake.exe" -f Makefile
                        cd plugins\ && ( if not exist Makefile C:\QT\QT542_Test\VS2012\qt5.4.2_build\qtbase\bin\qmake C:\QT\QT542_Test\VS2012\qtsrc_5.4.2\qtimageformats\src\plugins\plugins.pro -o Makefile ) && "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\nmake.exe" -f Makefile
                        cd imageformats\ && ( if not exist Makefile C:\QT\QT542_Test\VS2012\qt5.4.2_build\qtbase\bin\qmake C:\QT\QT542_Test\VS2012\qtsrc_5.4.2\qtimageformats\src\plugins\imageformats\imageformats.pro -o Makefile ) && "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\nmake.exe" -f Makefile
                        cd dds\ && ( if not exist Makefile C:\QT\QT542_Test\VS2012\qt5.4.2_build\qtbase\bin\qmake C:\QT\QT542_Test\VS2012\qtsrc_5.4.2\qtimageformats\src\plugins\imageformats\dds\dds.pro -o Makefile ) && "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\nmake.exe" -f Makefile
                        "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\nmake.exe" -f Makefile.Debug all
                        C:\QT\QT542_Test\VS2012\qt5.4.2_build\qtbase\bin\moc.exe -DUNICODE -DWIN32 -DQT_NO_EXCEPTIONS -DQT_PLUGIN -DQT_GUI_LIB -DQT_CORE_LIB -DQT_OPENGL_ES_2 -DQT_OPENGL_ES_2_ANGLE -D_MSC_VER=1700 -D_WIN32 -IC:/QT/QT542_Test/VS2012/qtsrc_5.4.2/qtbase/mkspecs/win32-msvc2012 -IC:/QT/QT542_Test/VS2012/qtsrc_5.4.2/qtimageformats/src/plugins/imageformats/dds -IC:/MotorolaRhoMobileSuite5.0.25/ruby/lib/ruby/gems/1.9.1/gems/rhodes-5.0.25.13/lib/extensions/openssl.so/ext/win32/include -IC:/QT/QT542_Test/VS2012/qtsrc_5.4.2/qtbase/include -IC:/QT/QT542_Test/VS2012/qtsrc_5.4.2/qtbase/include/QtGui -IC:/QT/QT542_Test/VS2012/qtsrc_5.4.2/qtbase/include/QtANGLE -IC:/QT/QT542_Test/VS2012/qt5.4.2_build/qtbase/include -IC:/QT/QT542_Test/VS2012/qt5.4.2_build/qtbase/include/QtGui -IC:/QT/QT542_Test/VS2012/qtsrc_5.4.2/qtbase/include/QtCore -IC:/QT/QT542_Test/VS2012/qt5.4.2_build/qtbase/include/QtCore -I. C:\QT\QT542_Test\VS2012\qtsrc_5.4.2\qtimageformats\src\plugins\imageformats\dds\main.cpp -o .moc\debug\main.moc
                        rc -D_DEBUG -DUNICODE -DWIN32 -DQT_NO_EXCEPTIONS -DQT_PLUGIN -DQT_GUI_LIB -DQT_CORE_LIB -DQT_OPENGL_ES_2 -DQT_OPENGL_ES_2_ANGLE -fo .obj\debug\qddsd_resource.res qddsd_resource.rc
                        Microsoft (R) Windows (R) Resource Compiler Version 6.2.9200.16384
                        ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

                        my configure option is like this

                        call C:\QT\QT542_Test\VS2012\qtsrc_5.4.2\configure.bat -opensource -confirm-license -target xp ^
                        -prefix C:/QT/QT542_Test/VS2012/Qt5_4_2-ssl-icu-2012-xp -debug-and-release -platform win32-msvc2012 -mp ^
                        -icu -shared -c++11 -make libs -nomake tests -nomake examples -angle ^
                        -qt-zlib -qt-libpng -qt-libjpeg -qt-freetype -openssl-linked ^
                        -I C:/Rproduct/ruby/lib/ruby/gems/1.9.1/gems/rhodes-5.0.25.13/lib/extensions/openssl.so/ext/win32/include ^
                        -L C:/RProduct/ruby/lib/ruby/gems/1.9.1/gems/rhodes-5.0.25.13/lib/extensions/openssl.so/ext/win32/lib

                        I didn't find any option to include webkit (I tried -webkit it thrown unknow option) Let advise on this

                        1 Reply Last reply
                        0
                        • Paul H.P Offline
                          Paul H.P Offline
                          Paul H.
                          wrote on last edited by
                          #13

                          Try SET SQLITE3SRCDIR=C:\QT\QT542_Test\VS2012\qtsrc5.4.2\qtbase\src\3rdparty\sqlite before calling configure.
                          Paul

                          1 Reply Last reply
                          0
                          • N Offline
                            N Offline
                            Narasimman
                            wrote on last edited by
                            #14

                            SET SQLITE3SRCDIR has already set

                            1 Reply Last reply
                            0
                            • Paul H.P Offline
                              Paul H.P Offline
                              Paul H.
                              wrote on last edited by Paul H.
                              #15

                              I haven't built the VS2012 version, but I did build for VS2010 64bit. I got the source using git and the qtwebkit built without issue. I'm trying it again to double check that it builds correctly. I can share how I did it if you want. One thing I had to do to get it to build was append the ICU and openssl lib and include paths to the environment variables LIB and INCLUDE. Using the -L and -I option in configure did not work for me for some reason. I also had to add the bin directories for both to PATH.
                              Paul

                              1 Reply Last reply
                              0
                              • N Offline
                                N Offline
                                Narasimman
                                wrote on last edited by
                                #16

                                hi Now I switched to QT 5.5 compilation from source

                                now I am getting these error let me see

                                    (set QT_PLUGIN_PATH=C:\QT\Qt55Test\VS2012\QT5.5Build\qtbase\plugins) & (
                                

                                set PATH=C:\QT\Qt55Test\VS2012\QT5.5Build\qtbase\lib;%PATH:)=^)%) & C:\QT\Qt55Te
                                st\VS2012\QT5.5Build\qtbase\bin\uic.exe C:\QT\Qt55Test\VS2012\qt-src-5.5.0\qtbas
                                e\src\widgets\dialogs\qfiledialog.ui -o .uic\ui_qfiledialog.h
                                NMAKE : fatal error U1077: '(set' : return code '0xc0000135'
                                Stop.
                                NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 11.0
                                \VC\BIN\nmake.exe"' : return code '0x2'
                                Stop.
                                NMAKE : fatal error U1077: 'cd' : return code '0x2'
                                Stop.
                                NMAKE : fatal error U1077: 'cd' : return code '0x2'
                                Stop.
                                NMAKE : fatal error U1077: 'cd' : return code '0x2'
                                Stop.

                                1 Reply Last reply
                                0
                                • S Offline
                                  S Offline
                                  Shidharth
                                  wrote on last edited by
                                  #17

                                  This can be overcome by setting path of icu bin folder to PATH environment variable. Just posted for reference, it may help someone to resolve this issue.

                                  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