Skip to content

Commit

Permalink
[cmake] Add ApplicationServices framework on OSX
Browse files Browse the repository at this point in the history
Note that ApplicationServices has to be specified before CoreGraphics.
Otherwise kodi.bin fails to start with this message:

dyld: Library not loaded: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices
 Referenced from: kodi-build/./kodi.bin
 Reason: Incompatible library version: kodi.bin requires version 64.0.0 or later, but ApplicationServices provides version 1.0.0
  • Loading branch information
fetzerch authored and FernetMenta committed Jan 29, 2016
1 parent 3ad07c3 commit 40aa6a0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion project/cmake/scripts/darwin/archsetup.cmake
Expand Up @@ -31,5 +31,6 @@ list(APPEND CMAKE_SYSTEM_PREFIX_PATH ${NATIVEPREFIX})

list(APPEND DEPLIBS "-framework DiskArbitration" "-framework IOKit"
"-framework IOSurface" "-framework SystemConfiguration"
"-framework ApplicationServices" "-framework AppKit"
"-framework CoreAudio" "-framework AudioToolbox"
"-framework CoreGraphics" "-framework AppKit")
"-framework CoreGraphics")

0 comments on commit 40aa6a0

Please sign in to comment.