Important: Please read the Qt Code of Conduct -

QT build fail - FreeBSD 9.2

  • 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?

  • 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?

Log in to reply