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. Compiling QtWebView (Tech Preview)

Compiling QtWebView (Tech Preview)

Scheduled Pinned Locked Moved Mobile and Embedded
10 Posts 5 Posters 4.7k Views 1 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.
  • T Offline
    T Offline
    TioRoy
    wrote on last edited by
    #1

    I'm trying compile "qtwebview":https://qt.gitorious.org/qt/qtwebview for Android, announced "here":http://blog.qt.digia.com/blog/2014/08/20/adding-lgpl-v3-to-qt/?utm_source=rss&utm_medium=rss&utm_campaign=adding-lgpl-v3-to-qt on Windows.

    After "mingw32-make install", everything seems ok.

    But QtCreator doesn't recognize "import QtWebView 1.0".

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      I haven't tested yet the qml part and it might be a silly question but did you add QT += webview in your pro file ?

      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
      • C Offline
        C Offline
        c0d3
        wrote on last edited by
        #3

        Hey, I have the same problems on linux! QML is still not working?
        build qtwebview from scratch, added webview to pro ...
        what I am doing wrong? :)

        big thx

        1 Reply Last reply
        0
        • metaDomM Offline
          metaDomM Offline
          metaDom
          wrote on last edited by
          #4

          hey could you explain how you compile it at all? i didnt add a new submodule yet, what i tried is the following:

          i have my Qt5.4 sources in C:\Qt\Qt5.4\src. i added the qtwebview in the same folder.

          @C:\Qt\Qt5.4\src\qtwebview>C:\Qt\Qt5.4\src\qtbase\bin\qmake.exe

          C:\Qt\Qt5.4\src\qtwebview>mingw32-make.exe@

          this brings up the following error for me:

          @make (e=2): The system cannot find the file specified.
          Makefile:2635: recipe for target '.obj/qwebview_android.obj' failed
          mingw32-make[2]: *** [.obj/qwebview_android.obj] Error 2
          mingw32-make[2]: Leaving directory 'C:/Qt/Qt5.4/src/qtwebview/src/webview'
          Makefile:44: recipe for target 'sub-webview-make_first' failed
          mingw32-make[1]: *** [sub-webview-make_first] Error 2
          mingw32-make[1]: Leaving directory 'C:/Qt/Qt5.4/src/qtwebview/src'
          Makefile:43: recipe for target 'sub-src-make_first' failed
          mingw32-make.exe: *** [sub-src-make_first] Error 2@

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Where did you got your version of QtWebView ?

            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
            • metaDomM Offline
              metaDomM Offline
              metaDom
              wrote on last edited by
              #6

              https://qt.gitorious.org/qt/qtwebview/source/e849a5de6046ccaf2e76e636d640ec322ed87f45:

              [quote author="SGaist" date="1410291464"]Where did you got your version of QtWebView ?[/quote]

              1 Reply Last reply
              0
              • A Offline
                A Offline
                AlGrenadine
                wrote on last edited by
                #7

                Hello,
                I'm having the same problem, i can't build QtWebView for android.
                It builds ok on win desktop though...

                1 Reply Last reply
                0
                • T Offline
                  T Offline
                  TioRoy
                  wrote on last edited by
                  #8

                  bq. Hi,
                  I haven’t tested yet the qml part and it might be a silly question but did you add QT += webview in your pro file ?

                  Yes.

                  If I start a new project, put in .pro, QtCreator shows an error at line "import QtWebView 1.0": QML module does not contain information about components contained in plugins. Module path: ..........)

                  !http://s14.postimg.org/vgxg8zt2p/screenshot_33.png(Before load qtwebview project)!

                  But If I load the qtwebview project in QtCreator, the error dissapear:

                  !http://s14.postimg.org/p4iaz5q0h/screenshot_34.png(After)!

                  Look at the deploy dir (in my case c:\Quati\develop\build\qt5.4\android_armv7\qml\QtWebView), the file plugins.qmltypes is missing.

                  1 Reply Last reply
                  0
                  • SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on last edited by
                    #9

                    Did you call make install after building ?

                    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
                    • T Offline
                      T Offline
                      TioRoy
                      wrote on last edited by
                      #10

                      bq. Did you call make install after building ?

                      First post.

                      Yes

                      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