Results 1 to 2 of 2

Thread: Error During Qt Installation on Windows

  1. #1
    Join Date
    Jan 2025
    Location
    California
    Posts
    2

    Default Error During Qt Installation on Windows

    Hello

    I am having trouble installing Qt on my Windows machine; specifically when I try to integrate it with Visual Studio. After following the standard installation process (using the Qt Online Installer for version 6.5), I encountered an error stating that certain dependencies could not be found during the Visual Studio integration phase. The error message mentioned missing DLL files that are supposed to be linked with the Qt tools, but they don’t seem to exist in the directories where they should be. I’ve tried reinstalling the necessary components multiple times and checked that Visual Studio is properly configured to detect Qt; but the issue persists.

    I’ve ensured that both Visual Studio 2022 and Qt Creator are up to date, and I’ve configured the paths in the Qt settings to point to the correct directories. However, despite this, I still face the same problem. Additionally, when I try to build a simple Qt project from Visual Studio, the IDE fails to compile; throwing a "Qt environment setup error."

    Has anyone encountered similar issues when using Qt with Visual Studio; particularly with missing dependencies during installation? Any suggestions on how to resolve this problem or troubleshoot the missing files would be greatly appreciated.


    I have re-installed both Visual Studio and Qt to ensure both are the latest versions. Ensured Qt is correctly configured in Visual Studio via the Qt Visual Studio Tools extension. Verified system paths and environmental variables are set correctly, but issue remains unresolved.

    Attempted to build a simple Qt project, but Visual Studio cannot find the necessary libraries to complete the build. I have checked https://doc.qt.io/qtvstools/qtvstool...o-install.html


    Any advice or steps I might have missed to get Qt fully integrated with Visual Studio would be helpful.



    Thank you !
    Okta administrator

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,287
    Thanks
    310
    Thanked 868 Times in 855 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Error During Qt Installation on Windows

    I assume that since you posted the link, you have installed the Qt VS Tools extension. You have to configure the tool to point to your compiled Qt distribution (not the source code).

    In Visual Studio 2022, there is an Extensions -> Qt VS Tools -> Options menu. If you execute that, you will see this dialog:

    Capture.jpg

    On my PC, I have three Qt versions installed. If you haven't added yours, click Add and browse to the top level directory of the binary version (the one that contains include, bin, and other subdirectories). If you have more than one installation, click the Default button to chose which one is used in Visual Studio as the default version.

    Then in your Project Properties, go to Qt Project Settings and be sure $(DefaultQtVersion) is set for the Qt Installation property:

    Capture2.jpg

    If you did not originally create your project using the Qt VS Tools template in the Create new project wizard, then you will probably need to do that and then add all of your source files to this new project. The Qt Widgets Application wizard will correctly configure your .vsproj file to connect to your Qt installation for include and lib files.

    Capture3.jpg
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

Similar Threads

  1. Help regarding installation of Qt for windows
    By Storm1214 in forum Newbie
    Replies: 1
    Last Post: 12th February 2016, 16:32
  2. qwt installation for windows
    By anh5kor in forum Newbie
    Replies: 2
    Last Post: 30th April 2015, 22:43
  3. Replies: 0
    Last Post: 1st November 2014, 06:17
  4. Qwt installation on Windows 7
    By qt_developer in forum Qwt
    Replies: 5
    Last Post: 26th May 2013, 21:26
  5. Installation of Qt4.3.4 for Windows
    By merry in forum Installation and Deployment
    Replies: 4
    Last Post: 12th March 2008, 10:47

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.