Kodi Community Forum
xbmc minified as a server? - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93)
+--- Thread: xbmc minified as a server? (/showthread.php?tid=132919)



RE: xbmc minified as a server? - bobbintb - 2014-02-05

(2014-02-04, 23:42)uNiversal Wrote: eh, what you said makes no sense, either it compiles fine or fails to compile Big Grin

i believe they are referring to the fact that xbmc compiles fine but not xbmcVideoLibraryScan & xbmc-server, since they all have separate make files.


RE: xbmc minified as a server? - wsnipex - 2014-02-05

check the sources of xbmcVideoLibraryScan & xbmc-server, for what acandido said.


RE: xbmc minified as a server? - mason - 2014-02-05

I already did, it prevents the missing file error but still not compile successfully like stated : http://forum.xbmc.org/showthread.php?tid=132919&pid=1619167#pid1619167


RE: xbmc minified as a server? - bobbintb - 2014-02-05

(2014-02-04, 18:32)mason Wrote: If I remove the settings path from the include since AppParamParser.h is not in settings I get this:

you can't just remove it, you have to point it to the right location. unless that is what you did and i misunderstood this statement but judging from the error output i think that is what you did. did you remove that include line all together or did you edit it to point to the correct location?


RE: xbmc minified as a server? - mason - 2014-02-05

Of course I edited the include line to the proper location of the file, but guess since this changed there might be more but this is out of my competence.


RE: xbmc minified as a server? - bobbintb - 2014-02-05

(2014-02-05, 17:04)mason Wrote: Of course I edited the include line to the proper location of the file, but guess since this changed there might be more but this is out of my competence.

ok, i thought so but just wasnt sure based on the verbiage you used.


RE: xbmc minified as a server? - Unbehagen - 2014-02-10

I'm using xbmc-server (Gotham / git HEAD) in conjunction with the PHP project xbmc-video-server and a mysql database. The setup is *almost* stable. However, if I add new TV show episodes to the library and the scraper doesn't have episode thumbnails, xbmc-server crashes after receiving the request for the thumbnail image, but only AFTER I started a real XBMC instance once which extracts the missing image (this appearently saves a reference to the video file as a thumbnail url to the database). Also, media flags/codec info doesn't seem to work - it only shows after I start a real XBMC instance and look at the file in a list.
Does anyone with more knowledge of the code see a solution to these problems?


RE: xbmc minified as a server? - mason - 2014-02-10

@Unbehagen you where able to compile the server with the gotham source? you mind sharing on which system... I made several tries with clean fresh installed base but always fail with the stated error...


RE: xbmc minified as a server? - Unbehagen - 2014-02-11

You have to change the following line in the makefile of xbmc-server so it also links agains AppPAramParser and XbmcContext. That should do the trick.
Code:
xbmc-server: $(OBJS)
        $(CC) $(CFLAGS) -o xbmc-server $(OBJS) AppParamParser.o XbmcContext.o $(LFLAGS) $(LIBS)

Edit: I see you had trouble compiling VideoLibraryScanner. This was already changed in the makefile I downloaded, but the same modification should help you there:
Code:
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 $<

Edit2: I compiled on Ubuntu 13.10.


RE: xbmc minified as a server? - mason - 2014-02-11

@Unbehagen thanks a lot for your input, I was able to compile the server and scanner! Smile

regarding your issue, did you see this patch? http://forum.xbmc.org/showthread.php?tid=132919&pid=1565792#pid1565792 don't know if this might be outdated or valid for gotham due to my non existing code skills.


RE: xbmc minified as a server? - Unbehagen - 2014-02-12

I'm glad it works for you! Thanks for the suggestion, mason. I already tried it, without success. Does anyone else have an idea how to find the issue that leads to the crash? I think the UPNP server tries to generate a thumbnail, but the player crashes without a working GUI.


RE: xbmc minified as a server? - tech242 - 2014-02-14

Been using KRavENs guide to build Gotham on Ubuntu 12.10. However, when I get to

(2012-12-10, 21:03)KRavEN Wrote:
Code:
make -f make_xbmc-server all

I get a few errors, this is the last one:
Code:
XbmcContext.o: In function `XBMC::Context::Context()':
XbmcContext.cpp:(.text+0xd8): undefined reference to `XbmcCommons::Exception::logger'
XbmcContext.cpp:(.text+0xea): undefined reference to `CThread::logger'
XbmcContext.o: In function `XbmcUtils::LogImplementation::log(int, char const*)':
XbmcContext.cpp:(.text._ZN9XbmcUtils17LogImplementation3logEiPKc[_ZN9XbmcUtils17LogImplementation3logEiPKc]+0x29): undefined reference to `CLog::Log(int, char const*, ...)'
collect2: error: ld returned 1 exit status
make: *** [xbmc-server] Error 1
Full output at http://pastebin.com/8datSiUH

Any idea what I should do? I have downloaded the makefiles from bootlegninja.*, and also updated them according to instructions in this thread.

Appreciate any help.


RE: xbmc minified as a server? - bobbintb - 2014-02-14

tech242, scroll up.


RE: xbmc minified as a server? - tech242 - 2014-02-14

(2014-02-14, 20:38)bobbintb Wrote: tech242, scroll up.
Could you be more specific? I have already updated my makefiles according to Unbehagens post. Also updated path to AppParamParser.h.
Are you referring to the broken git post?


RE: xbmc minified as a server? - mason - 2014-02-15

tech242 if you already successfully compiled xbmc you don't need the git post, I uploaded you my modified files, with them I was able to build the server and the library scanner.

https://dl.dropboxusercontent.com/u/1254345/make_xbmc-server
https://dl.dropboxusercontent.com/u/1254345/make_xbmcVideoLibraryScan
https://dl.dropboxusercontent.com/u/1254345/xbmc-server
https://dl.dropboxusercontent.com/u/1254345/xbmcVideoLibraryScan