Kodi Community Forum
Library 'libmaliinstr.so' not found - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Android (https://forum.kodi.tv/forumdisplay.php?fid=164)
+---- Thread: Library 'libmaliinstr.so' not found (/showthread.php?tid=148528)

Pages: 1 2


Library 'libmaliinstr.so' not found - brianf21 - 2012-12-16

I've build XBMC with --enable-player=amlplayer, but every time I run it, it crashes. Here is a portion of the log file.

Code:
09:09:31 T:628912 WARNING: Unable to resolve: libamplayer.so audio_set_delay, reason: Symbol not found: load_library[1091]: Library 'libmaliinstr.so' not found
09:09:31 T:628912   ERROR: Unable to resolve exports from dll libamplayer.so

Any ideas?


RE: Library 'libmaliinstr.so' not found - davilla - 2012-12-16

a) update your libamplayer.so to one that includes audio_set_delay
b) ifdef out the calls to audio_set_delay


RE: Library 'libmaliinstr.so' not found - brianf21 - 2012-12-17

(2012-12-16, 16:38)davilla Wrote: a) update your libamplayer.so to one that includes audio_set_delay
b) ifdef out the calls to audio_set_delay

Thank you.

a) Can I just compile libamplayer.so alone or would I have build it against the kernel's source code? (Which I don't have.)
b) In amlplayer.cpp? Does anyone have a diff?


RE: Library 'libmaliinstr.so' not found - davilla - 2012-12-17

The amlogic kernel drivers must match the code in libamlplayer.so which includes amadec and amcodec. Android users seem to think that just because the names match, they are similar. They are not. amadec and amcodec talk to the kernel, their ABI/API must match.

Since you are already compiling XBMC, why fiddle with libamplayer, fix the XBMC side and you are done.



RE: Library 'libmaliinstr.so' not found - crackerbox - 2012-12-17

(2012-12-17, 19:57)davilla Wrote: The amlogic kernel drivers must match the code in libamlplayer.so which includes amadec and amcodec. Android users seem to think that just because the names match, they are similar. They are not. amadec and amcodec talk to the kernel, their ABI/API must match.

Since you are already compiling XBMC, why fiddle with libamplayer, fix the XBMC side and you are done.

Davilla,

Thanks for all of your hard work on making the xbmc android port a reality. HW decoding is looking very promising thanks to your work.

I assume that having already compiled XBMC, Brian would like to be able to get the most functionality possible out of the hardware he is running XBMC on, I would also assume this would include the ability to adjust the audio delay via the onscreen menu. I know I would.


RE: Library 'libmaliinstr.so' not found - davilla - 2012-12-18

not on non-Pivos hardware, their libamplayer is missing that API function call which I added (ie audio_set_delay).




RE: Library 'libmaliinstr.so' not found - crackerbox - 2012-12-18

Will these changes eventually end up being open so that xbmc will work to its full potential on as many different Android hardware platforms as possible? This would seem more in line with the spirit of XBMC.

In other words, do you ever think we will see the day where XBMC will be able to be downloaded from the Play store, and work with hardware acceleration without the need to make additional changes to the Android OS libraries and kernel?


RE: Library 'libmaliinstr.so' not found - davilla - 2012-12-18

(2012-12-18, 01:52)crackerbox Wrote: Will these changes eventually end up being open so that xbmc will work to its full potential on as many different Android hardware platforms as possible? This would seem more in line with the spirit of XBMC.

In other words, do you ever think we will see the day where XBMC will be able to be downloaded from the Play store, and work with hardware acceleration without the need to make additional changes to the Android OS libraries and kernel?

They are in the open, have been ever since I made them, see https://github.com/pivosgroup. So in the spirit of XBMC, Pivos full supports Open Source, remember that when you choose an Android platform.


XBMC downloaded from the Play store is a different issue. Android is highly fragmented with regard to hardware video acceleration.



RE: Library 'libmaliinstr.so' not found - crackerbox - 2012-12-18

Fair enough.


RE: Library 'libmaliinstr.so' not found - brianf21 - 2012-12-24

Thanks davilla. I ended up using the #ifdef method. What I am noticing now is that the movie information overlay is missing the mp3, acc, or whatever icon and I cannot control the volume (and a whole list of other things, but one step at a time.) I am not sure movie information overlay is the right term. I am referring to the overlay that comes up while you are watching a show that has the poster art and player controls. Is this due to the amlplayer that is being used? It there away around it just changing the XBMC code?

Also, how can I make the dvdplayer the default for SD content and amlplayer the default for HD content?

Thanks for taking the time to answer these posts and all of your hard work on XBMC.


RE: Library 'libmaliinstr.so' not found - davilla - 2012-12-24

(2012-12-24, 04:02)brianf21 Wrote: Thanks davilla. I ended up using the #ifdef method. What I am noticing now is that the movie information overlay is missing the mp3, acc, or whatever icon and I cannot control the volume (and a whole list of other things, but one step at a time.) I am not sure movie information overlay is the right term. I am referring to the overlay that comes up while you are watching a show that has the poster art and player controls. Is this due to the amlplayer that is being used? It there away around it just changing the XBMC code?

The issues you are seeing are due to the libamlplayer.so not supporting access to those items. There is no way around it except to add support to your libamplayer.so. See the Pivos repos, the source code changes are there.




RE: Library 'libmaliinstr.so' not found - crackerbox - 2013-01-01

Are there changes that have been made to the amavjni component? I can't seem to find any additional information on this.


RE: Library 'libmaliinstr.so' not found - davilla - 2013-01-01

(2013-01-01, 21:44)crackerbox Wrote: Are there changes that have been made to the amavjni component? I can't seem to find any additional information on this.

nope, amavjni is not changed.


RE: Library 'libmaliinstr.so' not found - mofaka - 2013-01-16

(2012-12-16, 16:38)davilla Wrote: b) ifdef out the calls to audio_set_delay

davilla, how specifically would I ifdef this out? The only reference I see is in /cores/amlplayer/AMLPlayer.cpp -

Code:
if (m_audio_streams.size() && m_dll->check_pid_valid(m_pid))
  {
    CSingleLock lock(m_aml_csection);
    m_dll->audio_set_delay(m_pid, m_audio_delay);
  }

Which I don't think you're referring to.

Thanks in advance.


RE: Library 'libmaliinstr.so' not found - davilla - 2013-01-16

#ifdef 0

#endif

anything inside ^^ will not be compiled.

ifdef or comment out anything that has to do with audio_set_delay