Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. WebEngine & raspberry pi
Forum Updated to NodeBB v4.3 + New Features

WebEngine & raspberry pi

Scheduled Pinned Locked Moved Mobile and Embedded
3 Posts 2 Posters 5.2k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    LongChair
    wrote on 17 Nov 2014, 07:06 last edited by
    #1

    I have managed to crossbuild Qt5.4.0 from the opensource version, but building webengine will fail, mentionning that only Linuc GCC / Windows / OSX are supported.

    Is that still possible to build it for a raspberry pi ? if not yet is there any plan to have it possible to build in a near future ?

    Thanks.

    1 Reply Last reply
    1
    • M Offline
      M Offline
      mijutu2
      wrote on 12 Feb 2015, 08:47 last edited by
      #2

      Here is how I compiled webengine for raspberry pi (raspbian wheezy).

      Edit qtwebengine/tools/qmake/mkspecs/features/functions.prf and
      enable webengine when compiling for raspberry pi:
      @ boot2qt: return(true)

      • linux-rasp-pi-g++:return(true)@

      Add arm-sysroot -symlink
      @ln -s / qtwebengine/src/3rdparty/chromium/arm-sysroot@

      Disable chacha:
      Edit qtwebengine/src/3rdparty/chromium/third_party/openssl/openssl.gyp and add 'OPENSSL_NO_CHACHA' to target_arch==arm -block
      @'defines': [ '<@(openssl_arm_defines)', 'OPENSSL_NO_CHACHA' ],@

      Declare that chacha is not supported:
      Edit qtwebengine/src/3rdparty/chromium/net/quic/crypto/chacha20_poly1305_decrypter_openssl.cc
      @haCha20Poly1305Decrypter::ChaCha20Poly1305Decrypter()
      : AeadBaseDecrypter(0, kKeySize, kAuthTagSize,
      kNoncePrefixSize) {
      }

      bool ChaCha20Poly1305Decrypter::IsSupported() { return false; }
      @

      Edit qtwebengine/src/3rdparty/chromium/net/quic/crypto/chacha20_poly1305_encrypter_openssl.cc
      @ChaCha20Poly1305Encrypter::ChaCha20Poly1305Encrypter()
      : AeadBaseEncrypter(0, kKeySize, kAuthTagSize,
      kNoncePrefixSize) {
      }
      bool ChaCha20Poly1305Encrypter::IsSupported() { return false; }@

      Edit qtwebengine/src/3rdparty/chromium/third_party/openssl/openssl/ssl/ssl_ciph.c
      Remove

      @*aead = EVP_aead_chacha20_poly1305();@

      and

      @return 0;@

      Add a missing define to qtwebengine/src/core/gl_surface_qt.cpp
      @#define EGL_D3D_TEXTURE_2D_SHARE_HANDLE_ANGLE 0x3200@

      I managed to compile this in banana pi running raspbian in a chroot but I needed to switch to gold linker to avoid running out of memory (32-bit system).

      For compiling in a chroot without proc and sys you need to tell gyp not to do parallel processing:

      Edit qtwebengine/src/core/gyp_run.pro, add --no-parallel to GYP_ARGS

      1 Reply Last reply
      0
      • L Offline
        L Offline
        LongChair
        wrote on 19 Feb 2015, 06:58 last edited by
        #3

        Thanks for that detailed reply mijutu2, very much appreciated :)

        By the way did you also managed to build webengine on RPI ?
        I'm wondering if the chacha patches would be required as we have the neon support now for ssl .. :)

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved