2013-05-03, 17:55
i get stuck trying to start the daemon on slackware 13.37. apparently slackware doesnt have start-stop-daemon.
anyone know how to start it with out it?
anyone know how to start it with out it?
(2013-05-03, 22:10)leechguy Wrote: The update-rc.d command creates symlinks in the /etc/rc[0-6].d/ directories to the xbmc-server script in /etc/init.d/.
cd /etc/init.d
sudo wget https://dl.dropbox.com/u/20980813/xbmc-server
sudo chmod 744 xbmc-server
sudo update-rc.d xbmc-server defaults
sudo service xbmc-server start
DAEMON=/usr/local/sbin/xbmcserver/xbmc-server
DAEMON_OPTS=" --no-test --nolirc -p"
# script name
NAME=xbmc
# app name
DESC=XBMC
# user
RUN_AS=xbmc
# Path of the PID file
PID_FILE=/var/run/xbmc.pid
set -e
case "$1" in
start)
echo "Starting $DESC"
start-stop-daemon --start -c $RUN_AS --background --pidfile $PID_FILE --make-pidfile --exec $DAEMON -- $DAEMON_OPTS
;;
/usr/local/sbin/xbmcserver/xbmc-server --no-test --nolirc -p"
bash-4.1# /opt/xbmc-server/xbmc-server --no-test --nolirc -p
XBMC Media Center 13.0-ALPHA4 Git:20130502-83ac119
Copyright (C) 2005-2011 Team XBMC - http://www.xbmc.org
Starting XBMC Server
ERROR: Unable to create application. Exiting
git tag -l
git checkout tags/<tagname>
git checkout tags/12.2-Frodo
include ../Makefile.include
SOURCES := xbmcVideoLibraryScan.cpp
LFLAGS += -lxbmc -lstdc++ -L..
#INCLUDES += -I.
# Objs are all the sources, with .cpp replaced by .o
OBJS := $(SOURCES:.cpp=.o)
all: xbmcVideoLibraryScan
xbmcVideoLibraryScan: $(OBJS)
$(CC) $(CFLAGS) -o xbmcVideoLibraryScan $(OBJS) AppParamParser.o XbmcContext.o $(LFLAGS) $(LIBS)
# Get a .o from a .cpp by calling compiler with cflags and includes (if defined)
.cpp.o:
$(CC) $(CFLAGS) $(INCLUDES) -c $<
// Install Taglib this way as per one of Odin's posts.
cd /usr/src
wget https://github.com/downloads/taglib/taglib/taglib-1.8.tar.gz
tar xzf taglib-1.8.tar.gz
cd taglib-1.8
cmake -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_RELEASE_TYPE=Release .
make
make install
rm /usr/local/lib/libtag*.a
cp /usr/src/taglib-1.8/taglib/libtag.so.1 /lib
git clone https://github.com/xbmc/xbmc.git
cd xbmc
// at this point copy the make_xbmc-server, make_xbmcVideoLibraryScan, xbmc-server.cpp, xbmcVideoLibraryScan.cpp into ~/xbmc/xbmc
./bootstrap
./configure --enable-shared-lib --disable-debug --disable-vdpau --disable-vaapi --disable-crystalhd --disable-vdadecoder --disable-vtbdecoder --disable-openmax --disable-joystick --disable-xrandr --disable-rsxs --disable-projectm --disable-rtmp --disable-airplay --disable-airtunes --disable-dvdcss --disable-optical-drive --disable-libbluray --disable-libusb --disable-libcec --disable-libmp3lame --disable-libcap
make install
cp libxbmc.so /lib
cp libxbmc.so /lib64
ldconfig
cd xbmc
make -f make_xbmcVideoLibraryScan all
make -f make_xbmc-server all
Change the line from #include "settings/AppParamParser.h" to #include "AppParamParser.h"
[root@localhost xbmc]# make -f make_xbmcVideoLibraryScan all
/usr/bin/ccache gcc -O2 -fPIC -DPIC -D_REENTRANT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DNDEBUG=1 -o xbmcVideoLibraryScan xbmcVideoLibraryScan.o -lxbmc -lstdc++ -L..
xbmcVideoLibraryScan.o: In function `main':
xbmcVideoLibraryScan.cpp:(.text+0x697): undefined reference to `XBMC::Context::Context()'
xbmcVideoLibraryScan.cpp:(.text+0x71e): undefined reference to `CAppParamParser::CAppParamParser()'
xbmcVideoLibraryScan.cpp:(.text+0x72b): undefined reference to `CAppParamParser::Parse(char const**, int)'
xbmcVideoLibraryScan.cpp:(.text+0x986): undefined reference to `XBMC::Context::~Context()'
xbmcVideoLibraryScan.cpp:(.text+0xbca): undefined reference to `XBMC::Context::~Context()'
collect2: ld returned 1 exit status
make: *** [xbmcVideoLibraryScan] Error 1
[root@localhost xbmc]# make -f make_xbmc-server all
/usr/bin/ccache gcc -O2 -fPIC -DPIC -D_REENTRANT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DNDEBUG=1 -o xbmc-server xbmc-server.o -lxbmc -lstdc++ -L..
xbmc-server.o: In function `main':
xbmc-server.cpp:(.text+0x532): undefined reference to `XBMC::Context::Context()'
xbmc-server.cpp:(.text+0x63f): undefined reference to `CAppParamParser::CAppParamParser()'
xbmc-server.cpp:(.text+0x64c): undefined reference to `CAppParamParser::Parse(char const**, int)'
xbmc-server.cpp:(.text+0x794): undefined reference to `XBMC::Context::~Context()'
xbmc-server.cpp:(.text+0x952): undefined reference to `XBMC::Context::~Context()'
collect2: ld returned 1 exit status
make: *** [xbmc-server] Error 1
(2013-05-23, 11:03)codemanat Wrote: Hello folks!
I need your help. I just try now for days to compile a Headless Version of xbmc. I make this on two different Systems,
(Centos6.4 and Ubuntu Precise) but i failed every time i try to compile the xbmc-server.cpp and xbmc-videolibaryscan.cpp app.
For Centos, there are some Modifications in order to get Taglib realized from the Configure Command (Update CMAKE to 2.8.8 outside yum, export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig/" ), but both Hosts have the same Base Level now.
What i make so far. (On both Machines)
Code:// Install Taglib this way as per one of Odin's posts.
cd /usr/src
wget https://github.com/downloads/taglib/taglib/taglib-1.8.tar.gz
tar xzf taglib-1.8.tar.gz
cd taglib-1.8
cmake -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_RELEASE_TYPE=Release .
make
make install
rm /usr/local/lib/libtag*.a
cp /usr/src/taglib-1.8/taglib/libtag.so.1 /lib
git clone https://github.com/xbmc/xbmc.git
cd xbmc
// at this point copy the make_xbmc-server, make_xbmcVideoLibraryScan, xbmc-server.cpp, xbmcVideoLibraryScan.cpp into ~/xbmc/xbmc
./bootstrap
./configure --enable-shared-lib --disable-debug --disable-vdpau --disable-vaapi --disable-crystalhd --disable-vdadecoder --disable-vtbdecoder --disable-openmax --disable-joystick --disable-xrandr --disable-rsxs --disable-projectm --disable-rtmp --disable-airplay --disable-airtunes --disable-dvdcss --disable-optical-drive --disable-libbluray --disable-libusb --disable-libcec --disable-libmp3lame --disable-libcap
make install
cp libxbmc.so /lib
cp libxbmc.so /lib64
ldconfig
cd xbmc
make -f make_xbmcVideoLibraryScan all
make -f make_xbmc-server all
In order to run this command i have to edit in the "xbmcVideoLibraryScan.cpp"
Code:Change the line from #include "settings/AppParamParser.h" to #include "AppParamParser.h"
But both of the above make commands fails with the following error Messages.
Code:[root@localhost xbmc]# make -f make_xbmcVideoLibraryScan all
/usr/bin/ccache gcc -O2 -fPIC -DPIC -D_REENTRANT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DNDEBUG=1 -o xbmcVideoLibraryScan xbmcVideoLibraryScan.o -lxbmc -lstdc++ -L..
xbmcVideoLibraryScan.o: In function `main':
xbmcVideoLibraryScan.cpp:(.text+0x697): undefined reference to `XBMC::Context::Context()'
xbmcVideoLibraryScan.cpp:(.text+0x71e): undefined reference to `CAppParamParser::CAppParamParser()'
xbmcVideoLibraryScan.cpp:(.text+0x72b): undefined reference to `CAppParamParser::Parse(char const**, int)'
xbmcVideoLibraryScan.cpp:(.text+0x986): undefined reference to `XBMC::Context::~Context()'
xbmcVideoLibraryScan.cpp:(.text+0xbca): undefined reference to `XBMC::Context::~Context()'
collect2: ld returned 1 exit status
make: *** [xbmcVideoLibraryScan] Error 1
Code:[root@localhost xbmc]# make -f make_xbmc-server all
/usr/bin/ccache gcc -O2 -fPIC -DPIC -D_REENTRANT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DNDEBUG=1 -o xbmc-server xbmc-server.o -lxbmc -lstdc++ -L..
xbmc-server.o: In function `main':
xbmc-server.cpp:(.text+0x532): undefined reference to `XBMC::Context::Context()'
xbmc-server.cpp:(.text+0x63f): undefined reference to `CAppParamParser::CAppParamParser()'
xbmc-server.cpp:(.text+0x64c): undefined reference to `CAppParamParser::Parse(char const**, int)'
xbmc-server.cpp:(.text+0x794): undefined reference to `XBMC::Context::~Context()'
xbmc-server.cpp:(.text+0x952): undefined reference to `XBMC::Context::~Context()'
collect2: ld returned 1 exit status
make: *** [xbmc-server] Error 1
I think this happends if the libxbmc.so is not recognized but i have issued ldconfig.
I have also tryed to addng the SRCS+=../xbmcVideoLibraryScan.cpp line before LIB=xbmc.a rather than at the end of the Makefile.
Has anyone a suggestion for what i'am doing wrong here?
Much thnx for your support!!
Michael
(2013-05-23, 17:01)vicbitter Wrote: You need to update your makefile to link AppParamParser.o XbmcContext.o. See post #442...
# make_xbmc-server
...
xbmc-server: $(OBJS)
$(CC) $(CFLAGS) -o xbmc-server $(OBJS) $(LFLAGS) $(LIBS)
...
# make_xbmcVideoLibraryScan
...
xbmcVideoLibraryScan: $(OBJS)
$(CC) $(CFLAGS) -o xbmcVideoLibraryScan $(OBJS) $(LFLAGS) $(LIBS)
...
# make_xbmc-server
...
xbmc-server: $(OBJS)
$(CC) $(CFLAGS) -o xbmc-server $(OBJS) AppParamParser.o XbmcContext.o $(LFLAGS) $(LIBS)
...
# make_xbmcVideoLibraryScan
...
xbmcVideoLibraryScan: $(OBJS)
$(CC) $(CFLAGS) -o xbmcVideoLibraryScan $(OBJS) AppParamParser.o XbmcContext.o $(LFLAGS) $(LIBS)
...