Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. How to resolve LNK2019 error obtained after initializing the web engine and writing code to load a web page?

How to resolve LNK2019 error obtained after initializing the web engine and writing code to load a web page?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
documentationlnk2019webengineview
5 Posts 2 Posters 812 Views
  • 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.
  • G Offline
    G Offline
    gouneken
    wrote on 30 Mar 2022, 21:22 last edited by gouneken 4 Jan 2022, 20:01
    #1

    Good evening to the whole community, I am working on a search engine project for android phone. In order to orient myself, I tried the code present on the official documentation https://doc.qt.io/qt-6/qml-qtwebengine-webengineview.html#details to initialize a web engine and load a web page. But when I run I get the LNK2019 error followed inevitably by the LNK1120 error. Firstly, I looked at the documentation code for the main.cpp and main.qml files and everything was normal. Then I searched the internet for how to resolve this error, and I was asked to use vcpkg, but I don't really see the importance. I don't know if this is a documentation code error or something else. I therefore ask for your help for those who may have already dealt with this.
    The error text is the follow:
    LNK2019:external symbol not resolved "_declspec(dllimport) void_cdecl -----QtWebEngineQuick::initialize(void)"(imp?
    initialize@QtWebEngineQuick@@YAXXZ)r,f,renc, in the main function
    main.obj
    I look forward to your answers. Thank you!

    J 1 Reply Last reply 31 Mar 2022, 06:02
    0
    • G gouneken
      30 Mar 2022, 21:22

      Good evening to the whole community, I am working on a search engine project for android phone. In order to orient myself, I tried the code present on the official documentation https://doc.qt.io/qt-6/qml-qtwebengine-webengineview.html#details to initialize a web engine and load a web page. But when I run I get the LNK2019 error followed inevitably by the LNK1120 error. Firstly, I looked at the documentation code for the main.cpp and main.qml files and everything was normal. Then I searched the internet for how to resolve this error, and I was asked to use vcpkg, but I don't really see the importance. I don't know if this is a documentation code error or something else. I therefore ask for your help for those who may have already dealt with this.
      The error text is the follow:
      LNK2019:external symbol not resolved "_declspec(dllimport) void_cdecl -----QtWebEngineQuick::initialize(void)"(imp?
      initialize@QtWebEngineQuick@@YAXXZ)r,f,renc, in the main function
      main.obj
      I look forward to your answers. Thank you!

      J Online
      J Online
      jsulm
      Lifetime Qt Champion
      wrote on 31 Mar 2022, 06:02 last edited by
      #2

      @gouneken Please post the error text, not only numbers

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

      G 1 Reply Last reply 31 Mar 2022, 21:20
      1
      • J jsulm
        31 Mar 2022, 06:02

        @gouneken Please post the error text, not only numbers

        G Offline
        G Offline
        gouneken
        wrote on 31 Mar 2022, 21:20 last edited by
        #3

        @jsulm I displayed an image containing the error messages

        J 1 Reply Last reply 1 Apr 2022, 06:26
        0
        • G gouneken
          31 Mar 2022, 21:20

          @jsulm I displayed an image containing the error messages

          J Online
          J Online
          jsulm
          Lifetime Qt Champion
          wrote on 1 Apr 2022, 06:26 last edited by
          #4

          @gouneken said in How to resolve LNK2019 error obtained after initializing the web engine and writing code to load a web page?:

          I displayed an image containing the error messages

          You should post errors as text, not images. This makes it easier for others to search on the internet or translate the error messages if those are not in English (like in your case).

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

          G 1 Reply Last reply 1 Apr 2022, 20:10
          1
          • J jsulm
            1 Apr 2022, 06:26

            @gouneken said in How to resolve LNK2019 error obtained after initializing the web engine and writing code to load a web page?:

            I displayed an image containing the error messages

            You should post errors as text, not images. This makes it easier for others to search on the internet or translate the error messages if those are not in English (like in your case).

            G Offline
            G Offline
            gouneken
            wrote on 1 Apr 2022, 20:10 last edited by
            #5

            @jsulm I wrote the error message

            1 Reply Last reply
            0

            4/5

            1 Apr 2022, 06:26

            • Login

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