2012-07-25, 15:29
Yes, I only have NFS shares and can successfully scan them. Before I built libxbmc.so I used the --enable-nfs option when I ran configure. ie. ./configure --enable-nfs
(2012-07-25, 13:54)pecinko Wrote: Last time I asked explanation was that it could be used to XBMC 2 XBMC communication.
Even if you are on the same LAN it would be useful to have xbmc server serving stuff in an centralized way (in ideal case on NAS, but I won't mind it running on PC either). Tablet can be used in bed and for listening to music so local LAN != htpc only.
Finally with all manufactures making efforts to support apps on their devices it seems only logical to have centralized server in addition to all-in-one XBMC and use native apps for clients instead of porting XBMC to all posible platforms out there. Sometimes porting is not possible and XBMC resource demands does not suit any device out there. Native apps would be fast and made by people that are familiar with given platform and I really think there will be lots of them as XBMC is open platform as opposed to others.
Wether devs are interested in this and if this can be achieved through UPnP - I really don't know.
(2012-07-25, 14:04)Odon Wrote: Hi,
anyone has success with xbmc-server apps and NFS source scanning ? I can't scan NFS on my server side client and I can't easily test with complete XBMC.bin.
(2012-06-13, 10:48)vicbitter Wrote: With the latest code from head you now create a libxbmc.so shared library that can be used to create your own CLI (or server-based) XBMC applications...
Here is a sample Video Library scanner application that uses libxbmc.so to update XBMCs Video Library...
http://pastebin.com/WpEvRTws
Enjoy!
(2012-08-25, 21:52)vicbitter Wrote: You might want to use the updated sample code from this post
(2012-08-26, 02:54)schmoko Wrote: Has anyone created a less kludgy way of building the sample application? My makefile-fu is pretty weak, so I'm hoping someone else has.
Ideally there should be a way to build without having to link the entire xbmc source tree (isn't that the point of a standalone lib?), but I would be happy just to be able to build xbmc-server in parallel with xbmc without temporary Makefile changes.
Ian.
SOURCES := xbmc-server.cpp
LFLAGS += -lxbmc -L..
# Objs are all the sources, with .cpp replaced by .o
OBJS := $(SOURCES:.cpp=.o)
all: xbmc-server
include ../Makefile.include
xbmc-server: $(OBJS)
$(CC) $(CFLAGS) -o xbmc-server $(OBJS) $(LFLAGS) $(LIBS)
# Get a .o from a .cpp by calling compiler with cflags and includes (if defined)
.cpp.o:
$(CC) $(CFLAGS) $(INCLUDES) -c $<
(2012-08-27, 23:23)Odon Wrote:(2012-08-26, 02:54)schmoko Wrote: Has anyone created a less kludgy way of building the sample application? My makefile-fu is pretty weak, so I'm hoping someone else has.
Ideally there should be a way to build without having to link the entire xbmc source tree (isn't that the point of a standalone lib?), but I would be happy just to be able to build xbmc-server in parallel with xbmc without temporary Makefile changes.
Ian.
Makefile for xbmc-server (sample application is xbmc-server.cpp in a subfolder of XBMC tree with included Makefile => "make all"):
cd xbmc-frodo directory
./bootstrap
./configure --enable-shared-lib
make
cd xbmc-frodo directory
cd xbmc
make -f make_xbmcVideoLibraryScan all
XBMC_BIN_HOME=/usr/local/lib/xbmc XBMC_HOME=/usr/local/share/xbmc ./xbmcVideoLibraryScan