srasher wrote: 
> 
> Initially I just left the libs where they were installed by "sudo make
> install" after compilation, which was "/usr/local/lib".
> 
This is the root cause of all subsequent issues - cmake needs to already
configure for the correct final destination (in order to set the correct
rpath for the libs).
Add the following to the beginning of musly's CMakeLists.txt if you
build from the shell (if Eigen3 isn't in /tmp, adjust the path):

Code:
--------------------
    
  add_definitions(-DMUSLY_VERSION="${MUSLY_VERSION}")
  # start additions
  SET(CMAKE_INSTALL_PREFIX "/opt/musly-0.2")
  SET(CMAKE_BUILD_TYPE "Release")
  SET(CMAKE_SKIP_INSTALL_RPATH  FALSE)
  SET(CMAKE_SKIP_RPATH  FALSE)
  SET(EIGEN3_INCLUDE_DIR "/tmp/eigen-eigen-5a0156e40feb/")
  
  SET(CMAKE_SKIP_BUILD_RPATH  FALSE)
  SET(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE) 
  SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
  # end additions
  
--------------------


srasher wrote: 
> 
> After that I got the same error for "libmusly_resample.so", although it
> was also put into the directory mentioned above.
> 
python's library loader cannot change the runtime linker path - while
the library to load (libmusly.so ) can be anywhere, any dependencies (
in this case, libmusly_resample.so) have to be either in the standard 
runtime linker path, or in the rpath specified when building
libmusly,so

srasher wrote: 
> 
> and latter grep for "libmusly_resample.so" in that log file found that
> neither "/usr/local/lib" nor "/opt/musly-0.2/lib" are used to search for
> that lib. So as a dirty solution I put it into "/usr/lib".
> 
Check if your runtime linker path  includes /usr/local/lib (files
/etc/ld.so.conf and/or /etc/ld.so.conf.d/). However, if libmusly.so is
built as described above, this shouldn't be necessary.



SW: 'extGUI4LMS'
(http://forums.slimdevices.com/showthread.php?98186-Announce-Alternative-Web-Interface-(beta))
| 'Playlist Editor'
(http://forums.slimdevices.com/showthread.php?108199-Announce-LMS-Playlist-Editor)
| 'Music Classification'
(http://forums.slimdevices.com/showthread.php?108278-Announce-Essentia-Integration-music-classification-(moods-genres-))
| 'Similar Music'
(http://forums.slimdevices.com/showthread.php?108495-Announce-LMSmusly-play-similar-music)
| 'LMSlib2go' (https://www.nexus0.net/pub/sw/lmslib2go/)
HowTos: 'build a self-contained LMS'
(http://forums.slimdevices.com/showthread.php?99648-Howto-build-a-self-contained-LMS)
| 'Ogg Opus'
(http://forums.slimdevices.com/showthread.php?107011-Howto-play-Ogg-Opus-files)
| 'Bluetooth/ALSA'
(http://forums.slimdevices.com/showthread.php?107230-Howto-Bluetooth-streaming-to-from-LMS-(ALSA-only-no-PulseAudio))
------------------------------------------------------------------------
Roland0's Profile: http://forums.slimdevices.com/member.php?userid=56808
View this thread: http://forums.slimdevices.com/showthread.php?t=108495

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to