Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Using QWebEngine: "LNK1104: cannot open file 'debug\ProductBuilder.exe'"
Forum Updated to NodeBB v4.3 + New Features

Using QWebEngine: "LNK1104: cannot open file 'debug\ProductBuilder.exe'"

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
2 Posts 1 Posters 519 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.
  • T Offline
    T Offline
    Thomas_._
    wrote on last edited by
    #1

    Hi all,

    So I've got a project called ProductBuilder and I added QWebEngine to the project. My goal is to create a single webpage, the content of this webpage should change based on user input (the user does not interact with the webpage itself, the webpage just shows an image).
    Now, the application has a starting screen with two buttons, the first button loads some configurations and the second should open the webpage (the url is based on these configurations). But whenever I add QWebEngine to my project and I run it once, I cannot build it again and it gives me the error "LNK1104: cannot open file 'debug\ProductBuilder.exe'". I assumed the exe was still open but that is not true, here is a screenshot of my processes, so I'm guessing there is another process preventing me from opening the exe. I'm using QT 5.11 and MSVC2017 64bit.
    0_1532939080006_Image 4.png
    What I've done so far:

    • Added "QT += webenginewidgets" and "QT += webengine" to the ProductBuilder.pro file.
    • Added QWebEngine stuff to my main as a test.
    #include "mainwindow.h"
    // This is new
    #include <QApplication>
    #include <QWebEngineView>
    #include <QUrl>
    // end of new
    
    int main(int argc, char *argv[]) {
        QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
        QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
    
        QApplication a(argc, argv);
        MainWindow w;
        w.show();
    
        // This is new
        QWebEngineView* _view = new QWebEngineView();
        _view->load(QUrl("http://www.qt.io/"));
        _view->show();
        // end of new
    
        return a.exec();
    }
    

    This is all I did, now I can build and run the project, but when I try to change something and build again, I get the error and the ProductBuilder.exe file also is no longer present from the debug folder. The only way to be able to build and run again is to restart my pc, which is quite tedious. Please keep in mind I'm quite new to Qt and I've never worked with QWebEngine before.

    Thanks in advance for your help.

    Kind regards,
    Thomas

    T 1 Reply Last reply
    0
    • T Thomas_._

      Hi all,

      So I've got a project called ProductBuilder and I added QWebEngine to the project. My goal is to create a single webpage, the content of this webpage should change based on user input (the user does not interact with the webpage itself, the webpage just shows an image).
      Now, the application has a starting screen with two buttons, the first button loads some configurations and the second should open the webpage (the url is based on these configurations). But whenever I add QWebEngine to my project and I run it once, I cannot build it again and it gives me the error "LNK1104: cannot open file 'debug\ProductBuilder.exe'". I assumed the exe was still open but that is not true, here is a screenshot of my processes, so I'm guessing there is another process preventing me from opening the exe. I'm using QT 5.11 and MSVC2017 64bit.
      0_1532939080006_Image 4.png
      What I've done so far:

      • Added "QT += webenginewidgets" and "QT += webengine" to the ProductBuilder.pro file.
      • Added QWebEngine stuff to my main as a test.
      #include "mainwindow.h"
      // This is new
      #include <QApplication>
      #include <QWebEngineView>
      #include <QUrl>
      // end of new
      
      int main(int argc, char *argv[]) {
          QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
          QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
      
          QApplication a(argc, argv);
          MainWindow w;
          w.show();
      
          // This is new
          QWebEngineView* _view = new QWebEngineView();
          _view->load(QUrl("http://www.qt.io/"));
          _view->show();
          // end of new
      
          return a.exec();
      }
      

      This is all I did, now I can build and run the project, but when I try to change something and build again, I get the error and the ProductBuilder.exe file also is no longer present from the debug folder. The only way to be able to build and run again is to restart my pc, which is quite tedious. Please keep in mind I'm quite new to Qt and I've never worked with QWebEngine before.

      Thanks in advance for your help.

      Kind regards,
      Thomas

      T Offline
      T Offline
      Thomas_._
      wrote on last edited by
      #2

      This is the Application Output when I build and run a first time.

      [9464:2288:0730/104551.882:ERROR:gpu_process_transport_factory.cc(1019)] Lost UI shared context.
      [9464:2288:0730/104551.882:ERROR:gpu_process_transport_factory.cc(1019)] Lost UI shared context.
      [9464:9232:0730/104551.897:ERROR:gpu_process_host.cc(376)] !GpuDataManagerImpl::GpuAccessAllowed()
      [9464:9232:0730/104551.897:ERROR:gpu_process_host.cc(376)] !GpuDataManagerImpl::GpuAccessAllowed()
      [9464:9232:0730/104551.958:ERROR:gpu_process_host.cc(376)] !GpuDataManagerImpl::GpuAccessAllowed()
      [9464:9232:0730/104551.958:ERROR:gpu_process_host.cc(376)] !GpuDataManagerImpl::GpuAccessAllowed()
      [9464:9232:0730/104554.412:ERROR:gpu_process_host.cc(376)] !GpuDataManagerImpl::GpuAccessAllowed()
      [9464:9232:0730/104554.412:ERROR:gpu_process_host.cc(376)] !GpuDataManagerImpl::GpuAccessAllowed()

      [9464:9232:0730/104629.157:FATAL:resource_scheduler.cc(1044)] Check failed: client_map_.empty().
      Backtrace:
      GetHandleVerifier [0x0000000182B7FDD5+502229]
      GetHandleVerifier [0x0000000182B943C8+585672]
      QWebEngineUrlSchemeHandler::_q_destroyedUrlSchemeHandler [0x0000000182A868E0+3264]
      QtWebEngineCore::UserScript::data [0x0000000181571AA3+96835]
      base::RefCountedThreadSafe<QtWebEngineCore::CookieMonsterDelegateQt,base::DefaultRefCountedThreadSafeTraitsQtWebEngineCore::CookieMonsterDelegateQt >::AddRef [0x000000018154C327+6109399]
      base::RefCountedThreadSafe<QtWebEngineCore::CookieMonsterDelegateQt,base::DefaultRefCountedThreadSafeTraitsQtWebEngineCore::CookieMonsterDelegateQt >::AddRef [0x000000018154BF69+6108441]
      QtWebEngineCore::UserScript::data [0x000000018155F22E+20942]
      base::RefCountedThreadSafe<QtWebEngineCore::CookieMonsterDelegateQt,base::DefaultRefCountedThreadSafeTraitsQtWebEngineCore::CookieMonsterDelegateQt >::AddRef [0x0000000181556890+6151744]
      QtWebEngineCore::BrowserContextAdapter::isOffTheRecord [0x0000000183455EB9+4641769]
      base::RefCountedThreadSafe<QtWebEngineCore::CookieMonsterDelegateQt,base::DefaultRefCountedThreadSafeTraitsQtWebEngineCore::CookieMonsterDelegateQt >::~RefCountedThreadSafe<QtWebEngineCore::CookieMonsterDelegateQt,base::DefaultRefCountedThreadSafeTraits [0x00000001819B033D+1107389]
      base::RefCountedThreadSafe<QtWebEngineCore::CookieMonsterDelegateQt,base::DefaultRefCountedThreadSafeTraitsQtWebEngineCore::CookieMonsterDelegateQt >::~RefCountedThreadSafe<QtWebEngineCore::CookieMonsterDelegateQt,base::DefaultRefCountedThreadSafeTraits [0x00000001819FA5E9+1411177]
      base::RefCountedThreadSafe<QtWebEngineCore::CookieMonsterDelegateQt,base::DefaultRefCountedThreadSafeTraitsQtWebEngineCore::CookieMonsterDelegateQt >::~RefCountedThreadSafe<QtWebEngineCore::CookieMonsterDelegateQt,base::DefaultRefCountedThreadSafeTraits [0x00000001819FDCAD+1425197]
      QtWebEngineCore::BrowserContextAdapterClient::downloadInterruptReasonToString [0x00000001800D5190+14656]
      GetHandleVerifier [0x0000000182B7E424+495652]
      GetHandleVerifier [0x0000000182BAB5D9+680409]
      QWebEngineUrlSchemeHandler::_q_destroyedUrlSchemeHandler [0x0000000182ACFA6D+302669]
      QWebEngineUrlSchemeHandler::_q_destroyedUrlSchemeHandler [0x0000000182ACE050+295984]
      QWebEngineUrlSchemeHandler::_q_destroyedUrlSchemeHandler [0x0000000182ACE692+297586]
      GetHandleVerifier [0x0000000182BAF567+696679]
      GetHandleVerifier [0x0000000182BB06ED+701165]
      QWebEngineUrlSchemeHandler::_q_destroyedUrlSchemeHandler [0x0000000182ACF761+301889]
      QWebEngineUrlSchemeHandler::_q_destroyedUrlSchemeHandler [0x0000000182AEB93C+417052]
      QWebEngineUrlSchemeHandler::_q_destroyedUrlSchemeHandler [0x0000000182AF3A31+450065]
      base::RefCountedThreadSafe<QtWebEngineCore::CookieMonsterDelegateQt,base::DefaultRefCountedThreadSafeTraitsQtWebEngineCore::CookieMonsterDelegateQt >::AddRef [0x00000001810B0C5E+1278478]
      base::RefCountedThreadSafe<QtWebEngineCore::CookieMonsterDelegateQt,base::DefaultRefCountedThreadSafeTraitsQtWebEngineCore::CookieMonsterDelegateQt >::AddRef [0x00000001810B26A2+1285202]
      QWebEngineUrlSchemeHandler::_q_destroyedUrlSchemeHandler [0x0000000182AF4B49+454441]
      QWebEngineUrlSchemeHandler::_q_destroyedUrlSchemeHandler [0x0000000182A9C571+92497]
      BaseThreadInitThunk [0x00007FFE52683034+20]
      RtlUserThreadStart [0x00007FFE54161431+33]

      [9464:9232:0730/104629.157:FATAL:resource_scheduler.cc(1044)] Check failed: client_map_.empty().
      Backtrace:
      GetHandleVerifier [0x0000000182B7FDD5+502229]
      GetHandleVerifier [0x0000000182B943C8+585672]
      QWebEngineUrlSchemeHandler::_q_destroyedUrlSchemeHandler [0x0000000182A868E0+3264]
      QtWebEngineCore::UserScript::data [0x0000000181571AA3+96835]
      base::RefCountedThreadSafe<QtWebEngineCore::CookieMonsterDelegateQt,base::DefaultRefCountedThreadSafeTraitsQtWebEngineCore::CookieMonsterDelegateQt >::AddRef [0x000000018154C327+6109399]
      base::RefCountedThreadSafe<QtWebEngineCore::CookieMonsterDelegateQt,base::DefaultRefCountedThreadSafeTraitsQtWebEngineCore::CookieMonsterDelegateQt >::AddRef [0x000000018154BF69+6108441]
      QtWebEngineCore::UserScript::data [0x000000018155F22E+20942]
      base::RefCountedThreadSafe<QtWebEngineCore::CookieMonsterDelegateQt,base::DefaultRefCountedThreadSafeTraitsQtWebEngineCore::CookieMonsterDelegateQt >::AddRef [0x0000000181556890+6151744]
      QtWebEngineCore::BrowserContextAdapter::isOffTheRecord [0x0000000183455EB9+4641769]
      base::RefCountedThreadSafe<QtWebEngineCore::CookieMonsterDelegateQt,base::DefaultRefCountedThreadSafeTraitsQtWebEngineCore::CookieMonsterDelegateQt >::~RefCountedThreadSafe<QtWebEngineCore::CookieMonsterDelegateQt,base::DefaultRefCountedThreadSafeTraits [0x00000001819B033D+1107389]
      base::RefCountedThreadSafe<QtWebEngineCore::CookieMonsterDelegateQt,base::DefaultRefCountedThreadSafeTraitsQtWebEngineCore::CookieMonsterDelegateQt >::~RefCountedThreadSafe<QtWebEngineCore::CookieMonsterDelegateQt,base::DefaultRefCountedThreadSafeTraits [0x00000001819FA5E9+1411177]
      base::RefCountedThreadSafe<QtWebEngineCore::CookieMonsterDelegateQt,base::DefaultRefCountedThreadSafeTraitsQtWebEngineCore::CookieMonsterDelegateQt >::~RefCountedThreadSafe<QtWebEngineCore::CookieMonsterDelegateQt,base::DefaultRefCountedThreadSafeTraits [0x00000001819FDCAD+1425197]
      QtWebEngineCore::BrowserContextAdapterClient::downloadInterruptReasonToString [0x00000001800D5190+14656]
      GetHandleVerifier [0x0000000182B7E424+495652]
      GetHandleVerifier [0x0000000182BAB5D9+680409]
      QWebEngineUrlSchemeHandler::_q_destroyedUrlSchemeHandler [0x0000000182ACFA6D+302669]
      QWebEngineUrlSchemeHandler::_q_destroyedUrlSchemeHandler [0x0000000182ACE050+295984]
      QWebEngineUrlSchemeHandler::_q_destroyedUrlSchemeHandler [0x0000000182ACE692+297586]
      GetHandleVerifier [0x0000000182BAF567+696679]
      GetHandleVerifier [0x0000000182BB06ED+701165]
      QWebEngineUrlSchemeHandler::_q_destroyedUrlSchemeHandler [0x0000000182ACF761+301889]
      QWebEngineUrlSchemeHandler::_q_destroyedUrlSchemeHandler [0x0000000182AEB93C+417052]
      QWebEngineUrlSchemeHandler::_q_destroyedUrlSchemeHandler [0x0000000182AF3A31+450065]
      base::RefCountedThreadSafe<QtWebEngineCore::CookieMonsterDelegateQt,base::DefaultRefCountedThreadSafeTraitsQtWebEngineCore::CookieMonsterDelegateQt >::AddRef [0x00000001810B0C5E+1278478]
      base::RefCountedThreadSafe<QtWebEngineCore::CookieMonsterDelegateQt,base::DefaultRefCountedThreadSafeTraitsQtWebEngineCore::CookieMonsterDelegateQt >::AddRef [0x00000001810B26A2+1285202]
      QWebEngineUrlSchemeHandler::_q_destroyedUrlSchemeHandler [0x0000000182AF4B49+454441]
      QWebEngineUrlSchemeHandler::_q_destroyedUrlSchemeHandler [0x0000000182A9C571+92497]
      BaseThreadInitThunk [0x00007FFE52683034+20]
      RtlUserThreadStart [0x00007FFE54161431+33]

      10:46:32: The program has unexpectedly finished.
      10:46:32: The process was ended forcefully.

      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