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. QtWebview 5.7 on Raspberry Pi 3
Forum Updated to NodeBB v4.3 + New Features

QtWebview 5.7 on Raspberry Pi 3

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
3 Posts 2 Posters 1.7k 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.
  • S Offline
    S Offline
    sly110
    wrote on last edited by
    #1

    All,
    I have a Qt5.7 app being developed for Raspberry Pi 3. There is a need to display HTML help files to the user. When I run the app built for Ubuntu16, I include QtWebView and all works well. However, when I try to build for RPi. the include of QtWebView fails to compile.

    #SLY TODO: Fix webview for RPI
    QT += core quick serialport quickcontrols2 sql webview

    int main(int argc, char *argv[])
    {
    //remove previous log files
    QFile::remove("/acx/logs/log.main");
    QFile::remove("/acx/logs/log.comm");
    QGuiApplication app(argc, argv);
    //SLY TODO FIX for RPI:
    QtWebView::initialize();

    import QtWebView 1.1

    The error is invalid module. Qt was build from 5.7 everywhere source and should have contained all modules. If I try to compile just the qtwebkit-opensource-src-5.7.0 I get errors such as The WebKit build was disabled for the following reasons:
    * ICU is required.
    * Missing gperf from PATH
    * Missing bison from PATH
    * Missing flex from PATH

    I understand this module is not the preferred solution BUT can anyone help me get it to work on RPi so that I don't have to move to 5.8 just now??
    Many Thanks!

    PS My intent is to use the network module as well. Will I have similar problem?

    jsulmJ S 2 Replies Last reply
    0
    • S sly110

      All,
      I have a Qt5.7 app being developed for Raspberry Pi 3. There is a need to display HTML help files to the user. When I run the app built for Ubuntu16, I include QtWebView and all works well. However, when I try to build for RPi. the include of QtWebView fails to compile.

      #SLY TODO: Fix webview for RPI
      QT += core quick serialport quickcontrols2 sql webview

      int main(int argc, char *argv[])
      {
      //remove previous log files
      QFile::remove("/acx/logs/log.main");
      QFile::remove("/acx/logs/log.comm");
      QGuiApplication app(argc, argv);
      //SLY TODO FIX for RPI:
      QtWebView::initialize();

      import QtWebView 1.1

      The error is invalid module. Qt was build from 5.7 everywhere source and should have contained all modules. If I try to compile just the qtwebkit-opensource-src-5.7.0 I get errors such as The WebKit build was disabled for the following reasons:
      * ICU is required.
      * Missing gperf from PATH
      * Missing bison from PATH
      * Missing flex from PATH

      I understand this module is not the preferred solution BUT can anyone help me get it to work on RPi so that I don't have to move to 5.8 just now??
      Many Thanks!

      PS My intent is to use the network module as well. Will I have similar problem?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @sly110 Well, do what it tells you you should do:

      • Install Lib ICU
      • Install gperf
      • Install bison
      • Install flex

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • S sly110

        All,
        I have a Qt5.7 app being developed for Raspberry Pi 3. There is a need to display HTML help files to the user. When I run the app built for Ubuntu16, I include QtWebView and all works well. However, when I try to build for RPi. the include of QtWebView fails to compile.

        #SLY TODO: Fix webview for RPI
        QT += core quick serialport quickcontrols2 sql webview

        int main(int argc, char *argv[])
        {
        //remove previous log files
        QFile::remove("/acx/logs/log.main");
        QFile::remove("/acx/logs/log.comm");
        QGuiApplication app(argc, argv);
        //SLY TODO FIX for RPI:
        QtWebView::initialize();

        import QtWebView 1.1

        The error is invalid module. Qt was build from 5.7 everywhere source and should have contained all modules. If I try to compile just the qtwebkit-opensource-src-5.7.0 I get errors such as The WebKit build was disabled for the following reasons:
        * ICU is required.
        * Missing gperf from PATH
        * Missing bison from PATH
        * Missing flex from PATH

        I understand this module is not the preferred solution BUT can anyone help me get it to work on RPi so that I don't have to move to 5.8 just now??
        Many Thanks!

        PS My intent is to use the network module as well. Will I have similar problem?

        S Offline
        S Offline
        sly110
        wrote on last edited by
        #3

        I will pursue ambershark's comment about a clean environment.
        Just an addendum. I was able to make Qt5.8 by skipping QtSerialBus BUT in the make install portion I had errors re: information does not exist and may others. I believe my sysroot is incomplete.
        Thanks all

        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