Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile of Kodi for wayland is failing with - non-existent target "libkodi". #24586

Open
1 of 7 tasks
heitbaum opened this issue Jan 27, 2024 · 1 comment
Open
1 of 7 tasks
Assignees
Labels
Triage: Needed (managed by bot!) issue that was just created and needs someone looking at it v21 Omega

Comments

@heitbaum
Copy link
Contributor

Bug report

Describe the bug

Here is a clear and concise description of what the problem is:

Wayland target compile (of Kodi Omega master) on LibreELEC is failing with non-existent target "libkodi".

Commenting out the following line allows the compile to proceed.

add_dependencies(lib${APP_NAME_LC} generate-wayland-extra-protocols)

detail:

Expected Behavior

Here is a clear and concise description of what was expected to happen:

I did a test compile using with the before #23612 successfully.

Actual Behavior

Since #23612 the Wayland build fails

CMake Error at cmake/scripts/linux/ExtraTargets.cmake:39 (add_dependencies):
  Cannot add target-level dependencies to non-existent target "libkodi".

  The add_dependencies works for top-level logical targets created by the
  add_executable, add_library, or add_custom_target commands.  If you want to
  add file-level dependencies see the DEPENDS option of the add_custom_target
  and add_custom_command commands.
Call Stack (most recent call first):
  CMakeLists.txt:581 (include)

Possible Fix

Unknown

To Reproduce

Steps to reproduce the behavior:

  1. Compile Kodi with waylaid support with patch [Cmake] Several fixes for TARGET usage #23612

Debuglog

The debuglog can be found here:

NA

Screenshots

Here are some links or screenshots to help explain the problem:

NA

Additional context or screenshots (if appropriate)

Here is some additional context or explanation that might help:

NA

Your Environment

Used Operating system:

  • Android

  • iOS

  • tvOS

  • Linux

  • macOS

  • Windows

  • Windows UWP

  • Operating system version/name: LibreELEC 12.0

  • Kodi version: Omega:master

note: Once the issue is made we require you to update it with new information or Kodi versions should that be required.
Team Kodi will consider your problem report however, we will not make any promises the problem will be solved.

@xbmc-gh-bot xbmc-gh-bot bot added the Triage: Needed (managed by bot!) issue that was just created and needs someone looking at it label Jan 27, 2024
@fuzzard
Copy link
Contributor

fuzzard commented Feb 10, 2024

Im not sure how this could actually fail. It doesnt on jenkins builds at the very least.

https://jenkins.kodi.tv/job/LINUX/69510/console

the target is executed.

17:42:57 [  2%] Generating wayland-protocols C++ wrappers
17:42:57 [  8%] Building CXX object taglib/CMakeFiles/tag.dir/mpeg/id3v2/id3v2tag.cpp.o
17:42:57 -- Performing Test HAVE_TALLOC_TEVENT - Failed
17:42:57 -- Performing Test HAVE_CLOCK_GETTIME
17:42:57 [  2%] Built target generate-wayland-extra-protocols

the lib${APP_NAME_LC} target exists at

add_library(lib${APP_NAME_LC} STATIC $<TARGET_OBJECTS:compileinfo>)

The extratargets scripts arent added until
include(${CMAKE_SOURCE_DIR}/cmake/scripts/${CORE_SYSTEM_NAME}/ExtraTargets.cmake)

Its just an include, and not a function or anything else that would potentially screw with scope.
Is there something else libreelec might be doing/modifying somewhere maybe?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Triage: Needed (managed by bot!) issue that was just created and needs someone looking at it v21 Omega
Projects
None yet
Development

No branches or pull requests

3 participants