Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt WebKit
  4. Building QtWebKit for Qt 5.7 win32-msvc2015
Forum Updated to NodeBB v4.3 + New Features

Building QtWebKit for Qt 5.7 win32-msvc2015

Scheduled Pinned Locked Moved Unsolved Qt WebKit
qtwebkitqt5.7
12 Posts 3 Posters 6.1k 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.
  • P Offline
    P Offline
    Peppy
    wrote on 13 Aug 2016, 14:03 last edited by
    #1

    Hello guys, did anyone build QtWebKit module for Qt 5.7 (win32-msvc2015)? I set SQLITE3SRCDIR, set ICU location, but qmake/makefile is somewhat hesistant to build anything, here is what are they complaining about not having the right functions:

    Reading C:/qtwebkit-opensource-src-5.7.0/qtwebkit-opensource-src-5.7.0/Source/QtWebKit.pro
    C:/qtwebkit-opensource-src-5.7.0/qtwebkit-opensource-src-5.7.0/Source/QtWebKit.pro:13: 'build?' is not a recognized test function.
    C:/qtwebkit-opensource-src-5.7.0/qtwebkit-opensource-src-5.7.0/Source/QtWebKit.pro:18: 'build?' is not a recognized test function.
    C:/qtwebkit-opensource-src-5.7.0/qtwebkit-opensource-src-5.7.0/Source/QtWebKit.pro:34: 'have?' is not a recognized test function.
    C:/qtwebkit-opensource-src-5.7.0/qtwebkit-opensource-src-5.7.0/Source/QtWebKit.pro:36: 'build?' is not a recognized test function.
     Reading C:/qtwebkit-opensource-src-5.7.0/qtwebkit-opensource-src-5.7.0/Source/api.pri
    C:/qtwebkit-opensource-src-5.7.0/qtwebkit-opensource-src-5.7.0/Source/api.pri:17: 'build?' is not a recognized test function.
    C:/qtwebkit-opensource-src-5.7.0/qtwebkit-opensource-src-5.7.0/Source/api.pri:18: 'build?' is not a recognized test function.
    C:/qtwebkit-opensource-src-5.7.0/qtwebkit-opensource-src-5.7.0/Source/api.pri:22: 'build?' is not a recognized test function.
    C:/qtwebkit-opensource-src-5.7.0/qtwebkit-opensource-src-5.7.0/Source/api.pri:25: 'build?' is not a recognized test function.
    C:/qtwebkit-opensource-src-5.7.0/qtwebkit-opensource-src-5.7.0/Source/api.pri:27: 'use?' is not a recognized test function.
    C:/qtwebkit-opensource-src-5.7.0/qtwebkit-opensource-src-5.7.0/Source/api.pri:28: 'use?' is not a recognized test function.
    C:/qtwebkit-opensource-src-5.7.0/qtwebkit-opensource-src-5.7.0/Source/api.pri:45: Cannot find feature webkit_modules
    Project ERROR: Module does not define version.
    

    any idea how to fix it?

    ? K 2 Replies Last reply 13 Aug 2016, 14:15
    0
    • P Peppy
      13 Aug 2016, 14:03

      Hello guys, did anyone build QtWebKit module for Qt 5.7 (win32-msvc2015)? I set SQLITE3SRCDIR, set ICU location, but qmake/makefile is somewhat hesistant to build anything, here is what are they complaining about not having the right functions:

      Reading C:/qtwebkit-opensource-src-5.7.0/qtwebkit-opensource-src-5.7.0/Source/QtWebKit.pro
      C:/qtwebkit-opensource-src-5.7.0/qtwebkit-opensource-src-5.7.0/Source/QtWebKit.pro:13: 'build?' is not a recognized test function.
      C:/qtwebkit-opensource-src-5.7.0/qtwebkit-opensource-src-5.7.0/Source/QtWebKit.pro:18: 'build?' is not a recognized test function.
      C:/qtwebkit-opensource-src-5.7.0/qtwebkit-opensource-src-5.7.0/Source/QtWebKit.pro:34: 'have?' is not a recognized test function.
      C:/qtwebkit-opensource-src-5.7.0/qtwebkit-opensource-src-5.7.0/Source/QtWebKit.pro:36: 'build?' is not a recognized test function.
       Reading C:/qtwebkit-opensource-src-5.7.0/qtwebkit-opensource-src-5.7.0/Source/api.pri
      C:/qtwebkit-opensource-src-5.7.0/qtwebkit-opensource-src-5.7.0/Source/api.pri:17: 'build?' is not a recognized test function.
      C:/qtwebkit-opensource-src-5.7.0/qtwebkit-opensource-src-5.7.0/Source/api.pri:18: 'build?' is not a recognized test function.
      C:/qtwebkit-opensource-src-5.7.0/qtwebkit-opensource-src-5.7.0/Source/api.pri:22: 'build?' is not a recognized test function.
      C:/qtwebkit-opensource-src-5.7.0/qtwebkit-opensource-src-5.7.0/Source/api.pri:25: 'build?' is not a recognized test function.
      C:/qtwebkit-opensource-src-5.7.0/qtwebkit-opensource-src-5.7.0/Source/api.pri:27: 'use?' is not a recognized test function.
      C:/qtwebkit-opensource-src-5.7.0/qtwebkit-opensource-src-5.7.0/Source/api.pri:28: 'use?' is not a recognized test function.
      C:/qtwebkit-opensource-src-5.7.0/qtwebkit-opensource-src-5.7.0/Source/api.pri:45: Cannot find feature webkit_modules
      Project ERROR: Module does not define version.
      

      any idea how to fix it?

      ? Offline
      ? Offline
      A Former User
      wrote on 13 Aug 2016, 14:15 last edited by A Former User
      #2

      @Peppy Hi! Maybe you want to ping @agarny for this.

      1 Reply Last reply
      1
      • P Peppy
        13 Aug 2016, 14:03

        Hello guys, did anyone build QtWebKit module for Qt 5.7 (win32-msvc2015)? I set SQLITE3SRCDIR, set ICU location, but qmake/makefile is somewhat hesistant to build anything, here is what are they complaining about not having the right functions:

        Reading C:/qtwebkit-opensource-src-5.7.0/qtwebkit-opensource-src-5.7.0/Source/QtWebKit.pro
        C:/qtwebkit-opensource-src-5.7.0/qtwebkit-opensource-src-5.7.0/Source/QtWebKit.pro:13: 'build?' is not a recognized test function.
        C:/qtwebkit-opensource-src-5.7.0/qtwebkit-opensource-src-5.7.0/Source/QtWebKit.pro:18: 'build?' is not a recognized test function.
        C:/qtwebkit-opensource-src-5.7.0/qtwebkit-opensource-src-5.7.0/Source/QtWebKit.pro:34: 'have?' is not a recognized test function.
        C:/qtwebkit-opensource-src-5.7.0/qtwebkit-opensource-src-5.7.0/Source/QtWebKit.pro:36: 'build?' is not a recognized test function.
         Reading C:/qtwebkit-opensource-src-5.7.0/qtwebkit-opensource-src-5.7.0/Source/api.pri
        C:/qtwebkit-opensource-src-5.7.0/qtwebkit-opensource-src-5.7.0/Source/api.pri:17: 'build?' is not a recognized test function.
        C:/qtwebkit-opensource-src-5.7.0/qtwebkit-opensource-src-5.7.0/Source/api.pri:18: 'build?' is not a recognized test function.
        C:/qtwebkit-opensource-src-5.7.0/qtwebkit-opensource-src-5.7.0/Source/api.pri:22: 'build?' is not a recognized test function.
        C:/qtwebkit-opensource-src-5.7.0/qtwebkit-opensource-src-5.7.0/Source/api.pri:25: 'build?' is not a recognized test function.
        C:/qtwebkit-opensource-src-5.7.0/qtwebkit-opensource-src-5.7.0/Source/api.pri:27: 'use?' is not a recognized test function.
        C:/qtwebkit-opensource-src-5.7.0/qtwebkit-opensource-src-5.7.0/Source/api.pri:28: 'use?' is not a recognized test function.
        C:/qtwebkit-opensource-src-5.7.0/qtwebkit-opensource-src-5.7.0/Source/api.pri:45: Cannot find feature webkit_modules
        Project ERROR: Module does not define version.
        

        any idea how to fix it?

        K Offline
        K Offline
        Konstantin Tokarev
        wrote on 13 Aug 2016, 16:42 last edited by
        #3

        @Peppy Can it be that you are using qmake from Qt 4 to build it?

        P 1 Reply Last reply 13 Aug 2016, 17:10
        0
        • K Konstantin Tokarev
          13 Aug 2016, 16:42

          @Peppy Can it be that you are using qmake from Qt 4 to build it?

          P Offline
          P Offline
          Peppy
          wrote on 13 Aug 2016, 17:10 last edited by
          #4

          @Konstantin-Tokarev I'm not using Qt 4 since Qt 5 was released.

          K 1 Reply Last reply 13 Aug 2016, 17:11
          0
          • P Peppy
            13 Aug 2016, 17:10

            @Konstantin-Tokarev I'm not using Qt 4 since Qt 5 was released.

            K Offline
            K Offline
            Konstantin Tokarev
            wrote on 13 Aug 2016, 17:11 last edited by
            #5

            @Peppy Ok, next try: you are building Source/QtWebKit.pro instead of top-level WebKit.pro

            P 1 Reply Last reply 13 Aug 2016, 17:36
            0
            • K Konstantin Tokarev
              13 Aug 2016, 17:11

              @Peppy Ok, next try: you are building Source/QtWebKit.pro instead of top-level WebKit.pro

              P Offline
              P Offline
              Peppy
              wrote on 13 Aug 2016, 17:36 last edited by Peppy
              #6

              @Konstantin-Tokarev I'm building it via command line. i.e.:

              C:\Qt\5.7\...\bin\qmake.exe -r CONFIG+=release 
              

              the variables are set to

              PATH=C:\icu\lib;C:\icu\include;C:\...
              SQLITE3SRCDIR=C:\Qt\5.7\...\Src\qtbase\src\3rdparty\sqlite
              

              and by the way, that's not the whole output. It's much more longer, but I've truncated it.

              1 Reply Last reply
              0
              • P Offline
                P Offline
                Peppy
                wrote on 14 Aug 2016, 11:58 last edited by Peppy
                #7

                Okay, few updates:

                • Needed msys64, ruby and python, after installing msys64, install via pacman -Sy python ruby
                • QMAKE still can't find ICU even if I added them into path. (ping @Konstantin-Tokarev)
                1 Reply Last reply
                0
                • K Offline
                  K Offline
                  Konstantin Tokarev
                  wrote on 14 Aug 2016, 14:17 last edited by
                  #8

                  When building on Windows, you should add ICU paths to INCLUDE and LIBS environment variables.

                  BTW, it may make more sense for you to build new QtWebKit from https://github.com/annulen/webkit (see https://github.com/annulen/webkit/wiki/Building-QtWebKit-on-Windows for build instructions).

                  P 1 Reply Last reply 14 Aug 2016, 15:34
                  0
                  • K Konstantin Tokarev
                    14 Aug 2016, 14:17

                    When building on Windows, you should add ICU paths to INCLUDE and LIBS environment variables.

                    BTW, it may make more sense for you to build new QtWebKit from https://github.com/annulen/webkit (see https://github.com/annulen/webkit/wiki/Building-QtWebKit-on-Windows for build instructions).

                    P Offline
                    P Offline
                    Peppy
                    wrote on 14 Aug 2016, 15:34 last edited by
                    #9

                    @Konstantin-Tokarev Why would I use that branch?

                    INCLUDEPATH and LIBS somehow does not work... I will try to tinker with it today again.

                    1 Reply Last reply
                    0
                    • K Offline
                      K Offline
                      Konstantin Tokarev
                      wrote on 14 Aug 2016, 16:31 last edited by
                      #10

                      Because it is based on WebKit revision from 2016 (not from 2013, as in 5.7), and it has seen a lot of testing with MSVC 2015 (I'm not sure if 5.7 has all necessary patches, e.g. this may be needed: https://github.com/Vitallium/qtwebkit/commit/4cd12f3ec460a38bfb15a78beb1ec27fe6aebd60)

                      P 1 Reply Last reply 14 Aug 2016, 17:47
                      0
                      • K Konstantin Tokarev
                        14 Aug 2016, 16:31

                        Because it is based on WebKit revision from 2016 (not from 2013, as in 5.7), and it has seen a lot of testing with MSVC 2015 (I'm not sure if 5.7 has all necessary patches, e.g. this may be needed: https://github.com/Vitallium/qtwebkit/commit/4cd12f3ec460a38bfb15a78beb1ec27fe6aebd60)

                        P Offline
                        P Offline
                        Peppy
                        wrote on 14 Aug 2016, 17:47 last edited by
                        #11

                        @Konstantin-Tokarev what exactly do I have to link? How the LIBS variable should look like.

                        1 Reply Last reply
                        0
                        • K Offline
                          K Offline
                          Konstantin Tokarev
                          wrote on 14 Aug 2016, 19:45 last edited by
                          #12

                          My bad, it's actually "LIB", not "LIBS". It should contain semicolon-separated list of directories where libraries can be searched

                          1 Reply Last reply
                          0

                          2/12

                          13 Aug 2016, 14:15

                          10 unread
                          • Login

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