Skip to content

Commit

Permalink
Target should be linked with dvdcss when the definition HAVE_DVDCSS_D…
Browse files Browse the repository at this point in the history
…VDCSS_H is set

The commit fixes the following error, trying to link libmythdvdnav.

/usr/bin/ld: ../../../../external/libmythdvdnav/libmythdvdnav-35.so.35.0: undefined reference to `dvdcss_open'
/usr/bin/ld: ../../../../external/libmythdvdnav/libmythdvdnav-35.so.35.0: undefined reference to `dvdcss_close'
/usr/bin/ld: ../../../../external/libmythdvdnav/libmythdvdnav-35.so.35.0: undefined reference to `dvdcss_open_stream'
/usr/bin/ld: ../../../../external/libmythdvdnav/libmythdvdnav-35.so.35.0: undefined reference to `dvdcss_read'
/usr/bin/ld: ../../../../external/libmythdvdnav/libmythdvdnav-35.so.35.0: undefined reference to `dvdcss_seek'
collect2: error: ld returned 1 exit status
  • Loading branch information
janbar committed Oct 28, 2024
1 parent 133cdfa commit 512e780
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mythtv/external/libmythdvdnav/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@ target_link_libraries(mythdvdnav PUBLIC ${CMAKE_DL_LIBS})
if(APPLE)
target_link_libraries(mythdvdnav PRIVATE ${APPLE_CORE_FOUNDATION})
endif()
if(HAVE_DVDCSS_DVDCSS_H)
target_link_libraries(mythdvdnav PRIVATE dvdcss)
endif()

#
# The MythTV customization to dvdnav adds references to the MythFile* functions,
Expand Down

0 comments on commit 512e780

Please sign in to comment.