LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware - ARM (https://www.linuxquestions.org/questions/slackware-arm-108/)
-   -   DLNA and UPnP server on slackware arm (https://www.linuxquestions.org/questions/slackware-arm-108/dlna-and-upnp-server-on-slackware-arm-4175489101/)

louigi600 12-25-2013 12:57 AM

DLNA and UPnP server on slackware arm
 
I want to add DLNA and UPnP services to my ARM device that I use as NAS.

I did a bit of search and I liked the idea to try ushare (that does both DLNA and UPnP). I ran into trouble while evading dependencies:
libupnp built fine but in order to have libdlna, libavformat, from ffmpeg is required but I cant's seem to build ffmpeg:
CC libavdevice/alldevices.o
In file included from ./libavutil/internal.h:136:0,
from ./libavutil/common.h:415,
from ./libavutil/avutil.h:277,
from libavdevice/version.h:28,
from libavdevice/avdevice.h:22,
from libavdevice/alldevices.c:22:
./libavutil/libm.h:52:32: error: static declaration of 'cbrt' follows non-static declaration
static av_always_inline double cbrt(double x)
^
./libavutil/libm.h:59:31: error: static declaration of 'cbrtf' follows non-static declaration
static av_always_inline float cbrtf(float x)
^
./libavutil/libm.h:141:22: error: static declaration of 'rint' follows non-static declaration
static inline double rint(double x)
^
./libavutil/libm.h:148:43: error: static declaration of 'lrint' follows non-static declaration
static av_always_inline av_const long int lrint(double x)
^
./libavutil/libm.h:155:43: error: static declaration of 'lrintf' follows non-static declaration
static av_always_inline av_const long int lrintf(float x)
^
./libavutil/libm.h:162:41: error: static declaration of 'round' follows non-static declaration
static av_always_inline av_const double round(double x)
^
./libavutil/libm.h:169:40: error: static declaration of 'roundf' follows non-static declaration
static av_always_inline av_const float roundf(float x)
^
./libavutil/libm.h:176:41: error: static declaration of 'trunc' follows non-static declaration
static av_always_inline av_const double trunc(double x)
^
./libavutil/libm.h:183:40: error: static declaration of 'truncf' follows non-static declaration
static av_always_inline av_const float truncf(float x)
^
make: *** [libavdevice/alldevices.o] Error 1

Anyone know how to work around this ? (coming from a slackware arm 14.1 running on a seagate goflexnet with kernel borrowed from arclinux)

Anyone else had a go at having DLNA services on Slackware ARM ?
what did you use ?
did you have any issues building the stuff ?

laprjns 03-07-2014 06:38 PM

I've got ushare running on my Slackwarearm powered Dockstar. I built ffmpeg using Salix (Slackware derivative)slkbuild packaging system. Here the configuration options that I use to build the package:

./configure --prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--shlibdir=/usr/lib${LIBDIRSUFFIX} \
--mandir=/usr/man \
--enable-shared \
--disable-static \
--disable-debug \
--enable-pthreads \
--enable-x11grab \
--disable-libfaac \
--enable-libcaca \
--enable-librtmp \
--enable-libmp3lame \
--enable-libmodplug \
--enable-libspeex \
--enable-libwavpack \
--enable-libtheora \
--enable-libv4l2 \
--enable-libvorbis \
--enable-libx264 \
--enable-libschroedinger \
--enable-libass \
--enable-libxvid \
--enable-gpl \
--enable-postproc \
--enable-libopus \
--enable-libopencore-amrnb \
--enable-libopencore-amrwb \
--enable-libvpx \
--enable-libcdio \
--enable-openal \
--enable-avresample \
--enable-version3

louigi600 03-08-2014 12:52 AM

Thanks, I'll have a go at that asap.
Salix is an interesting effort ... but I recently discovered that there are a ton of distributions that are derived from Slackware ... have a look at this: Slackware Family Tree

louigi600 03-09-2014 12:28 AM

Where did you get libass from ?

Code:

bash-4.2# ./configure --prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--shlibdir=/usr/lib${LIBDIRSUFFIX} \
--mandir=/usr/man \
--enable-shared \
--disable-static \
--disable-debug \
--enable-pthreads \
--enable-x11grab \
--disable-libfaac \
--enable-libcaca \
--enable-librtmp \
--enable-libmp3lame \
--enable-libmodplug \
--enable-libspeex \
--enable-libwavpack \
--enable-libtheora \
--enable-libv4l2 \
--enable-libvorbis \
--enable-libx264 \
--enable-libschroedinger \
--enable-libass \
--enable-libxvid \
--enable-gpl \
--enable-postproc \
--enable-libopus \
--enable-libopencore-amrnb \
--enable-libopencore-amrwb \
--enable-libvpx \
--enable-libcdio \
--enable-openal \
--enable-avresample \
--enable-version3
ERROR: libass not found

If you think configure made a mistake, make sure you are using the latest
version from Git.  If the latest version fails, report the problem to the
ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "config.log" produced by configure as this will help
solving the problem.
bash-4.2#

I can't find in in the MANIFEST (unless it's libassuan): did you get a binary package from somewhere or did you build it from source too ?

laprjns 03-09-2014 10:23 AM

Built from source, again using the Salix package build system. Here's the a link to the source.
http://code.google.com/p/libass/downloads/

and the configuration options that I used.
./configure --prefix=/usr /
--libdir=/usr/lib${LIBDIRSUFFIX} /
--localstatedir=/var /
--sysconfdir=/etc /
--disable-static /
--build=$arch-slackware-linux

There will be a few more like xvidcore, opus libvpx which I built from source. If it's not available from slackwarearm repo then I built it from source


All times are GMT -5. The time now is 09:14 AM.