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
Forum Updated to NodeBB v4.3 + New Features

Widgets component is not recognized in CMakeList file

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 1 Posters 243 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 12 Aug 2021, 13:42 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 13 Aug 2021, 08:20 last edited by
      #2

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

      Best
      Milosz

      1 Reply Last reply
      0

      1/2

      12 Aug 2021, 13:42

      • Login

      • Login or register to search.
      1 out of 2
      • First post
        1/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved