Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-37122

Qt5.3.0 alpha static build: errors on VC2010 environment

XMLWordPrintable

      • Download the opensource Qt 5.3.0 alpha monolite source package.
      • Run configure on windows VC2010 environment with -static option:
        I:\qtinstall\mono_os\qt-everywhere-opensource-src-5.3.0-alpha>configure -nomake examples -nomake tests -confirm-license -static -skip qtwebkit
      • Build Qt with jom.

      Bug:

              cl -c -nologo -Zm200 -Zc:wchar_t -O2 -MD -GR -W3 -w34100 -w34189 -DUNICO
      DE -DWIN32 -DQT_QML_DEBUG_NO_WARNING -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_WIDGE
      TS_LIB -DQT_QML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_OPENGL_ES_2
       -DQT_OPENGL_ES_2_ANGLE -DQT_OPENGL_ES_2_ANGLE_STATIC -DNDEBUG -I"I:\qtinstall\m
      ono_os\qt-everywhere-opensource-src-5.3.0-alpha\qtbase\include" -I"I:\qtinstall\
      mono_os\qt-everywhere-opensource-src-5.3.0-alpha\qtbase\include\QtWidgets" -I"..
      \..\include" -I"..\..\include\QtQml" -I"I:\qtinstall\mono_os\qt-everywhere-opens
      ource-src-5.3.0-alpha\qtbase\include\QtQml" -I"I:\qtinstall\mono_os\qt-everywher
      e-opensource-src-5.3.0-alpha\qtbase\include\QtGui" -I"I:\qtinstall\mono_os\qt-ev
      erywhere-opensource-src-5.3.0-alpha\qtbase\include\QtANGLE" -I"I:\qtinstall\mono
      _os\qt-everywhere-opensource-src-5.3.0-alpha\qtbase\include\QtCore\5.3.0" -I"I:\
      qtinstall\mono_os\qt-everywhere-opensource-src-5.3.0-alpha\qtbase\include\QtCore
      \5.3.0\QtCore" -I"I:\qtinstall\mono_os\qt-everywhere-opensource-src-5.3.0-alpha\
      qtbase\include\QtNetwork" -I"I:\qtinstall\mono_os\qt-everywhere-opensource-src-5
      .3.0-alpha\qtbase\include\QtCore" -I".moc\release" -I"I:\qtinstall\mono_os\qt-ev
      erywhere-opensource-src-5.3.0-alpha\qtbase\mkspecs\win32-msvc2010" -Fo.obj\relea
      se\ @C:\Users\tasundqv\AppData\Local\Temp\main.obj.6560.421.jom
      main.cpp
              link /NOLOGO /DYNAMICBASE /NXCOMPAT /INCREMENTAL:NO /SUBSYSTEM:CONSOLE "
      /MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' versio
      n='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='*' processorArchitecture
      ='*'" /MANIFEST /MANIFESTFILE:I:\qtinstall\mono_os\qt-everywhere-opensource-src-
      5.3.0-alpha\qtbase\bin\qml.exe.embed.manifest /OUT:I:\qtinstall\mono_os\qt-every
      where-opensource-src-5.3.0-alpha\qtbase\bin\qml.exe @C:\Users\tasundqv\AppData\L
      ocal\Temp\qml.exe.6560.1762.jom
      Qt5Gui.lib(qvector2d.obj) : error LNK2005: "public: static float __cdecl QVector
      2D::dotProduct(class QVector2D const &,class QVector2D const &)" (?dotProduct@QV
      ector2D@@SAMABV1@0@Z) already defined in Qt5Quick.lib(qquickvaluetypes.obj)
      Qt5Gui.lib(qvector3d.obj) : error LNK2005: "public: static float __cdecl QVector
      3D::dotProduct(class QVector3D const &,class QVector3D const &)" (?dotProduct@QV
      ector3D@@SAMABV1@0@Z) already defined in Qt5Quick.lib(qquickvaluetypes.obj)
      Qt5Gui.lib(qvector3d.obj) : error LNK2005: "public: static class QVector3D __cde
      cl QVector3D::crossProduct(class QVector3D const &,class QVector3D const &)" (?c
      rossProduct@QVector3D@@SA?AV1@ABV1@0@Z) already defined in Qt5Quick.lib(qquickva
      luetypes.obj)
      Qt5Gui.lib(qvector4d.obj) : error LNK2005: "public: static float __cdecl QVector
      4D::dotProduct(class QVector4D const &,class QVector4D const &)" (?dotProduct@QV
      ector4D@@SAMABV1@0@Z) already defined in Qt5Quick.lib(qquickvaluetypes.obj)
         Creating library I:\qtinstall\mono_os\qt-everywhere-opensource-src-5.3.0-alph
      a\qtbase\bin\qml.lib and object I:\qtinstall\mono_os\qt-everywhere-opensource-sr
      c-5.3.0-alpha\qtbase\bin\qml.exp
      I:\qtinstall\mono_os\qt-everywhere-opensource-src-5.3.0-alpha\qtbase\bin\qml.exe
       : fatal error LNK1169: one or more multiply defined symbols found
      jom: I:\qtinstall\mono_os\qt-everywhere-opensource-src-5.3.0-alpha\qtdeclarative
      \tools\qml\Makefile.Release [I:\qtinstall\mono_os\qt-everywhere-opensource-src-5
      .3.0-alpha\qtbase\bin\qml.exe] Error 1169
      jom: I:\qtinstall\mono_os\qt-everywhere-opensource-src-5.3.0-alpha\qtdeclarative
      \tools\qml\Makefile [release] Error 2
      jom: I:\qtinstall\mono_os\qt-everywhere-opensource-src-5.3.0-alpha\qtdeclarative
      \tools\Makefile [sub-qml-make_first] Error 2
      jom: I:\qtinstall\mono_os\qt-everywhere-opensource-src-5.3.0-alpha\qtdeclarative
      \Makefile [sub-tools-make_first] Error 2
      jom: I:\qtinstall\mono_os\qt-everywhere-opensource-src-5.3.0-alpha\Makefile [mod
      ule-qtdeclarative-make_first] Error 2
      
      I:\qtinstall\mono_os\qt-everywhere-opensource-src-5.3.0-alpha>
      

        1. qtgui-static-buildfix.patch
          2 kB
          Alex Blasche
        2. qtgui-static-buildfix2.patch
          4 kB
          Alex Blasche
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            ablasche Alex Blasche
            tarjasundqvist Tarja Sundqvist
            Votes:
            2 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes