Skip to content

[ERROR] Build error: (cmake) "set_property can not be used on an ALIAS target" - and clone fails in step 2 #197

@RiQuY

Description

@RiQuY

Description

I tried building the project to use it on openSUSE Tumbleweed and I'm getting the following error when running this command cmake -B build-dir --preset linux-x86_64 -DUSE_SYSTEM_CURL=ON -DCMAKE_INSTALL_PREFIX=./output_dir:

Preset CMake variables:

  CMAKE_BUILD_TYPE="RelWithDebInfo"
  ENABLE_FRONTEND_API:BOOL="TRUE"
  ENABLE_QT:BOOL="TRUE"

-- The C compiler identification is GNU 14.2.1
-- The CXX compiler identification is GNU 14.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Threads: TRUE
-- Performing Test HAVE_STDATOMIC
-- Performing Test HAVE_STDATOMIC - Success
-- Qt version found: 6
-- Found OpenGL: /usr/lib64/libOpenGL.so
-- Found WrapOpenGL: TRUE
-- Found XKB: /usr/lib64/libxkbcommon.so (found suitable version "1.7.0", minimum required is "0.5.0")
-- Found WrapVulkanHeaders: /usr/include
CMake Error at cmake/common/helpers_common.cmake:89 (set_property):
  set_property can not be used on an ALIAS target.
Call Stack (most recent call first):
  CMakeLists.txt:26 (find_qt)


-- Found CURL: /usr/lib64/libcurl.so (found version "8.11.1")

The content of the line pointed in the error is:

  • set_property(TARGET Qt::${component} PROPERTY INTERFACE_COMPILE_FEATURES "")

I'm following these steps https://github.com/locaal-ai/obs-localvocal?tab=readme-ov-file#other-distros and before trying to build it I checked that I have installed the required libraries like, cmake, qt6 (and dev headers), libopenssl obs-studio and obs-studio-devel (equivalent to libobs), I'm doing this from master branch (last commit fe9a521).

System info

SO: openSUSE Tumbleweed
RAM: 32GB
CPU: AMD Ryzen 7 1700X
GPU: AMD Radeon RX 5700 XT

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions