Hi,

2013/4/29 Leonard de Ruijter <[email protected]>:
> Hello,
>
> The debian version of liquidsoap inspired me to compile liquidsoap with
> dynamic plugins. For testing purposes, i checked out the most recent git
> branch, created a PACKAGES file, did: ./configure \
> --enable-ogg-dynamic-plugin --enable-schroedinger-dynamic-plugin \
> --enable-flac-dynamic-plugin   --enable-speex-dynamic-plugin \
> --enable-vorbis-dynamic-plugin --enable-theora-dynamic-plugin \
> --enable-sdl-dynamic-plugin --enable-gavl-dynamic-plugin \
> --enable-mad-dynamic-plugin   --enable-faad-dynamic-plugin \
> --enable-xmlplaylist-dynamic-plugin --enable-lastfm-dynamic-plugin \
> --enable-voaacenc-dynamic-plugin --enable-taglib-dynamic-plugin \
> --enable-cry-dynamic-plugin --enable-portaudio-dynamic-plugin \
> --enable-pulseaudio-dynamic-plugin --enable-ao-dynamic-plugin \
> --enable-graphics-dynamic-plugin --enable-bjack-dynamic-plugin \
> --enable-soundtouch-dynamic-plugin   --enable-ladspa-dynamic-plugin \
> --enable-oss-dynamic-plugin --enable-alsa-dynamic-plugin \
> --enable-flac.ogg-dynamic-plugin --enable-samplerate-dynamic-plugin \
> --enable-lame-dynamic-plugin --enable-camlimages-dynamic-plugin \
> --enable-gstreamer-dynamic-plugin --enable-gd-dynamic-plugin \
> --enable-opus-dynamic-plugin --enable-frei0r-dynamic-plugin \
> --enable-yojson-dynamic-plugin --enable-lo-dynamic-plugin \
> --enable-ffmpeg-dynamic-plugin --enable-aacplus-dynamic-plugin \
> --disable-custom
> And everything i want nicely is configured as being a plugin. However,
> the making part fails.
> OCAMLOPT -shared plugins/lastfm.cmxs
> ocamlfind: Package `xmlplaylist' not found
> make[3]: *** [plugins/lastfm.cmxs] Error 2
> make[3]: Leaving directory `liquidsoap-full/liquidsoap/src'
> make[2]: *** [all-auto-ocaml-prog] Error 2
> make[2]: Leaving directory `liquidsoap-full/liquidsoap/src'
> make[1]: *** [all-subdirs] Error 2
> make[1]: Leaving directory `liquidsoap-full/liquidsoap'
> make: *** [all] Error 1
>
> 1. How to tell ocamlfind to find xmlplaylist? The debian rules don't
> seem to use additional commands for this.

Hmmm.. dynamic plugins compilation hasn't been tested much outside of
debian package's compilation. In this context, xmlplaylist is
installed system-wide, and so are all the modules shipped in
liquidsoap-full.

For the time being you should be fine installing xmlplaylist
system-wide. I will take a look at this issue as soon as time allows..

> 2. What does the disable-custom flag do? I copied it from the debian
> rules, but don't understand its functionality

It's a flag that is related to some intrinsics when compiling bindings
in bytecode. With custom enabled, ocaml can store the binary blue that
bindings need to interface with external libraries inside the compiled
binaries. Otherwise, you need to ship a seperate .so shared library
for those. However, with custom enabled, binary glue may be lost e.g.
when stripping compiled binary. Also, I think it wasn't fully
standard.

This flag has been disabled in Debian in an intent to cleanout ocaml
stuff. I believe that in first approach you should not care about it.
Even more if you are compiling in native mode anyway.

Romain

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to