• 1
  • 2
  • 3(current)
  • 4
  • 5
  • 58
xbmc minified as a server?
#31
I have installed the binaries with 'make install' and I've ensured that the paths are all set.
I tried your above but used XBMC_HOME=/root/.xbmc (as that's where the user data folder is) and the error is the same.

syslog shows the segfault as
Code:
segfault at 10 ip ####(this number changes) sp ####(as does this one) error 4 in libxbmc.so[7f10c07c0000+ebf000]

EDIT: my sources reference an NFS share and I see in syslog that these shares ARE being mounted/accessed when the program is run so it's partially working. I just won't know where it's segfaulting and why.

EDIT: gdb data if it helps at all
Code:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffe689f700 (LWP 28613)]
0x00007ffff78b4427 in XbmcCommons::ILogger::Log (this=0x666910, loglevel=0,
    format=0x7ffff7958046 "Thread %s %lu terminating") at ilog.cpp:37
37        log(loglevel, strData);
Reply
#32
Ok, so it's writing to xbmc.log and it IS scanning as per the log. When it's done scanning this is that appears:
Code:
11:43:37 T:139881351563008  NOTICE: VideoInfoScanner: Finished scan. Scanning for video info took 00:01
11:43:37 T:139881351563008   DEBUG: CAnnouncementManager - Announcement: OnScanFinished from xbmc
11:43:37 T:139881351563008   DEBUG: Thread CVideoInfoScanner 139881351563008 terminating
11:43:37 T:139881659541376  NOTICE: destroy
11:43:37 T:139881659541376 WARNING: Attempted to remove window 10013 from the window manager when it didn't exist
11:43:37 T:139881659541376 WARNING: Attempted to remove window 10014 from the window manager when it didn't exist
11:43:37 T:139881659541376 WARNING: Attempted to remove window 10015 from the window manager when it didn't exist
11:43:37 T:139881659541376 WARNING: Attempted to remove window 10016 from the window manager when it didn't exist
11:43:37 T:139881659541376 WARNING: Attempted to remove window 10017 from the window manager when it didn't exist
11:43:37 T:139881659541376 WARNING: Attempted to remove window 10018 from the window manager when it didn't exist
11:43:37 T:139881659541376 WARNING: Attempted to remove window 10019 from the window manager when it didn't exist
11:43:37 T:139881659541376 WARNING: Attempted to remove window 10107 from the window manager when it didn't exist
11:43:37 T:139881659541376 WARNING: Attempted to remove window 10115 from the window manager when it didn't exist
11:43:37 T:139881659541376 WARNING: Attempted to remove window 10104 from the window manager when it didn't exist
11:43:37 T:139881659541376    INFO: ADDON: cpluff: 'An unreleased information object was encountered at address 0x26bca00 with reference count 1 when destroying the associated plug-in context. Not releasing the object
11:43:37 T:139881659541376    INFO: ADDON: cpluff: 'An unreleased information object was encountered at address 0x269a680 with reference count 1 when destroying the associated plug-in context. Not releasing the object
11:43:37 T:139881659541376    INFO: ADDON: cpluff: 'An unreleased information object was encountered at address 0x2657540 with reference count 1 when destroying the associated plug-in context. Not releasing the object
11:43:37 T:139881659541376    INFO: ADDON: cpluff: 'An unreleased information object was encountered at address 0x268a740 with reference count 1 when destroying the associated plug-in context. Not releasing the object
11:43:37 T:139881659541376    INFO: ADDON: cpluff: 'An unreleased information object was encountered at address 0x269b0d0 with reference count 1 when destroying the associated plug-in context. Not releasing the object
11:43:37 T:139881659541376    INFO: ADDON: cpluff: 'An unreleased information object was encountered at address 0x2692090 with reference count 1 when destroying the associated plug-in context. Not releasing the object
11:43:37 T:139881659541376    INFO: ADDON: cpluff: 'An unreleased information object was encountered at address 0x2685d50 with reference count 1 when destroying the associated plug-in context. Not releasing the object
11:43:37 T:139881659541376    INFO: ADDON: cpluff: 'An unreleased information object was encountered at address 0x26b9e60 with reference count 1 when destroying the associated plug-in context. Not releasing the object
11:43:37 T:139881659541376    INFO: ADDON: cpluff: 'An unreleased information object was encountered at address 0x26bab70 with reference count 1 when destroying the associated plug-in context. Not releasing the object
11:43:37 T:139881659541376  NOTICE: closing down remote control service
11:43:37 T:139881659541376  NOTICE: unload sections
11:43:37 T:139881070176000  NOTICE: ES: UDP Event server stopped
11:43:37 T:139881070176000   DEBUG: Thread CEventServer 139881070176000 terminating
11:43:37 T:139881659541376   DEBUG: object 0 --> 0 instances
11:43:37 T:139881659541376   DEBUG: object 1 --> 0 instances
11:43:37 T:139881659541376   DEBUG: object 2 --> 0 instances
11:43:37 T:139881659541376   DEBUG: object 3 --> 0 instances
11:43:37 T:139881659541376   DEBUG: object 4 --> 0 instances
11:43:37 T:139881659541376   DEBUG: object 5 --> 0 instances
11:43:37 T:139881659541376   DEBUG: object 6 --> 0 instances
11:43:37 T:139881659541376   DEBUG: object 7 --> 0 instances
11:43:37 T:139881659541376   DEBUG: object 8 --> 0 instances
11:43:37 T:139881659541376   DEBUG: object 9 --> 0 instances
11:43:37 T:139881659541376  NOTICE: Finished Video Library Scan...
Reply
#33
Reworked the sample application to fix the segmentation fault...

