QT build error



  • I am building on VS 2012 & using Windows 8 SDK etc.. Please suggest to resolve this error.

    sh: C:QTqt5-buildqtbasebinmoc.exe: command not found
    Failed to read names from file: C:/QT/qtsrc_vs2012_builticu/qtwebkit/Source/WebC
    ore/mathml/mathtags.in at C:/QT/qtsrc_vs2012_builticu/qtwebkit/Source/WebCore/do
    m/make_names.pl line 315.
    NMAKE : fatal error U1077: 'C:\MotorolaRhoMobileSuite5.0.25\devkit\bin\perl.EXE'
    : return code '0x7f'
    Stop.
    NMAKE : fatal error U1077: '(' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: 'cd' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: 'cd' : return code '0x2'
    Stop.
    "Calling nmake ...Complete"
    Press any key to continue . . .


  • Lifetime Qt Champion

    Hi,

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



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


  • Lifetime Qt Champion

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

    What steps did you follow to start building Qt ?



  • 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.



  • 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 ?


  • Lifetime Qt Champion

    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



  • 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


  • Lifetime Qt Champion

    Something strange: you have sh in your PATH ?



  • 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?


  • Lifetime Qt Champion

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



  • 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



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



  • SET SQLITE3SRCDIR has already set



  • 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



  • 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.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.