Building qtwebengine is error about python



  • Hi all,

    I have a question, I use the imx6 toolchain cross compile qtwebengine(qt5.4).
    But , I have some error.

    Error log:
    /*****************************/
    opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin//arm-fsl-linux-gnueabi-g++"...
    using python: /usr/bin/python version: 2.7.6 (default, Jun 22 2015, 17:58:13)
    [GCC 4.8.2]
    Using extra options found in /mnt/raid/peter/Freescale/FSL_LTIB_3.0.35_QT_5.4/Qt_5.4/qt-everywhere-opensource-src-5.4.0/qtwebengine/src/core/qmake_extras.gypi
    Using extra options found in /mnt/raid/peter/Freescale/FSL_LTIB_3.0.35_QT_5.4/Qt_5.4/qt-everywhere-opensource-src-5.4.0/qtwebengine/src/core/qtwebengine_extras.gypi
    Updating projects from gyp files...
    Exception: unexpected indent (qmake_extras.gypi, line 26)
    Traceback (most recent call last):
    File "/mnt/raid/peter/Freescale/FSL_LTIB_3.0.35_QT_5.4/Qt_5.4/qt-everywhere-opensource-src-5.4.0/qtwebengine/src/3rdparty/chromium/tools/gyp/pylib/gyp/input.py", line 484, in CallLoadTargetBuildFile
    includes, depth, check, False)
    File "/mnt/raid/peter/Freescale/FSL_LTIB_3.0.35_QT_5.4/Qt_5.4/qt-everywhere-opensource-src-5.4.0/qtwebengine/src/3rdparty/chromium/tools/gyp/pylib/gyp/input.py", line 373, in LoadTargetBuildFile
    includes, True, check)
    File "/mnt/raid/peter/Freescale/FSL_LTIB_3.0.35_QT_5.4/Qt_5.4/qt-everywhere-opensource-src-5.4.0/qtwebengine/src/3rdparty/chromium/tools/gyp/pylib/gyp/input.py", line 253, in LoadOneBuildFile
    aux_data, includes, check)
    File "/mnt/raid/peter/Freescale/FSL_LTIB_3.0.35_QT_5.4/Qt_5.4/qt-everywhere-opensource-src-5.4.0/qtwebengine/src/3rdparty/chromium/tools/gyp/pylib/gyp/input.py", line 290, in LoadBuildFileIncludesIntoDict
    LoadOneBuildFile(include, data, aux_data, None, False, check),
    File "/mnt/raid/peter/Freescale/FSL_LTIB_3.0.35_QT_5.4/Qt_5.4/qt-everywhere-opensource-src-5.4.0/qtwebengine/src/3rdparty/chromium/tools/gyp/pylib/gyp/input.py", line 233, in LoadOneBuildFile
    None)
    File "<string>", line 26
    ['CC', '/opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin/arm-fsl-linux-gnueabi-gcc'],
    ^
    IndentationError: unexpected indent while reading includes of /mnt/raid/peter/Freescale/FSL_LTIB_3.0.35_QT_5.4/Qt_5.4/qt-everywhere-opensource-src-5.4.0/qtwebengine/src/core/core.gyp

    Project ERROR: -- running gyp_qtwebengine failed --
    make[3]: *** [Makefile.gyp_run] Error 3
    make[3]: Leaving directory /mnt/raid/peter/Freescale/FSL_LTIB_3.0.35_QT_5.4/Qt_5.4/qt-everywhere-opensource-src-5.4.0/qtwebengine/src/core' make[2]: *** [sub-gyp_run-pro-make_first] Error 2 make[2]: Leaving directory/mnt/raid/peter/Freescale/FSL_LTIB_3.0.35_QT_5.4/Qt_5.4/qt-everywhere-opensource-src-5.4.0/qtwebengine/src/core'
    make[1]: *** [sub-core-make_first] Error 2
    make[1]: Leaving directory `/mnt/raid/peter/Freescale/FSL_LTIB_3.0.35_QT_5.4/Qt_5.4/qt-everywhere-opensource-src-5.4.0/qtwebengine/src'
    make: *** [sub-src-make_first] Error 2
    /*****************************/

    I think the error about python syntax. But I don't know about python language.

    Is the error have any patch to fix it ?
    If you know the answer. Please help me, thx.



  • This is problem is ok !

    Find the "qmake_extras.gypi" (in qt-everywhere-opensource-src-5.4.0/qtwebengine/src/core/):

    {
      'make_global_settings': [
        ['CC.host', '/usr/bin/gcc'],
        ['CXX.host', '/usr/bin/g++'],
        ['LD.host', '/usr/bin/g++'],
        ['CC', '/opt/codesourcery/bin/arm-none-linux-gnueabi-gcc'],
        ['CXX', '/opt/codesourcery/bin/arm-none-linux-gnueabi-g++'],
        ['LD', '/opt/codesourcery/bin/arm-none-linux-gnueabi-g++ -lz -ldl -lpng -lglib-2.0 -lgthread-2.0 -ljpeg -lsqlite3 -lxml2'],
      ],
      'target_defaults': {
        'target_conditions': [
          ['_toolset=="target"', {
            'include_dirs': [
              '/home/ubqt/FSL_LTIB_3.0.35/L3.0.35_4.1.0_130816_source/source/ltib/rootfs/usr/include',
              '/usr/local/tslib/tslib1.0/include',
              '/opt/codesourcery/arm-none-linux-gnueabi/libc/usr/include',
              '/usr/include',
              '/home/ubqt/usr/local/include',
              '/home/ubqt/icu/source//common',
              '/opt/codesourcery/lib/gcc/arm-none-linux-gnueabi/4.8.3/include/',
            ],
            'cflags': [
              '-I/home/ubqt/FSL_LTIB_3.0.35/L3.0.35_4.1.0_130816_source/source/ltib/rootfs/usr/include/dbus-1.0',
              '-I/home/ubqt/FSL_LTIB_3.0.35/L3.0.35_4.1.0_130816_source/source/ltib/rootfs/usr/lib/dbus-1.0/include',
            ],
          }],
        ],
      },
    }
        ['CC', '/opt/codesourcery/bin/arm-none-linux-gnueabi-gcc'],
        ['CXX', '/opt/codesourcery/bin/arm-none-linux-gnueabi-g++'],
        ['LD', '/opt/codesourcery/bin/arm-none-linux-gnueabi-g++ -lz -ldl -lpng -lglib-2.0 -lgthread-2.0 -ljpeg -lsqlite3 -lxml2'],
      ],
      'target_defaults': {
        'target_conditions': [
          ['_toolset=="target"', {
            'include_dirs': [
              '/home/ubqt/FSL_LTIB_3.0.35/L3.0.35_4.1.0_130816_source/source/ltib/rootfs/usr/include',
              '/usr/local/tslib/tslib1.0/include',
              '/opt/codesourcery/arm-none-linux-gnueabi/libc/usr/include',
              '/usr/include',
              '/home/ubqt/icu/source//common',
              '/opt/codesourcery/lib/gcc/arm-none-linux-gnueabi/4.8.3/include/',
              '/home/ubqt/libcap/include',
            ],
            'cflags': [
              '-I/home/ubqt/FSL_LTIB_3.0.35/L3.0.35_4.1.0_130816_source/source/ltib/rootfs/usr/include/dbus-1.0',
              '-I/home/ubqt/FSL_LTIB_3.0.35/L3.0.35_4.1.0_130816_source/source/ltib/rootfs/usr/lib/dbus-1.0/include',
           ],
          }],
        ],
      },
    }
    
    

    The context is repetition. Just delete the repetition context.
    Before delete it, please check the "include_dirs". Sometimes I modify include path in my qmake.conf.
    When make qtwebengine, the "qmake_extras.gypi" will load qmake.conf again.

    So, please check different the "include_dirs". If there are different, modify it,
    Just like:

    {
      'make_global_settings': [
        ['CC.host', '/usr/bin/gcc'],
        ['CXX.host', '/usr/bin/g++'],
        ['LD.host', '/usr/bin/g++'],
        ['CC', '/opt/codesourcery/bin/arm-none-linux-gnueabi-gcc'],
        ['CXX', '/opt/codesourcery/bin/arm-none-linux-gnueabi-g++'],
        ['LD', '/opt/codesourcery/bin/arm-none-linux-gnueabi-g++ -lz -ldl -lpng -lglib-2.0 -lgthread-2.0 -ljpeg -lsqlite3 -lxml2'],
      ],
      'target_defaults': {
        'target_conditions': [
          ['_toolset=="target"', {
            'include_dirs': [
              '/home/ubqt/FSL_LTIB_3.0.35/L3.0.35_4.1.0_130816_source/source/ltib/rootfs/usr/include',
              '/usr/local/tslib/tslib1.0/include',
              '/opt/codesourcery/arm-none-linux-gnueabi/libc/usr/include',
              '/usr/include',
              '/home/ubqt/usr/local/include',
              '/home/ubqt/icu/source//common',
              '/opt/codesourcery/lib/gcc/arm-none-linux-gnueabi/4.8.3/include/',
              '/home/ubqt/libcap/include',
            ],
            'cflags': [
              '-I/home/ubqt/FSL_LTIB_3.0.35/L3.0.35_4.1.0_130816_source/source/ltib/rootfs/usr/include/dbus-1.0',
              '-I/home/ubqt/FSL_LTIB_3.0.35/L3.0.35_4.1.0_130816_source/source/ltib/rootfs/usr/lib/dbus-1.0/include',
            ],
          }],
        ],
      },
    }
    

    Save "qmake_extras.gypi", continue make.


Log in to reply
 

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