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

Building Qt/Android on Windows

    XMLWordPrintable

Details

    • Android

    Description

      Trying to build Qt5.1.0-beta1 for Android on Windows.
      Already I've got Qt5Core, Qt5Xml, Qt5Sql, Qt5Concurrent, Qt5Test, Qt5Network, Qt5Gui, Qt5Widgets, Qt5PrintSupport, Qt5OpenGL, Qt5Svg, Qt5Script, Qt5ScriptTools and Qt5XmlPatterns.
      But I can't get qtjsbackend module.
      Build process stops with error:

      ./.obj\release_shared\execution.o:execution.cc:(.text+0x183): undefined reference to `v8::internal::Simulator::current(v8::internal::Isolate*)'
      ./.obj\release_shared\execution.o:execution.cc:(.text+0x1bb): undefined reference to `v8::internal::Simulator::Call(unsigned char*, int, ...)'
      ./.obj\release_shared\execution.o:execution.cc:(.text+0xc18): undefined reference to `v8::internal::Simulator::current(v8::internal::Isolate*)'
      ./.obj\release_shared\execution.o:execution.cc:(.text+0xc1f): undefined reference to `v8::internal::Simulator::StackLimit() const'
      ./.obj\release_shared\execution.o:execution.cc:(.text+0x146b): undefined reference to `v8::internal::Simulator::current(v8::internal::Isolate*)'
      ./.obj\release_shared\execution.o:execution.cc:(.text+0x1472): undefined reference to `v8::internal::Simulator::StackLimit() const'
      ./.obj\release_shared\execution.o:execution.cc:(.text+0x1480): undefined reference to `v8::internal::Simulator::current(v8::internal::Isolate*)'
      ./.obj\release_shared\execution.o:execution.cc:(.text+0x1487): undefined reference to `v8::internal::Simulator::StackLimit() const'
      c:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/bin/ld.exe: ./.obj\release_shared\execution.o: bad reloc address 0x20 in section `.eh_frame'
      collect2.exe: error: ld returned 1 exit status
      mingw32-make.exe[4]: *** [C:\Qt\build\qt5\qtbase\lib\Qt5V8.dll] Error 1
      mingw32-make.exe[3]: *** [release] Error 2
      mingw32-make.exe[2]: *** [sub-v8-make_first-ordered] Error 2
      mingw32-make.exe[1]: *** [sub-src-make_first] Error 2
      mingw32-make.exe: *** [module-qtjsbackend-make_first] Error 2
      mingw32-make.exe: *** Waiting for unfinished jobs....

      Cloning from git:

      git clone git://gitorious.org/qt/qt5.git qt5
      cd qt5
      C:/strawberry/perl/bin/perl init-repository --no-webkit --module-subset=qtbase,qtsvg,qtdeclarative,qtscript,qtmultimedia,qtxmlpatterns,qtqa,qtsensors,qtjsbackend,qtimageformats,qtquick1,qtgraphicaleffects

      Сonfiguring:

      SET QTDIR=C:\Qt\build\qt5\qtbase
      SET MINGWDIR=C:\mingw32
      SET PERLDIR=C:\strawberry\perl
      SET JAVADIR=C:\Program Files\Java\jdk1.7.0_21
      SET QMAKESPEC=win32-g++
      SET ANDROID_NDK=C:\Android\android-ndk-r8e
      SET ANDROID_SDK=C:\Android\android-sdk
      SET PATH=%QTDIR%\bin;%MINGWDIR%\bin;%PERLDIR%\bin;%JAVADIR%\bin;%SystemRoot%\System32;
      cd /d C:\Qt\build\qt5
      cmd /k configure.bat ^
      -developer-build ^
      -platform win32-g++ ^
      -xplatform android-g++ ^
      -android-ndk %ANDROID_NDK% ^
      -android-sdk %ANDROID_SDK% ^
      -nomake tests ^
      -nomake examples ^
      -skip qtwebkit ^
      -skip qtserialport ^
      -skip qtwebkit-examples ^
      -opensource ^
      -opengl desktop

      Building:

      SET QTDIR=C:\Qt\build\qt5\qtbase
      SET MINGWDIR=C:\mingw32
      SET PERLDIR=C:\strawberry\perl
      SET PYTHONDIR=C:\Python33
      SET JAVADIR=C:\Program Files\Java\jdk1.7.0_21
      SET QMAKESPEC=win32-g++
      SET ANDROID_NDK=C:\Android\android-ndk-r8e
      SET PATH=%QTDIR%\bin;%MINGWDIR%\bin;%PERLDIR%\bin;%PYTHONDIR%;%JAVADIR%\bin;%SystemRoot%\System32;%ANDROID_NDK%;
      cd /d C:\Qt\build\qt5
      mingw32-make.exe -j4

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            ilya84a Ilya Aleshkov
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes