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. Help regarding QRemoteObject.
Forum Updated to NodeBB v4.3 + New Features

Help regarding QRemoteObject.

Scheduled Pinned Locked Moved Solved General and Desktop
28 Posts 4 Posters 3.2k 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 Pradson

    @jsulm

    I have installed emscripten but Qt for WebAssembly option is not available in the MaintenanceTool of the Qt5.15.10 LTS. I have attached screenshot herewith. WebAssembly.png

    Kindly check and suggest.
    Thanks,

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

    @Pradson Is it really all you see there? Usually you would for example also see Qt for MinGW. Is it offline installation?

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

    P 1 Reply Last reply
    0
    • jsulmJ jsulm

      @Pradson Is it really all you see there? Usually you would for example also see Qt for MinGW. Is it offline installation?

      P Offline
      P Offline
      Pradson
      wrote on last edited by Pradson
      #15

      @jsulm

      Hi,
      Thanks a lot for reply.

      I had installed Qt version "qt-enterprise-windows-x86-5.15.10" . It is offline installer. I can not go with MinGW, as I had told you earlier. I will have to prefer VisualStudio compiler (MSVC) because my current product is based on MSVC.

      I would like to explain my requirement once again-
      I have a product which is based on Qt5.15/C++. I am using MSVC binaries of Qt5.15. This means I have build my product using VisualStudio Compiler (MSVC). My product has QtWidgets UIs as well and I have to visualize those UIs in both desktop as well as in web. Is it possible using Qt for WebAssembly ? Is there any other method available?

      **Please Note: ** I have to go with MSVC compiler.

      Thanks,

      jsulmJ 1 Reply Last reply
      0
      • P Pradson

        @jsulm

        Hi,
        Thanks a lot for reply.

        I had installed Qt version "qt-enterprise-windows-x86-5.15.10" . It is offline installer. I can not go with MinGW, as I had told you earlier. I will have to prefer VisualStudio compiler (MSVC) because my current product is based on MSVC.

        I would like to explain my requirement once again-
        I have a product which is based on Qt5.15/C++. I am using MSVC binaries of Qt5.15. This means I have build my product using VisualStudio Compiler (MSVC). My product has QtWidgets UIs as well and I have to visualize those UIs in both desktop as well as in web. Is it possible using Qt for WebAssembly ? Is there any other method available?

        **Please Note: ** I have to go with MSVC compiler.

        Thanks,

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

        @Pradson If it is offline installer you will need to download offline installer for WebAssembly or use online installer. As commercial user you can also ask Qt Company for support.
        I did not suggest to use MinGW, it was just an example for what you usually see in the maintenance tool...

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

        P 1 Reply Last reply
        0
        • jsulmJ jsulm

          @Pradson If it is offline installer you will need to download offline installer for WebAssembly or use online installer. As commercial user you can also ask Qt Company for support.
          I did not suggest to use MinGW, it was just an example for what you usually see in the maintenance tool...

          P Offline
          P Offline
          Pradson
          wrote on last edited by
          #17

          @jsulm

          Hi,

          As suggested, I have installed Qt5.15.10(MSVC2017 binaries) with all necessary packages including WebAssembly using online installer. I have create a sample QWidget UI application named "CalculatorOnWeb" and I am able to build successfully using the kit Qt 5.15.10 (msvc2019_64) . But when I select kit WebAssembly Qt 5.15.10, then getting errors-

          Could not start process "mingw32-make.exe" -f C:/SE_CODE/Qt_related/QtForWebAssembly/CalculatorOnWeb/Makefile qmake_all.
          Error while building/deploying project CalculatorOnWeb (kit: WebAssembly Qt 5.15.10)
          When executing step "qmake"
          

          Even when I tries to clean this project, then getting this error-

          Could not start process "mingw32-make.exe" clean -j16.
          Error while building/deploying project CalculatorOnWeb (kit: WebAssembly Qt 5.15.10)
          When executing step "Make"
          

          I have attached a screenshot herewith related to configuration of WebAssembly.
          WebAssemblySettings.png
          It is asking for MinGW and I can not go with MinGW as I had told you earlier. Please suggest about these errors.

          Thanks,
          Pradson

          jsulmJ 1 Reply Last reply
          0
          • P Pradson

            @jsulm

            Hi,

            As suggested, I have installed Qt5.15.10(MSVC2017 binaries) with all necessary packages including WebAssembly using online installer. I have create a sample QWidget UI application named "CalculatorOnWeb" and I am able to build successfully using the kit Qt 5.15.10 (msvc2019_64) . But when I select kit WebAssembly Qt 5.15.10, then getting errors-

            Could not start process "mingw32-make.exe" -f C:/SE_CODE/Qt_related/QtForWebAssembly/CalculatorOnWeb/Makefile qmake_all.
            Error while building/deploying project CalculatorOnWeb (kit: WebAssembly Qt 5.15.10)
            When executing step "qmake"
            

            Even when I tries to clean this project, then getting this error-

            Could not start process "mingw32-make.exe" clean -j16.
            Error while building/deploying project CalculatorOnWeb (kit: WebAssembly Qt 5.15.10)
            When executing step "Make"
            

            I have attached a screenshot herewith related to configuration of WebAssembly.
            WebAssemblySettings.png
            It is asking for MinGW and I can not go with MinGW as I had told you earlier. Please suggest about these errors.

            Thanks,
            Pradson

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

            @Pradson I don't use WebAssembly, so not sure. But it looks like for WebAssembly MinGW tool chain is used. So, try to install it via Qt Maintenance Tool. msvc2019_64 Qt has nothing to do with Qt for WebAssembly, it is for native Windows builds.

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

            P 1 Reply Last reply
            0
            • jsulmJ jsulm

              @Pradson I don't use WebAssembly, so not sure. But it looks like for WebAssembly MinGW tool chain is used. So, try to install it via Qt Maintenance Tool. msvc2019_64 Qt has nothing to do with Qt for WebAssembly, it is for native Windows builds.

              P Offline
              P Offline
              Pradson
              wrote on last edited by
              #19

              @jsulm

              Hi,
              Thanks for prompt reply.

              How will I install the WebAssembly MSVC tool chain ? I am unable to find the proper package from online installer. I am sharing the screenshot of MaintenanceTool. Please suggest which package is required to install.
              Qt5.15.10_Packages-1.png

              Qt5.15.10_Packages-2.png

              Qt5.15.10_Packages-3.png

              Thanks,
              Pradson

              jsulmJ 1 Reply Last reply
              0
              • P Pradson

                @jsulm

                Hi,
                Thanks for prompt reply.

                How will I install the WebAssembly MSVC tool chain ? I am unable to find the proper package from online installer. I am sharing the screenshot of MaintenanceTool. Please suggest which package is required to install.
                Qt5.15.10_Packages-1.png

                Qt5.15.10_Packages-2.png

                Qt5.15.10_Packages-3.png

                Thanks,
                Pradson

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

                @Pradson I don't think there is such a thing as "WebAssembly MSVC tool chain". WebAssembly uses Enscrypten as compiler as far as I know, not MS VC++. SO, again: try to install MinGW (I mean only the tool chain not Qt for MinGW).

                Please take a look at https://doc.qt.io/qt-5/wasm.html

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

                P 1 Reply Last reply
                0
                • jsulmJ jsulm

                  @Pradson I don't think there is such a thing as "WebAssembly MSVC tool chain". WebAssembly uses Enscrypten as compiler as far as I know, not MS VC++. SO, again: try to install MinGW (I mean only the tool chain not Qt for MinGW).

                  Please take a look at https://doc.qt.io/qt-5/wasm.html

                  P Offline
                  P Offline
                  Pradson
                  wrote on last edited by
                  #21

                  @jsulm

                  Hi,

                  Thanks a lot for your kind help.

                  As suggest, I have installed MinGW 4.4 32 bit under the section Developer and Designer Tools as I attached a screenshot herewith.
                  Qt5.15.10_Packages-4.png
                  The sample program built successfully and able to open in web browser. I am still confuse what is the use of MinGW as tool chain?

                  Could you explain me in brief or can share the related links so that I could clear my doubt.

                  Thanks,
                  Pradson

                  jsulmJ 1 Reply Last reply
                  0
                  • P Pradson

                    @jsulm

                    Hi,

                    Thanks a lot for your kind help.

                    As suggest, I have installed MinGW 4.4 32 bit under the section Developer and Designer Tools as I attached a screenshot herewith.
                    Qt5.15.10_Packages-4.png
                    The sample program built successfully and able to open in web browser. I am still confuse what is the use of MinGW as tool chain?

                    Could you explain me in brief or can share the related links so that I could clear my doubt.

                    Thanks,
                    Pradson

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

                    @Pradson said in Help regarding QRemoteObject.:

                    I am still confuse what is the use of MinGW as tool chain?

                    Well, if you take a closer look at the error you posted before you will find the answer: Could not start process "mingw32-make.exe"
                    make from MinGW installation is used to build the project. Maybe also some other tools.

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

                    P 1 Reply Last reply
                    0
                    • jsulmJ jsulm

                      @Pradson said in Help regarding QRemoteObject.:

                      I am still confuse what is the use of MinGW as tool chain?

                      Well, if you take a closer look at the error you posted before you will find the answer: Could not start process "mingw32-make.exe"
                      make from MinGW installation is used to build the project. Maybe also some other tools.

                      P Offline
                      P Offline
                      Pradson
                      wrote on last edited by
                      #23

                      @jsulm

                      Hi,

                      I am facing some windows related errors when I build my module using Emscripted and Qt for WebAssembly. These errors are mentioned below.

                      error: unknown type name 'HINSTANCE'
                      fatal error: 'Windows.h' file not found
                      

                      Kindly suggest regarding the same.

                      Thanks,
                      Pradson

                      jsulmJ 1 Reply Last reply
                      0
                      • P Pradson

                        @jsulm

                        Hi,

                        I am facing some windows related errors when I build my module using Emscripted and Qt for WebAssembly. These errors are mentioned below.

                        error: unknown type name 'HINSTANCE'
                        fatal error: 'Windows.h' file not found
                        

                        Kindly suggest regarding the same.

                        Thanks,
                        Pradson

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

                        @Pradson said in Help regarding QRemoteObject.:

                        Kindly suggest regarding the same.

                        Are you using Windows APIs directly in your app? Those are of course not available in WebAssembly.

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

                        P 1 Reply Last reply
                        0
                        • jsulmJ jsulm

                          @Pradson said in Help regarding QRemoteObject.:

                          Kindly suggest regarding the same.

                          Are you using Windows APIs directly in your app? Those are of course not available in WebAssembly.

                          P Offline
                          P Offline
                          Pradson
                          wrote on last edited by
                          #25

                          @jsulm

                          Hi,
                          Thanks for reply.

                          I have read below mentioned post-
                          lorn.potter 27 Dec 2021, 13:27
                          windows.h is not part of the emscripten sdk, as it does not have the Javascript port of the windows API. You could port those parts to Qt or SDL.

                          Is any other option so that I could use windows API?

                          Thanks,
                          Pradson

                          jsulmJ 1 Reply Last reply
                          0
                          • P Pradson

                            @jsulm

                            Hi,
                            Thanks for reply.

                            I have read below mentioned post-
                            lorn.potter 27 Dec 2021, 13:27
                            windows.h is not part of the emscripten sdk, as it does not have the Javascript port of the windows API. You could port those parts to Qt or SDL.

                            Is any other option so that I could use windows API?

                            Thanks,
                            Pradson

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

                            @Pradson I don't know any other option except searching on internet to see what you can do

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

                            P 1 Reply Last reply
                            0
                            • jsulmJ jsulm

                              @Pradson I don't know any other option except searching on internet to see what you can do

                              P Offline
                              P Offline
                              Pradson
                              wrote on last edited by
                              #27

                              @jsulm

                              Hi,

                              I have searched in the internet as well as in the commercial forum there is no any workaround for Windows APIs to the WebAssembly. Would you like to add any point from your end otherwise I will have to close this topic.

                              Thanks,
                              Pradson

                              jsulmJ 1 Reply Last reply
                              0
                              • P Pradson

                                @jsulm

                                Hi,

                                I have searched in the internet as well as in the commercial forum there is no any workaround for Windows APIs to the WebAssembly. Would you like to add any point from your end otherwise I will have to close this topic.

                                Thanks,
                                Pradson

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

                                @Pradson said in Help regarding QRemoteObject.:

                                Would you like to add any point from your end otherwise I will have to close this topic.

                                I have nothing to add to this.
                                I'm curious: why do you need Windows API in a web application?

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

                                1 Reply Last reply
                                1

                                • Login

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