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. QtWebEngine + Embedded

QtWebEngine + Embedded

Scheduled Pinned Locked Moved Mobile and Embedded
qt5.4.2qtwebengineembedded linuxbuildsource codeembeddedqt5imx6webengine
5 Posts 3 Posters 5.9k Views
  • 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.
  • N Offline
    N Offline
    njozwiak
    wrote on 23 Sept 2015, 20:13 last edited by
    #1

    Hi all,

    Why does the Qt 5.4.2 source blocking the building of WebEngine for Embedded Linux? In the file: qtwebengine/tools/qmake/mkspecs/features/functions.prf there are the following lines under isPlatformSupported:

    skipBuild("Qt WebEngine can currently only be built for Linux (GCC), Windows (MSVC 2013), OS X (XCode 5.1+) or Qt for Device Creation.")
    return(false)
    

    If I disable these and force return true there appears to be no issues building WebEngine. And in the following document: https://wiki.qt.io/QtWebEngine it clearly says it is supported in both Embedded Linux and Embedded Android. So why do I have to hack a PRF file to get this thing to build?

    Thanks

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 23 Sept 2015, 20:18 last edited by
      #2

      Hi,

      I think the key word is intend. The fact that it builds and run doesn't mean that these platforms are already tested and validated.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • N Offline
        N Offline
        njozwiak
        wrote on 23 Sept 2015, 20:21 last edited by
        #3

        I see, so there is no official support for WebEngine in Embedded Linux at this time?

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 23 Sept 2015, 20:24 last edited by SGaist
          #4

          That I can't tell, I don't know

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • S Offline
            S Offline
            sam.nazarko
            wrote on 28 Sept 2015, 21:57 last edited by
            #5

            Hi

            May I ask how you got this to build?

            I am trying to compile Qt with the following configuration (for Raspberry Pi):

                    ./configure --prefix=/usr -release -opensource -confirm-license -c++11 -no-largefile -no-qml-debug -system-zlib \
                    -no-journald -system-libpng -system-freetype -system-libjpeg -system-sqlite -openssl -no-pulseaudio -alsa \
                    -no-sql-db2 -no-sql-ibase -no-sql-mysql -no-sql-oci -no-sql-odbc -no-sql-psql -no-sql-sqlite2 -no-sql-tds -nomake examples -reduce-exports \
            -no-directfb -no-linuxfb -eglfs -no-xcb -device linux-rasp-pi-g++ -device-option CROSS_COMPILE=/usr/bin/ -sysroot /
            

            Here is my patch:

            diff --git a/qtwebengine/tools/qmake/mkspecs/features/functions.prf b/qtwebengine/tools/qmake/mkspecs/features/functions.prf
            index ef0320d..5abaecc 100644
            --- a/qtwebengine/tools/qmake/mkspecs/features/functions.prf
            +++ b/qtwebengine/tools/qmake/mkspecs/features/functions.prf
            @@ -12,13 +12,9 @@ defineTest(isPlatformSupported) {
                 return(false)
               }
             
            -  linux-g++*:!isGCCVersionSupported(): return(false)
            -  !isPythonVersionSupported(): return(false)
            -  linux-g++*|win32-msvc2013|macx-clang: return(true)
               boot2qt: return(true)
             
            -  skipBuild("Qt WebEngine can currently only be built for Linux (GCC), Windows (MSVC 2013), OS X (XCode 5.1+) or Qt for Device Creation.")
            -  return(false)
            +  return(true)
             }
             
             defineTest(isPythonVersionSupported) {
            -- 
            2.1.0
            

            And it succeeds, but I don't get a message about WebEngine being an unsupported platform. It simply does not build that module. I tried to follow this reference here, but had no luck either: https://forum.qt.io/topic/48223/webengine-raspberry-pi/2

            I am building native, not cross, on Debian Jessie.

            Thanks in advance,

            Sam

            1 Reply Last reply
            0

            1/5

            23 Sept 2015, 20:13

            • Login

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