Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QtWebEngine
  4. QtWebEngine
Forum Updated to NodeBB v4.3 + New Features

QtWebEngine

Scheduled Pinned Locked Moved Solved QtWebEngine
17 Posts 6 Posters 5.4k Views 3 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.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #4

    Hi,

    What @raven-worx meant is that you can't mix and match compilers on Windows. If you have a C++ library built with MinGW32 then you have to build everything with MinGW. For Visual Studio it goes even further, the different versions of VS are not compatible one with the other except for VS2017 which is backward compatible with VS2015.

    In any case, hover the red icon and see what errors are stated there.

    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
    2
    • V Offline
      V Offline
      vithom
      wrote on last edited by
      #5

      @SGaist said in QtWebEngine:

      For Visual Studio it goes even further, the different versions of VS are not compatible one with the other except for VS2017 which is backward compatible with VS2015.

      In any case, hover the red icon and see what errors are stated there.

      So does it means that if you install VS2017, you are able to compile with msvc2015 prebuilt component ?

      1 Reply Last reply
      0
      • elicatE Offline
        elicatE Offline
        elicat
        wrote on last edited by
        #6

        @vithom said in QtWebEngine:

        So does it means that if you install VS2017, you are able to compile with msvc2015 prebuilt component ?

        I have installed VS2017 and QT 5.9.4 on win10 64bit.
        after I have configured qt version same this :
        0_1528905889800_qtversion.jpg

        If I build with X64 is all ok.
        but if I try to use x86 or win32 I have this error

        0_1528906119739_qtversion_error.jpg

        In QT --> Tools --> options I have configured the parameters of compiler :

        0_1528906310453_qtversion_error_2.jpg

        Mabye it's impossible build in 32bit version?

        Saluti, Gianfranco Elicat

        1 Reply Last reply
        0
        • elicatE Offline
          elicatE Offline
          elicat
          wrote on last edited by
          #7

          OK, Now I have install on Ubuntu System 32bit Qt Creator and QtWebEngine is recognized. But wen buil the program I have error in :

          QtWebEngine::initialize();
          

          I must install other component in Linux for build with QT and yours QtWebEngine?

          Saluti, Gianfranco Elicat

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

            What exact errors are you getting ?

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

            elicatE 1 Reply Last reply
            0
            • SGaistS SGaist

              What exact errors are you getting ?

              elicatE Offline
              elicatE Offline
              elicat
              wrote on last edited by
              #9

              @SGaist Good Morning,
              the cod of main is this :

              #include <QCoreApplication>
              #include <QtGui/QApplicationStateChangeEvent>
              #include <QtQml/QQmlApplicationEngine>
              #include <QtWebEngine/qtwebengineglobal.h>
              #include <WebClass.h>
              #include <QtWebChannel/QQmlWebChannel>
              #include <QtWebChannel/qwebchannel.h>
              #include <QtWebEngineWidgets/QtWebEngineWidgets>
              
              int main(int argc, char *argv[])
              {
                  QCoreApplication app(argc, argv);
              
              	QtWebEngine::initialize();
              
              	QQmlApplicationEngine engine;
              	engine.load(QUrl(QStringLiteral("main.qml")));
              	return app.exec();
              }
              

              Erros when build :

              /home/gianfranco/Public/QtApplication/QtWebApplicationUbuntu/main.cpp:17: error: undefined reference to `QtWebEngine::initialize()'
              

              I do not understand where the cause is.
              The statements are recognized

              Saluti, Gianfranco Elicat

              raven-worxR 1 Reply Last reply
              0
              • elicatE elicat

                @SGaist Good Morning,
                the cod of main is this :

                #include <QCoreApplication>
                #include <QtGui/QApplicationStateChangeEvent>
                #include <QtQml/QQmlApplicationEngine>
                #include <QtWebEngine/qtwebengineglobal.h>
                #include <WebClass.h>
                #include <QtWebChannel/QQmlWebChannel>
                #include <QtWebChannel/qwebchannel.h>
                #include <QtWebEngineWidgets/QtWebEngineWidgets>
                
                int main(int argc, char *argv[])
                {
                    QCoreApplication app(argc, argv);
                
                	QtWebEngine::initialize();
                
                	QQmlApplicationEngine engine;
                	engine.load(QUrl(QStringLiteral("main.qml")));
                	return app.exec();
                }
                

                Erros when build :

                /home/gianfranco/Public/QtApplication/QtWebApplicationUbuntu/main.cpp:17: error: undefined reference to `QtWebEngine::initialize()'
                

                I do not understand where the cause is.
                The statements are recognized

                raven-worxR Offline
                raven-worxR Offline
                raven-worx
                Moderators
                wrote on last edited by raven-worx
                #10
                This post is deleted!
                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #11

                  Maybe a silly question but did you add QT += webengine to you .pro file ?

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

                  elicatE 1 Reply Last reply
                  0
                  • SGaistS SGaist

                    Maybe a silly question but did you add QT += webengine to you .pro file ?

                    elicatE Offline
                    elicatE Offline
                    elicat
                    wrote on last edited by elicat
                    #12

                    @SGaist Arghh.. you tell me correct.. -I am again beginner, now, when i buil i have this problem.
                    what is still missing?

                    /usr/bin/ld: cannot find -lGL
                    
                    

                    Saluti, Gianfranco Elicat

                    JonBJ 1 Reply Last reply
                    0
                    • elicatE elicat

                      @SGaist Arghh.. you tell me correct.. -I am again beginner, now, when i buil i have this problem.
                      what is still missing?

                      /usr/bin/ld: cannot find -lGL
                      
                      
                      JonBJ Online
                      JonBJ Online
                      JonB
                      wrote on last edited by JonB
                      #13

                      @elicat
                      Use the Search icon at the top of this page to search this forum for lGL (note not for -lGL). You will find lots of this specific question and its solutions.

                      elicatE 1 Reply Last reply
                      0
                      • JonBJ JonB

                        @elicat
                        Use the Search icon at the top of this page to search this forum for lGL (note not for -lGL). You will find lots of this specific question and its solutions.

                        elicatE Offline
                        elicatE Offline
                        elicat
                        wrote on last edited by
                        #14

                        @JonB ok thanks

                        Saluti, Gianfranco Elicat

                        elicatE 1 Reply Last reply
                        0
                        • elicatE elicat

                          @JonB ok thanks

                          elicatE Offline
                          elicatE Offline
                          elicat
                          wrote on last edited by
                          #15

                          @elicat all is perfect, now it build without errors, but… UFF… but when i run the program it crashed. I lunch with debug and i have this error. The same project run in x64bit with 5.9.4.

                          0_1529398559134_ubuntu_test-complie.png

                          Saluti, Gianfranco Elicat

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

                            Hi,

                            Why are you using a QCoreApplication ?

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

                            elicatE 1 Reply Last reply
                            0
                            • SGaistS SGaist

                              Hi,

                              Why are you using a QCoreApplication ?

                              elicatE Offline
                              elicatE Offline
                              elicat
                              wrote on last edited by
                              #17

                              @SGaist Ok, I'm stupid. sorry. thank you all

                              Saluti, Gianfranco Elicat

                              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