Testing example minimal.pro fails with a fatal compile error
-
Hello I am testing some of the examples using Webengine,WebAssembley and other components.
The project I downloaded and tried to compile is called minimal.pro.I have all the modules needed installed into this copy of Qt 6.4.3.
When I hit compile I get this Fatal error which stops the compiling.
:-1: error: Unknown module(s) in QT: webenginewidgets
Here is the .pro file for it and I am wondering if I have to install all the
components somewheres in a folder that is referenced .
target.path = $$[QT_INSTALL_EXAMPLES]/webenginewidgets/minimalI could not find instructions on how to make these examples work and NO working compiled ones to learn from. I am wondering what step had told to me PUT these files into that folder location (/webenginewidgets/minimal) in the first place as I can't find the folders anywhere on my computer.
I am looking for a minimal install of a browser and would like to know if the target path in the project file is causing the fatal error??? I would like to use the code inside the same Widget base project that I have already created , but I will link to the code created thru a named pipe or socket if I find I really need to.minimal.pro
TEMPLATE = app
QT += webenginewidgets
SOURCES += main.cpp
target.path = $$[QT_INSTALL_EXAMPLES]/webenginewidgets/minimal
INSTALLS += target -
Hello ,I went into maintenance and loaded all the modules needed I believe.
here is what I have, I cannot find a Widgets module to install Anywhere with the choices that I am given. I have successfully used Qt WebSockets in other projects.
MSVC 2019 64 bit
MInGW 11.20 64bit
Qt Positioning
Qt WebChannel
Qt WebEngine
Qt WebSockets
Qt WebView -
yes I had tried compiling it under that compiler& kit but had problems with using it as it has an exclamation mark in red with no explanation of what (module) it wants?
it says : No compiler can create code for this Qt version? s
What am I supposed to do with that message, I wonder?The other compiler I think is required for the Windows forms and whatnot to compile but I am not sure that it would not compile with MSVC after all the other issues get resolved :)
-
Hi,
Are you really trying to use the webengine module for an application that you want to build for the WebAssembly platform ?
-
@SGaist
No, these projects will be separate and I plan to use inter-process communication between the separate exe files. Probably a pipe or socket of some type.I have not compiled anything using the Web engine yet . From what I have read up on it so far I will have to compile it separately from my forms-based (widgets) project.
Now, In this thread I did type in both compiler names as they are the choices which came up when I was fooling around and trying to compile the output.
I think I must be missing a link to the proper compiler for the MSVC 2019 64 bit or something of that nature since it is flagging an error saying it can't find one. -
Hi I am using Qt and did not know I needed to install another IDE such as Visual Studio. I already have Atom and Eclipse installed and am trying to keep overall memory usage down on this computer. I could uninstall Atom I guess for a while If I do need Visual Studio to compile and run these examples.
Now the C++ tools should be 'free' to download I would think :) I will go hunt for
Visual Studio C++ tools .
Glad to see you are still one of the Gurus around these parts :)
MSVC = MicrosoftVisualC++ or something like that ? -
@Lineaxe you do not need visual studio "the ide" to be installed currently. Microsoft has split of the C++ tools in a separate package that you can install directly so you don't have to get the whole thing as it was a long time ago.
Yes but in separate words.
-
@SGaist
Hi, I do remember that they did that split . The tools portion is fairly large by itself, but I am also tempted to look over the IDE as it has been some time. Overall, I am just a Hobby type of programmer & lately I have been playing around in Lua code ~for the dcs online flight sim's missions . I was impressed with the language itself :) Anyhow,not using the Atom IDE lately, so a quick switch to Visual Studio sounds like a plan. Maybe it will install a bunch of it onto the 2nd drive (a SSD) !
Qt 6.4 itself is looking pretty kewl, a lot more features than the last time I programmed in C++ .