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. QT build fail - FreeBSD 9.2
Forum Updated to NodeBB v4.3 + New Features

QT build fail - FreeBSD 9.2

Scheduled Pinned Locked Moved Installation and Deployment
2 Posts 2 Posters 1.2k Views 1 Watching
  • 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.
  • J Offline
    J Offline
    Jcb1974
    wrote on last edited by
    #1

    I've been fighting this for the past three days. I'm just trying to build KDE. It always fails with this:

    CMake Error at gstreamer/CMakeLists.txt:103 (qt5_use_modules):
    Unknown CMake command "qt5_use_modules".

    There were no logs to parse. I've spent days online, and have noticed a number of folks having the problem. Now, I've come begging. Anyone ever found a solution to this?

    1 Reply Last reply
    0
    • F Offline
      F Offline
      fotte
      wrote on last edited by
      #2

      Hi.

      I have never seen this problem before since i'm using debian. But maybe the qt cmake documentation is of help:

      Qt5Core macros
      Macros available when Qt5Core is found.

      qt5_use_modules(target [LINK_PUBLIC|LINK_PRIVATE] module ... ):

      Indicates that the target uses the named Qt 5 modules. The target will be linked to the specified modules, use the include directories installed by those modules, use the COMPILE_DEFINITIONS set by those modules, and use the COMPILE_FLAGS set by the modules. The LINK_PRIVATE or LINK_PUBLIC specifiers can optionally be specified. If LINK_PRIVATE is specified then the modules are not made part of the link interface of the target. See the documentation for target_link_libraries for more information.
      Note that this macro is only available if using CMake 2.8.9 or later.

      Do you have the right CMake version?
      Can you check if Qt5Core was found?

      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