Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Building QT 5.13 from source failed when build qtbase\src\tools\uic



  • Hello,
    when building uic, shared subfolder cannot be builded.
    but cpp subfolder need shared/language.cpp,
    please help.

    windows 10, vs2017.



  • @mirchd

    Hi and welcome to devent forum

    You are aware that Qt5.13 is still in alpha stage?
    It is probably easier to go with a pre-built and released version.

    If you have real need to go for Qt5.13 you probably would have to check with the developer mailing list. This is merely a user-driven forum.



  • thank you.
    when I build qt5.12,it can not be builded for some fatal error.
    so I checkout 5.13, but tools\uic is still cannot be build.

    so I modify the Makefile.Debug manually.


    INCPATH = -I. -I. -Icpp -Ishared -I. -I......\include -I......\include\QtCore -I.moc\debug -ID:\program\icu\icu4c\include -I......\mkspecs\win32-msvc

    SOURCES = customwidgetsinfo.cpp
    databaseinfo.cpp
    driver.cpp
    treewalker.cpp
    ui4.cpp
    validator.cpp
    shared\language.cpp
    cpp\cppwritedeclaration.cpp
    cpp\cppwriteincludes.cpp
    cpp\cppwriteinitialization.cpp
    main.cpp
    uic.cpp
    OBJECTS = .obj\debug\customwidgetsinfo.obj
    .obj\debug\databaseinfo.obj
    .obj\debug\driver.obj
    .obj\debug\treewalker.obj
    .obj\debug\ui4.obj
    .obj\debug\validator.obj
    .obj\debug\language.obj
    .obj\debug\cppwritedeclaration.obj
    .obj\debug\cppwriteincludes.obj
    .obj\debug\cppwriteinitialization.obj
    .obj\debug\main.obj
    .obj\debug\uic.obj

    DIST = customwidgetsinfo.h
    databaseinfo.h
    driver.h
    option.h
    treewalker.h
    utils.h
    ui4.h
    validator.h
    shared\language.h
    cpp\cppwritedeclaration.h
    cpp\cppwriteincludes.h
    cpp\cppwriteinitialization.h
    uic.h customwidgetsinfo.cpp
    databaseinfo.cpp
    driver.cpp
    treewalker.cpp
    ui4.cpp
    validator.cpp
    cpp\cppwritedeclaration.cpp
    cpp\cppwriteincludes.cpp
    cpp\cppwriteinitialization.cpp
    main.cpp
    uic.cpp

    {shared}.cpp{.obj\debug\}.obj::
    	$(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo.obj\debug\ @<<
    	$<
    <<
    
    {shared}.cc{.obj\debug\}.obj::
    	$(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo.obj\debug\ @<<
    	$<
    <<
    
    {shared}.cxx{.obj\debug\}.obj::
    	$(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo.obj\debug\ @<<
    	$<
    <<
    
    {shared}.c{.obj\debug\}.obj::
    	$(CC) -c $(CFLAGS) $(INCPATH) -Fo.obj\debug\ @<<
    	$<
    <<
    

    ......\bin\uic.exe: $(OBJECTS) .obj\debug\uic_resource.res
    $(LINKER) $(LFLAGS) /MANIFEST:embed /OUT:$(DESTDIR_TARGET) @<<
    .obj\debug\customwidgetsinfo.obj .obj\debug\databaseinfo.obj .obj\debug\driver.obj .obj\debug\treewalker.obj .obj\debug\ui4.obj .obj\debug\validator.obj .obj\debug\language.obj .obj\debug\cppwritedeclaration.obj .obj\debug\cppwriteincludes.obj .obj\debug\cppwriteinitialization.obj .obj\debug\main.obj .obj\debug\uic.obj
    $(LIBS)
    <<

    clean: compiler_clean
    -$(DEL_FILE) .obj\debug\customwidgetsinfo.obj .obj\debug\databaseinfo.obj .obj\debug\driver.obj .obj\debug\treewalker.obj .obj\debug\ui4.obj .obj\debug\validator.obj .obj\debug\language.obj .obj\debug\cppwritedeclaration.obj .obj\debug\cppwriteincludes.obj .obj\debug\cppwriteinitialization.obj .obj\debug\main.obj .obj\debug\uic.obj
    -$(DEL_FILE) ......\bin\uic5.exp .obj\debug\uic.vc.pdb ......\bin\uic5.ilk ......\bin\uic5.idb
    -$(DEL_FILE) .obj\debug\uic_resource.res

    .obj\debug\language.obj: shared\language.cpp shared\language.h \
    		treewalker.h \
    		..\..\..\include\QtCore\qlist.h \
    		..\..\corelib\tools\qlist.h \
    		..\..\..\include\QtCore\qalgorithms.h \
    		..\..\corelib\tools\qalgorithms.h \
    		..\..\..\include\QtCore\qglobal.h \
    		..\..\corelib\global\qglobal.h \
    		..\..\..\include\QtCore\qconfig-bootstrapped.h \
    		..\..\corelib\global\qconfig-bootstrapped.h \
    		..\..\..\include\QtCore\qconfig.h \
    		..\..\corelib\global\qconfig.h \
    		..\..\..\include\QtCore\qtcore-config.h \
    		..\..\corelib\qtcore-config.h \
    		..\..\..\include\QtCore\qsystemdetection.h \
    		..\..\corelib\global\qsystemdetection.h \
    		..\..\..\include\QtCore\qprocessordetection.h \
    		..\..\corelib\global\qprocessordetection.h \
    		..\..\..\include\QtCore\qcompilerdetection.h \
    		..\..\corelib\global\qcompilerdetection.h \
    		..\..\..\include\QtCore\qtypeinfo.h \
    		..\..\corelib\global\qtypeinfo.h \
    		..\..\..\include\QtCore\qsysinfo.h \
    		..\..\corelib\global\qsysinfo.h \
    		..\..\..\include\QtCore\qlogging.h \
    		..\..\corelib\global\qlogging.h \
    		..\..\..\include\QtCore\qflags.h \
    		..\..\corelib\global\qflags.h \
    		..\..\..\include\QtCore\qatomic.h \
    		..\..\corelib\thread\qatomic.h \
    		..\..\..\include\QtCore\qbasicatomic.h \
    		..\..\corelib\thread\qbasicatomic.h \
    		..\..\..\include\QtCore\qatomic_bootstrap.h \
    		..\..\corelib\thread\qatomic_bootstrap.h \
    		..\..\..\include\QtCore\qgenericatomic.h \
    		..\..\corelib\thread\qgenericatomic.h \
    		..\..\..\include\QtCore\qatomic_cxx11.h \
    		..\..\corelib\thread\qatomic_cxx11.h \
    		..\..\..\include\QtCore\qatomic_msvc.h \
    		..\..\corelib\thread\qatomic_msvc.h \
    		..\..\..\include\QtCore\qglobalstatic.h \
    		..\..\corelib\global\qglobalstatic.h \
    		..\..\..\include\QtCore\qmutex.h \
    		..\..\corelib\thread\qmutex.h \
    		..\..\..\include\QtCore\qnumeric.h \
    		..\..\corelib\global\qnumeric.h \
    		..\..\..\include\QtCore\qversiontagging.h \
    		..\..\corelib\global\qversiontagging.h \
    		..\..\..\include\QtCore\qiterator.h \
    		..\..\corelib\tools\qiterator.h \
    		..\..\..\include\QtCore\qrefcount.h \
    		..\..\corelib\tools\qrefcount.h \
    		..\..\..\include\QtCore\qarraydata.h \
    		..\..\corelib\tools\qarraydata.h \
    		..\..\..\include\QtCore\qhashfunctions.h \
    		..\..\corelib\tools\qhashfunctions.h \
    		..\..\..\include\QtCore\qstring.h \
    		..\..\corelib\tools\qstring.h \
    		..\..\..\include\QtCore\qchar.h \
    		..\..\corelib\tools\qchar.h \
    		..\..\..\include\QtCore\qbytearray.h \
    		..\..\corelib\tools\qbytearray.h \
    		..\..\..\include\QtCore\qnamespace.h \
    		..\..\corelib\global\qnamespace.h \
    		..\..\..\include\QtCore\qstringliteral.h \
    		..\..\corelib\tools\qstringliteral.h \
    		..\..\..\include\QtCore\qstringalgorithms.h \
    		..\..\corelib\tools\qstringalgorithms.h \
    		..\..\..\include\QtCore\qstringview.h \
    		..\..\corelib\tools\qstringview.h \
    		..\..\..\include\QtCore\qstringbuilder.h \
    		..\..\corelib\tools\qstringbuilder.h \
    		..\..\..\include\QtCore\qpair.h \
    		..\..\corelib\tools\qpair.h \
    		..\..\..\include\QtCore\qbytearraylist.h \
    		..\..\corelib\tools\qbytearraylist.h \
    		..\..\..\include\QtCore\qstringlist.h \
    		..\..\corelib\tools\qstringlist.h \
    		..\..\..\include\QtCore\qregexp.h \
    		..\..\corelib\tools\qregexp.h \
    		..\..\..\include\QtCore\qstringmatcher.h \
    		..\..\corelib\tools\qstringmatcher.h \
    		..\..\..\include\QtCore\qhash.h \
    		..\..\corelib\tools\qhash.h \
    		..\..\..\include\QtCore\qset.h \
    		..\..\corelib\tools\qset.h \
    		..\..\..\include\QtCore\qmap.h \
    		..\..\corelib\tools\qmap.h \
    		..\..\..\include\QtCore\qdebug.h \
    		..\..\corelib\io\qdebug.h \
    		..\..\..\include\QtCore\qtextstream.h \
    		..\..\corelib\serialization\qtextstream.h \
    		..\..\..\include\QtCore\qiodevice.h \
    		..\..\corelib\io\qiodevice.h \
    		..\..\..\include\QtCore\qobject.h \
    		..\..\corelib\kernel\qobject.h \
    		..\..\..\include\QtCore\qobjectdefs.h \
    		..\..\corelib\kernel\qobjectdefs.h \
    		..\..\..\include\QtCore\qobjectdefs_impl.h \
    		..\..\corelib\kernel\qobjectdefs_impl.h \
    		..\..\..\include\QtCore\qcoreevent.h \
    		..\..\corelib\kernel\qcoreevent.h \
    		..\..\..\include\QtCore\qscopedpointer.h \
    		..\..\corelib\tools\qscopedpointer.h \
    		..\..\..\include\QtCore\qmetatype.h \
    		..\..\corelib\kernel\qmetatype.h \
    		..\..\..\include\QtCore\qvarlengtharray.h \
    		..\..\corelib\tools\qvarlengtharray.h \
    		..\..\..\include\QtCore\qcontainerfwd.h \
    		..\..\corelib\tools\qcontainerfwd.h \
    		..\..\..\include\QtCore\qobject_impl.h \
    		..\..\corelib\kernel\qobject_impl.h \
    		..\..\..\include\QtCore\qlocale.h \
    		..\..\corelib\tools\qlocale.h \
    		..\..\..\include\QtCore\qvariant.h \
    		..\..\corelib\kernel\qvariant.h \
    		..\..\..\include\QtCore\qshareddata.h \
    		..\..\corelib\tools\qshareddata.h \
    		..\..\..\include\QtCore\qvector.h \
    		..\..\corelib\tools\qvector.h \
    		..\..\..\include\QtCore\qpoint.h \
    		..\..\corelib\tools\qpoint.h \
    		..\..\..\include\QtCore\qcontiguouscache.h \
    		..\..\corelib\tools\qcontiguouscache.h \
    		..\..\..\include\QtCore\qsharedpointer.h \
    		..\..\corelib\tools\qsharedpointer.h \
    		..\..\..\include\QtCore\qsharedpointer_impl.h \
    		..\..\corelib\tools\qsharedpointer_impl.h \
    		..\..\..\include\QtCore\qstack.h \
    		..\..\corelib\tools\qstack.h \
    		driver.h \
    		option.h \
    		..\..\..\include\QtCore\qdir.h \
    		..\..\corelib\io\qdir.h \
    		..\..\..\include\QtCore\qfileinfo.h \
    		..\..\corelib\io\qfileinfo.h \
    		..\..\..\include\QtCore\qfile.h \
    		..\..\corelib\io\qfile.h \
    		..\..\..\include\QtCore\qfiledevice.h \
    		..\..\corelib\io\qfiledevice.h \
    		ui4.h \
    		..\..\..\include\QtCore\qxmlstream.h \
    		..\..\corelib\serialization\qxmlstream.h \
    		uic.h \
    		databaseinfo.h \
    		customwidgetsinfo.h
    

    it can build. I dont konw how to generate makefile.debug auto.



  • @mirchd

    You are aware that there is already a pre-built version of Qt 5.12.1 for MSVC2017 for 32 bit and 64 bit available through the online installer.

    Personally I would go for those pre-builds which might save you a lot of hazzle.

    Otherwise I do not use MS compilers anymore and I am not of any help here. Possibly someone else may jump into the discussion.



  • @koahnig
    Thanks for your help,
    I'll try the pre-built version of Qt 5.12.1


Log in to reply