2012-08-18, 15:51
Hi All,
I have an AppleTV 1st Gen and *really* wanted to get this plugin to work with in in XBMC. After a bunch of running around, I managed to make it work and thought I'd try and share what I did? Your mileage may vary. It took a bunch of playing around to do this and finally I had some success, so trying to remember it all has been kinda hard....
What I needed was git and Xcode on my iMac that was running Mountain Lion so I could compile this from source.
I think I went to http://rtmpdump.mplayerhq.hu/ and downloaded the latest code. I think I used git and did:
git clone git://git.ffmpeg.org/rtmpdump
I then changed directories into the rtmpdump/librtmp directory. Don't try and compile rtmpdump. I tried and failed miserably, but then realized I don't need that, I only needed the library file. That's why I went straight to the librtmp directory.
In the librtmp directory edited the Makefile to have:
#SYS=posix
SYS=darwin
... and added just below that...
MACOSX_DEPLOYMENT_TARGET=10.4
I then did from my command prompt:
export MACOSX_DEPLOYMENT_TARGET=10.4
I then compiled stuff with this command:
make CXXFLAGS="-arch i386 -arch x86_64" CFLAGS="-arch i386 -arch x86_64" LDFLAGS="-arch i386 -arch x86_64"
.... *all* on one line.
I then took the compiled/resulting librtmp.0.dylib and put it on my ATV under
/Applications/XBMC.app/Contents/Resources/XBMC/system/players/dvdplayer with
the same perms as anything else in there.
I then tried to use divingmule's JTV plugin and XBMC would keep crashing.
After reading the xbmc.log it turns out that it was looking for some other
libraries under /usr/lib. I did some sym links to fix that:
sudo ln -s /mnt/Scratch/Users/frontrow/Applications/XBMC.app/Contents/Frameworks/libssl.0.9.8.dylib /usr/lib/libssl.0.9.8.dylib
sudo ln -s /mnt/Scratch/Users/frontrow/Applications/XBMC.app/Contents/Frameworks/libcrypto.0.9.8.dylib /usr/lib/libcrypto.0.9.8.dylib
... (there's *two* sudo lines there, and each line is all one long command) .... because in my log file XBMC I could see it was complaining about these being missing. It probably has to do with the way I compiled it on my iMac. The XBMC Eden app already had these libraries on my ATV, I just needed to put them where the newly compiled librtmp.0.dylib could see them is all and a symlink did that.
I then fired up the JTV app in XBMC and tried it... POOF, we're up.
I thought about trying to upload a copy of the librtmp.0.dylib I compiled so others could just jump to the part about putting it the dvdplayers directory on their ATV1 and then doing the symbolic links, but I'm not used to this forum and don't see a way to upload it anywhere?
Hopefully the info above helps someone else? I *know* the ATV1 is old and slow and stuff, but XBMC runs great on it!
Big props to divingmule for making this addon! Thank you for all your hard work! I've been enjoying JTV thanks to you! :-)
I have an AppleTV 1st Gen and *really* wanted to get this plugin to work with in in XBMC. After a bunch of running around, I managed to make it work and thought I'd try and share what I did? Your mileage may vary. It took a bunch of playing around to do this and finally I had some success, so trying to remember it all has been kinda hard....
What I needed was git and Xcode on my iMac that was running Mountain Lion so I could compile this from source.
I think I went to http://rtmpdump.mplayerhq.hu/ and downloaded the latest code. I think I used git and did:
git clone git://git.ffmpeg.org/rtmpdump
I then changed directories into the rtmpdump/librtmp directory. Don't try and compile rtmpdump. I tried and failed miserably, but then realized I don't need that, I only needed the library file. That's why I went straight to the librtmp directory.
In the librtmp directory edited the Makefile to have:
#SYS=posix
SYS=darwin
... and added just below that...
MACOSX_DEPLOYMENT_TARGET=10.4
I then did from my command prompt:
export MACOSX_DEPLOYMENT_TARGET=10.4
I then compiled stuff with this command:
make CXXFLAGS="-arch i386 -arch x86_64" CFLAGS="-arch i386 -arch x86_64" LDFLAGS="-arch i386 -arch x86_64"
.... *all* on one line.
I then took the compiled/resulting librtmp.0.dylib and put it on my ATV under
/Applications/XBMC.app/Contents/Resources/XBMC/system/players/dvdplayer with
the same perms as anything else in there.
I then tried to use divingmule's JTV plugin and XBMC would keep crashing.
After reading the xbmc.log it turns out that it was looking for some other
libraries under /usr/lib. I did some sym links to fix that:
sudo ln -s /mnt/Scratch/Users/frontrow/Applications/XBMC.app/Contents/Frameworks/libssl.0.9.8.dylib /usr/lib/libssl.0.9.8.dylib
sudo ln -s /mnt/Scratch/Users/frontrow/Applications/XBMC.app/Contents/Frameworks/libcrypto.0.9.8.dylib /usr/lib/libcrypto.0.9.8.dylib
... (there's *two* sudo lines there, and each line is all one long command) .... because in my log file XBMC I could see it was complaining about these being missing. It probably has to do with the way I compiled it on my iMac. The XBMC Eden app already had these libraries on my ATV, I just needed to put them where the newly compiled librtmp.0.dylib could see them is all and a symlink did that.
I then fired up the JTV app in XBMC and tried it... POOF, we're up.
I thought about trying to upload a copy of the librtmp.0.dylib I compiled so others could just jump to the part about putting it the dvdplayers directory on their ATV1 and then doing the symbolic links, but I'm not used to this forum and don't see a way to upload it anywhere?
Hopefully the info above helps someone else? I *know* the ATV1 is old and slow and stuff, but XBMC runs great on it!
Big props to divingmule for making this addon! Thank you for all your hard work! I've been enjoying JTV thanks to you! :-)