Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Cant compile using cmake and visualstudio 2022
Forum Updated to NodeBB v4.3 + New Features

Cant compile using cmake and visualstudio 2022

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 323 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.
  • M Offline
    M Offline
    Mads030306
    wrote on last edited by
    #1

    Hello.

    I cant get my project to compile (It does run in Qt Creator).

    I started by running the following command:

    cmake -S C:\Qt\Examples\Qt-6.3.0\widgets\dialogs\trivialwizard -B C:\Qt\Examples\Qt-6.3.0\widgets\dialogs\trivialwizard/build
    

    235cffed-0a30-4d90-9929-48ca6113d6f1-billede.png
    This successfully created all the files in the build directory.

    Here is a screenshot of all files in build directory:
    ab4cab19-49d3-4a19-9b13-4f4393243d13-billede.png

    I have tried opening the .sln file and running ALL_BUILD:

    I get this error:
    5356522c-35b6-4474-9277-fbaf32234dbe-billede.png

    I have changed the c++ version to 17, and still get the same error.
    4910008f-7b12-4325-8619-e886287459ef-billede.png

    I cant figure out how to set compiler options. I dont have the c/c++ tab in properties:
    4e38e227-ea5a-4e0c-8d50-56649d064866-billede.png

    I found some one that had the same problem and he fixed it by chaning some options but i do not have the All Options tab:
    http://quabr.com:8182/70373606/how-to-fix-qt-requires-a-c17-compiler

    I'm on windows 10.

    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