Skip to content

Commit

Permalink
Fix cmake compilation with dvdcss
Browse files Browse the repository at this point in the history
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 Nov 4, 2024
1 parent bb803cd commit afebba1
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 afebba1

Please sign in to comment.