Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Cannot build from source (v5.5.0 tag) - method "setSourceRect" in class "QSGSimpleTextureNode" not found
QtWS25 Last Chance

Cannot build from source (v5.5.0 tag) - method "setSourceRect" in class "QSGSimpleTextureNode" not found

Scheduled Pinned Locked Moved Unsolved General and Desktop
building qt5.5setsourcerect
23 Posts 2 Posters 8.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.
  • T Offline
    T Offline
    Thomas233
    wrote on last edited by Thomas233
    #14

    Btw in the meantime I made another approach (maybe this is an alternative?):

    On my compilation machine I built the qtwebengine again like here: https://wiki.qt.io/How_to_Try_QtWebEngine (checked out from 5.5 branch).

    Then I copied the created libs for webengine over to the existing installation (Qt 5.5.1 default) on my developer machine to the "lib" directory and overwrite the existing ones (QtWebEnigineCore.so.5 and so on).

    Before this, I could compile my app without problems.
    After this step, QtCreator complains about "undefined reference to dbus_connection_unref @LIBDBUS_1_3" when compiling/linking.

    I only want to run my app with a custom build of webengine so I do not really need a complete custom build of Qt at all.

    Is there any way to compile the webengine so that it is compatible to qt 5.5 standard installation or do I need some specific flags when building to make compatible libraries which I can copy over then ?

    Thank you !

    1 Reply Last reply
    0
    • T Offline
      T Offline
      Thomas233
      wrote on last edited by
      #15

      Hi,

      i am maybe coming closer to what is causing the problem for the full build which i have described two posts ahead (not the webengine-only build from prior post).
      On the developer machine where I also copied the built over to, Qt Creator says the build is not installed correctly when referencing it`s path. However, I found out the error message for this is: "No mkspec could be found for this version".
      The directory "mkspecs" is existing and has sub-directories in the installation path.
      What does that message with mkspec mean ?? I have no clue!

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

        One thing: you can't just move Qt around like that. If you copy your build to anther machine, you have to put it in the same place in that new machine.

        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
          Thomas233
          wrote on last edited by
          #17

          Yeah thanks just got that about an hour ago. Thats real learning by doing :-(
          I`ve read so many posts and wikis now but nowhere I could find that information or I have just overread it, sorry.

          However, I have now managed it to get the installation into QtCreator so that it has been accepted and the mkspec error has gone away.

          Now the next problem is that when I try to compile it on the developer machine using my custom build i get the following compilation error:
          Unknown modules in QT: webenginewidgets

          I guess this is because - as described earlier - all libs of the webengine and so on were NOT copied to the output directory (sort of build without webengine even if it was definitley built).
          I copied the libs then over manually from the source dir but I fear this isn`t the only thing to do. But why were they not copied automatically when webengine was built ??

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

            That's strange…

            If you run your Qt built qmake just to configure the build of the QtWebEngine module, what do you get on the console ?

            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
              Thomas233
              wrote on last edited by Thomas233
              #19

              Hi,

              you mean when I start qmake in the "qtwebengine" directory after I run configure ?

              Btw does it have any effect when I run qmake in the "qtwebengine" directory after the "configure" and before the "make" commands (for example to modify a GYP variable) ?

              1 Reply Last reply
              0
              • T Offline
                T Offline
                Thomas233
                wrote on last edited by
                #20

                Pah, that`s it...

                If I run qmake in the "qtwebengine" dir after configure it doesn`t copy the webengine libs to installation path.
                If I build it without running qmake before, the webengine libraries are also copied :-)

                But this is my problem:
                I need to build chromium/webengine with support for system ffmpeg, how can I archive this without using qmake as it makes those big problems ?
                The only solution i`ve found out is that you can pass it to qt by running qmake with "qmake -r WEBENGINE_CONFIG += use_system_ffmpeg" in the webengine dir is there another way to modify the Gyp variables ?

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

                  You can edit the linux.pri file and remove the test from the ffmpeg line

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

                  T 1 Reply Last reply
                  0
                  • SGaistS SGaist

                    You can edit the linux.pri file and remove the test from the ffmpeg line

                    T Offline
                    T Offline
                    Thomas233
                    wrote on last edited by
                    #22

                    @SGaist Hi! Where is the file located exactly? I can only find a "desktop_linux.pri" file in the config-dir but there is no line with ffmpeg and test ?

                    1 Reply Last reply
                    0
                    • T Offline
                      T Offline
                      Thomas233
                      wrote on last edited by
                      #23

                      Nevermind!

                      Finally managed it to get a build with webengine. You have just to execute the "qmake -r WEBENGINE_CONFIG+=use_system_ffmpeg" BEFORE ".configure" then it works :-p

                      I`ve deployed the build over to development machine without problems.

                      There are now just two compiler errors left which I think can be solved:

                      1. libicu18n.so.55 not found (I think i can solve it by installing a icu18n-5 package if there are any?)
                      2. Undefined references to dbus: "dbus connection unref" and so on, much more errors referencing to dbus (this is actually coming from webengine)

                      How can I make a build which does not use libicu and dbus or at least uses system ones (if that helps in my case) ?

                      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