How to add a lib?
#1
All,

Can someone give me some advice on how to add a library to xbmc? Perhaps post a link to a commit in github where this was done?

I have been trying to figure this out by taking an example library (libexif) and working backwards but between the autotools and the DLL wrappers I haven't succeeded with this approach.

I would like to create some functions and place them in a library that can be linked with the cores/dvdplayer/DVDInputStreams. I would like to be able to call my functions from .cpp files within DVDInputStreams.
#2
Do you need hard linking or can the lib be dyloaded ?

You don't link to cores/dvdplayer/DVDInputStreams, that's source code. You either a) link to XBMC or dyload the lib when you need it.
#3
see xbmc/cores/dvdplayer/DVDCodecs/Video/AMLCodec.cpp, it dyloads libamplayer.so so that functions internal to it are exposed.
#4
Don't cross post one thread is enough i think:

http://forum.xbmc.org/showthread.php?tid=182505
AppleTV4/iPhone/iPod/iPad: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for Kodi: NFS (wiki)
HowTo configure avahi (zeroconf): Avahi_Zeroconf (wiki)
READ THE IOS FAQ!: iOS FAQ (wiki)

Logout Mark Read Team Forum Stats Members Help
How to add a lib?0
This forum uses Lukasz Tkacz MyBB addons.