Cannot build from source (v5.5.0 tag) - method "setSourceRect" in class "QSGSimpleTextureNode" not found
-
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 !
-
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! -
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.
-
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: webenginewidgetsI 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 ?? -
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 ?
-
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) ?
-
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 ? -
You can edit the linux.pri file and remove the test from the ffmpeg line
-
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:
- libicu18n.so.55 not found (I think i can solve it by installing a icu18n-5 package if there are any?)
- 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) ?