Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Linux installation: dependency Threads resolving
Forum Updated to NodeBB v4.3 + New Features

Linux installation: dependency Threads resolving

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
2 Posts 1 Posters 694 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.
  • A Offline
    A Offline
    atrof
    wrote on last edited by
    #1

    While configuration, cmake throws an error:
    "package "Qt6" is considered to be NOT FOUND. Reason given by package: Qt6 could not be found because dependency Threads could not be found."

    Which library should I install to resolve this dependency?

    1 Reply Last reply
    0
    • A Offline
      A Offline
      atrof
      wrote on last edited by
      #2

      Like this:
      set(CMAKE_THREAD_LIBS_INIT "-lpthread")
      set(CMAKE_HAVE_THREADS_LIBRARY 1)
      set(CMAKE_USE_WIN32_THREADS_INIT 0)
      set(CMAKE_USE_PTHREADS_INIT 1)
      set(THREADS_PREFER_PTHREAD_FLAG ON)

      1 Reply Last reply
      2

      • Login

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