Results 1 to 3 of 3

Thread: Using Qt 5.7 with MSVC compiler

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2024
    Posts
    6
    Thanked 1 Time in 1 Post
    Qt products
    Platforms
    Windows

    Default Re: Using Qt 5.7 with MSVC compiler

    The error you're encountering, "No Target Architecture," occurs because the compiler isn't detecting a target architecture for the build. Here’s what you can try to fix it:

    Verify the correct MSVC compiler is selected: Ensure you have selected a 32-bit or 64-bit architecture for MSVC in Qt Creator by choosing the proper kit in the build settings (x86 for 32-bit or x64 for 64-bit).

    Install necessary SDKs: Make sure you have the correct Windows SDK installed. The error points to missing or incompatible SDK files. You may need to install the Windows 8.1 or Windows 10 SDK from the Visual Studio installer.
    Update your environment variables: Ensure your development environment (Qt Creator) is properly configured with the correct environment variables for the MSVC toolchain.

    Use the correct MSVC version: Since you mentioned MSVC2013, ensure you are using Qt compiled with the same MSVC version. If you're using a newer Qt version (like 5.7), try upgrading your compiler to MSVC2015 or later, as older compilers might not work well with newer Qt libraries.

    By verifying these configurations, you should be able to resolve the issue and successfully compile your project.
    Last edited by OmarDay; 3rd October 2024 at 13:00.

Similar Threads

  1. Replies: 0
    Last Post: 10th June 2013, 01:54
  2. Configure Qcreator whit MSVC 2008 compiler
    By Ricardo_arg in forum Qt Programming
    Replies: 0
    Last Post: 27th August 2012, 15:23
  3. Replies: 8
    Last Post: 16th February 2011, 05:16
  4. msvc Compiler or mingw compiler
    By Ashutosh2k1 in forum Qt Programming
    Replies: 3
    Last Post: 14th February 2011, 08:33
  5. how to set QT Creator to use MSVC++ compiler instead of mingw
    By hcetiner in forum Installation and Deployment
    Replies: 5
    Last Post: 28th March 2010, 19:55

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
  •  
Qt is a trademark of The Qt Company.