margro / xbmc

XBMC PVR Repository for the development of the MediaPortal and ForTheRecord pvr addons
http://www.scintilla.utwente.nl/~marcelg/xbmc/
Other
32 stars 14 forks source link

MediaPortal on iOS/ATV2/OSX #28

Closed TheChief79 closed 12 years ago

TheChief79 commented 12 years ago

There must be a problem with the addon. One user send this report:

20:21:53 T:235712512   ERROR: Unable to load /private/var/stash/Applications.wE4oPE/XBMC.app/XBMCData/XBMCHome/addons/pvr.team-mediaportal.tvserver/XBMC_MPTV.pvr, reason: dlopen(/private/var/stash/Applications.wE4oPE/XBMC.app/XBMCData/XBMCHome/addons/pvr.team-mediaportal.tvserver/XBMC_MPTV.pvr, 1): Library not loaded: /Users/Shared/xbmc-depends/iphoneos5.1_armv7/lib/libsmbclient.dylib.0
                                              Referenced from: /private/var/stash/Applications.wE4oPE/XBMC.app/XBMCData/XBMCHome/addons/pvr.team-mediaportal.tvserver/XBMC_MPTV.pvr
                                              Reason: image not found
20:21:53 T:235712512   ERROR: PVR - InitialiseClient - can't initialise add-on 'MediaPortal PVR Client'

Seems to be linked to a wrong library (at wrong place). I get the same error, when i try to enabl the addon on iOS. Any Ideas?

libsmbclient.dylib.0 is included in XBMC.app/Frameworks and XBMC.frapplicance/Frameworks in both builds.

TheChief79 commented 12 years ago

On OSX i get this

Dyld Error Message:
  Symbol not found: __ZN4MPTV6Socket6osInitEv
  Referenced from: /Applications/XBMC.app/Contents/Resources/XBMC/addons/pvr.team-mediaportal.tvserver/XBMC_MPTV.pvr
  Expected in: flat namespace
margro commented 12 years ago

The missing symbol on OSX should be solved with 0938783a1f5174bc6bb1c1328a6c6cdf22379379.

The iOS error seems to be a link problem against the wrong libsmbclient library. This means that the pvrclient part of the build system does not pass the proper library paths. I don't know how to solve this at the moment...

TheChief79 commented 12 years ago

I removed -lsmbclient from Makefile in MP addon. I can enable and disable the addon now, but cannot test, because, i do not have MPTV.

Someone in the XBMC forum tested my latest build and it seems to work on ATV now. He wrote

I tried the new build and everything is fine so far.

But only SD-Channels working, with HD, there no picture but only sound. But thats not a problem for me.

THX a lot!!!!!!!!

-boschdi 

So it should be ok to remove -lsmbclient from Makefile. Memphiz wrote about this:

MPTV addon links to smbclient? Thats not a good idea imho. If XBMC dyloads smbclient at the same time you can get really wonky results i guess.

Beside that - specifiyng -lsmbclient resulting in /Users/Shared/xbmc-depends/iphoneos5.1_armv7/lib/libsmbclient.dylib.0 is completly correct. You just have to ensure that the path gets changed into /Applications/XBMC.app/Frameworks/libsmbclient.dylib.0 inside of the MPTV binary before deployment (search google for install_name_tool). 
margro commented 12 years ago

Thanks for the hint. Just tested on Linux and it is ok to remove it. b8c570697bdf06b95ec9ca2ca052bf1174a6fbaa should fix this issue.