Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for WebAssembly
  4. Testing example minimal.pro fails with a fatal compile error
Forum Updated to NodeBB v4.3 + New Features

Testing example minimal.pro fails with a fatal compile error

Scheduled Pinned Locked Moved Unsolved Qt for WebAssembly
11 Posts 4 Posters 992 Views 2 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.
  • L Lineaxe

    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/minimal

    I 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

    jsulmJ Offline
    jsulmJ Offline
    jsulm
    Lifetime Qt Champion
    wrote on last edited by
    #2

    @Lineaxe Are you really sure you installed the Qt Webengine Widgets module? And do you have another Qt version installed?

    https://forum.qt.io/topic/113070/qt-code-of-conduct

    L 1 Reply Last reply
    1
    • jsulmJ jsulm

      @Lineaxe Are you really sure you installed the Qt Webengine Widgets module? And do you have another Qt version installed?

      L Offline
      L Offline
      Lineaxe
      wrote on last edited by
      #3

      @jsulm

      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

      JonBJ 1 Reply Last reply
      0
      • L Lineaxe

        @jsulm

        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

        JonBJ Offline
        JonBJ Offline
        JonB
        wrote on last edited by
        #4

        @Lineaxe said in Testing example minimal.pro fails with a fatal compile error:

        MSVC 2019 64 bit
        MInGW 11.20 64bit

        You show two compilers. Which one do you use where? Qt Web Engine under Windows requires MSVC, not MinGW, compiler.

        L 1 Reply Last reply
        0
        • JonBJ JonB

          @Lineaxe said in Testing example minimal.pro fails with a fatal compile error:

          MSVC 2019 64 bit
          MInGW 11.20 64bit

          You show two compilers. Which one do you use where? Qt Web Engine under Windows requires MSVC, not MinGW, compiler.

          L Offline
          L Offline
          Lineaxe
          wrote on last edited by Lineaxe
          #5

          @JonB

          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 :)

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

            Hi,

            Are you really trying to use the webengine module for an application that you want to build for the WebAssembly platform ?

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

            L 1 Reply Last reply
            1
            • SGaistS SGaist

              Hi,

              Are you really trying to use the webengine module for an application that you want to build for the WebAssembly platform ?

              L Offline
              L Offline
              Lineaxe
              wrote on last edited by Lineaxe
              #7

              @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.

              SGaistS 1 Reply Last reply
              0
              • L Lineaxe

                @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.

                SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #8

                @Lineaxe Did you install Visual Studio or at least the C++ tools ?

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

                L 1 Reply Last reply
                0
                • SGaistS SGaist

                  @Lineaxe Did you install Visual Studio or at least the C++ tools ?

                  L Offline
                  L Offline
                  Lineaxe
                  wrote on last edited by Lineaxe
                  #9

                  @SGaist

                  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 ?

                  SGaistS 1 Reply Last reply
                  0
                  • L Lineaxe

                    @SGaist

                    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 ?

                    SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on last edited by
                    #10

                    @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.

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

                    L 1 Reply Last reply
                    1
                    • SGaistS SGaist

                      @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.

                      L Offline
                      L Offline
                      Lineaxe
                      wrote on last edited by
                      #11

                      @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++ .

                      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