Sample XBMC Video Library Scanner CLI application
Reply
#34
Hahah, you suck Smile

Seriously though, thanks for all of your and davilla's help in getting this all setup and configured!

I still have to run the program from within the xbmc source tree though, does this make sense or should I be able to copy it to /usr/local/bin and run it from there? If so I get the error about not being able to find XBMC data.

Cheers again!
Reply
#35
You should be able to run it from anywhere... On my system (Fedora 17 64 bit), I use the following and it works without an issue from any directory...

XBMC_BIN_HOME=/usr/local/lib/xbmc XBMC_HOME=/usr/local/share/xbmc ./xbmcVideoLibraryScan

Note: XBMC_HOME points to where some of the additional binaries, etc are and is not referring to where your configuration is...
Reply
#36
New error unfortunately Sad
Code:
LD      libxbmc.so
xbmc/xbmc.a(xbmcvideolibraryscan.o): In function `main':
/mnt/Misc/Downloads/xbmc-frodo/xbmc/../xbmcvideolibraryscan.cpp:48: multiple definition of `main'
xbmc/xbmc.a(main.o):/mnt/Misc/Downloads/xbmc-frodo/xbmc/main.cpp:47: first defined here
collect2: ld returned 1 exit status
make: *** [libxbmc.so] Error 1

This is on the first 'make' after I've added the SRCS to the Makefile.
Reply
#37
(2012-07-09, 22:55)manxam Wrote: New error unfortunately Sad
Code:
LD      libxbmc.so
xbmc/xbmc.a(xbmcvideolibraryscan.o): In function `main':
/mnt/Misc/Downloads/xbmc-frodo/xbmc/../xbmcvideolibraryscan.cpp:48: multiple definition of `main'
xbmc/xbmc.a(main.o):/mnt/Misc/Downloads/xbmc-frodo/xbmc/main.cpp:47: first defined here
collect2: ld returned 1 exit status
make: *** [libxbmc.so] Error 1

This is on the first 'make' after I've added the SRCS to the Makefile.

Yeah... That's why you need to do the following...

b) Compile xbmcVideoLibraryScan.cpp - This step is a bit of a kludge but it works...
Code:
i) Copy xbmcVideoLibraryScan.cpp to the top level directory of the xbmc code...
ii) Edit xbmc/Makefile and add SRCS+=..\xbmcVideoLibraryScan.cpp at the bottom
ii) Run make
iii) Edit xbmc/Makefile and remove SRCS line from ii) above
iv) Delete libxbmc.so & xbmc.a and run make again
Reply
#38
That's exactly as I built it. The same as I had built the previous version.. Doing a distclean and will try again. I'll let you know how it goes.

Thanks!
Reply
#39
Hmm... Try adding SRCS+=../xbmcVideoLibraryScan.cpp before LIB=xbmc.a rather than at the end of the Makefile...
Reply
#40
EXCELLENT! Must have been a dirty tree. Compiled and run w/o issue including outside of the source tree.

Thanks again for all of your help, you've been awesome!

Cheers!
Reply
#41
Just to give back a little. Here's the source code for a version that will run in the background as a server as well as ubuntu init.d script that I'm using. I've called the compiled binary xbmc-server.bin and saved it in /usr/local/lib/xbmc/ for reference.

Cheers!
Reply
#42
Great work guys. I will be following this closely. I have an unraid server with mysql, connected to several xbmc clients. It would be awesome for my server to be able to update its library without using a client.
Reply
#43
Kungfudriveby, it works flawlessly so there's nothing to follow. Just setup the build environment on your unraid server and have at it...
Reply
#44
Anyone tried to get this running on for example a Synology NAS?

Should i cross-compile it myself to get a working copy or is it not yet stable enough to start with this?
Reply
#45
It is not just as simple as cross-compiling the example... It will also require cross-compiling XBMC to generate the libxbmc.so...
Reply
  • 1
  • 2
  • 3(current)
  • 4
  • 5
  • 58

Logout Mark Read Team Forum Stats Members Help
xbmc minified as a server?9