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. Widgets component is not recognized in CMakeList file

Widgets component is not recognized in CMakeList file

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 1 Posters 381 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
    Milosz
    wrote on last edited by
    #1

    Hi everyone,
    I have newly created virtual machine (VBox) and Ubuntu 20.04.
    I have installed Qt and QtCreator.
    I can't build my first application. The error appears in CMakeList file in line:

    find_package(Qt${QT_VERSION_MAJOR} COMPONENTS Widgets REQUIRED)

    The error description is like that:
    Found package configuration file: /home/xxx/Qt/6.0.4/gcc_64/lib/cmake/Qt6/Qt6Config.make but it set Qt6_FOUND to FALSE so package "Qt6" is considered to be NOT FOUND. Reason given by package: Failed to find Qt component "Widgets" config file at""

    Can anyone help me?
    Thanks in advance

    Best Regards
    Milosz

    1 Reply Last reply
    0
    • M Offline
      M Offline
      Milosz
      wrote on last edited by
      #2

      The problem is solved. I had to install libgl1-mesa-dev

      Best
      Milosz

      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