"Unable to find path to XBMC data files!"
#1
XBMC won't start with the message: "Unable to find path to XBMC data files!". There is no logfile (.xbmc ditectory is not being created)

I am compiling XBMC from sources (Dharma branch) using the following script:
Code:
export PATH="/usr/lib/ccache/bin:$PATH"
export CCACHE_DIR=/var/tmp/ccache
make clean
svn up
./bootstrap
./configure
make -j5 && \
make -j5 -C lib/addons/script.module.pil && \
make -j5 -C lib/addons/script.module.pysqlite && \
make install

XBMC is installed with prefix /usr/local. After "make install" directory structure (1 level) is:

Code:
mbox:~> find /usr/local/share/xbmc /usr/local/lib/ -maxdepth 1
/usr/local/share/xbmc
/usr/local/share/xbmc/FEH.py
/usr/local/share/xbmc/addons
/usr/local/share/xbmc/language
/usr/local/share/xbmc/media
/usr/local/share/xbmc/sounds
/usr/local/share/xbmc/userdata
/usr/local/share/xbmc/system
/usr/local/lib/
/usr/local/lib/win32
/usr/local/lib/.keep
/usr/local/lib/xbmc

strace shows the following:

Code:
mbox@mbox ~ $ strace -f xbmc 2>&1 | grep -E "xbmc.*No such file or directory"
[...]
[pid 19163] stat("/usr/local/share/xbmc/pygame", 0x7fff58ae27d0) = -1 ENOENT (No such file or directory)
[pid 19163] open("/usr/local/share/xbmc/pygame.so", O_RDONLY) = -1 ENOENT (No such file or directory)
[pid 19163] open("/usr/local/share/xbmc/pygamemodule.so", O_RDONLY) = -1 ENOENT (No such file or directory)
[pid 19163] open("/usr/local/share/xbmc/pygame.py", O_RDONLY) = -1 ENOENT (No such file or directory)
[pid 19163] open("/usr/local/share/xbmc/pygame.pyc", O_RDONLY) = -1 ENOENT (No such file or directory)
[pid 19170] stat("/usr/local/lib64/xbmc/language", 0x7fff9f7e0bc0) = -1 ENOENT (No such file or directory)

The last line causes the error, I think, as language directory is under /usr/local/share. I worked this around by creating links for this and several other several directories between /usr/local/lib and /usr/local/share and XBMC works fine, but this is just a workaround.

Looks like I'm doing something wrong, but I cannot figure this one out. This is on Gentoo, BTW.

Help. :-)
Reply
#2
When I create only one link: /usr/local/lib/xbmc/language -> /usr/local/share/xbmc/language XBMC starts and produces the following logfile:

http://pastebin.com/KGzB2yeZ
Reply
#3
Hi,
if anybody still get's this error and finds this page, like I did...

At least in gentoo you just have to do an ./configure --prefix=/usr/local
Although this is default, there seems to be a difference. Don't know if it's better in the current svn-version, but in pvr-testing2-svn this problem still exists. In Ubuntu this problem did not occur.

Edit: worked only until a crash of xbmc Sad
Reply
#4
I'm getting the exact same problem after building 10.1-Dharma
Reply
#5
your /.xbmc file is hidden, and directory that is hidden has period in front of it.
Proper Usage of a debug log
If I managed to help you in any way, please add to my reputation
Reply
#6
Hudson_Hawk04 Wrote:your /.xbmc file is hidden, and directory that is hidden has period in front of it.

What do you mean? I don't have a /.xbmc directory. Maybe you meant ~/.xbmc?

I always remove this directory and it contents when I upgrade/downgrade xbmc as there has been some compatibility issues with the files/formats. The directory will be re-created when I start xbmc. I removed ~/.xbmc before I started /usr/local/bin/xbmc.

"hidden" files can always be listed by "ls -l"
Reply
#7
hidden files are listed using the ls -a (-a being the switch for all), ls -l (-l is the switch for list) of the files in your current operating directory.
Proper Usage of a debug log
If I managed to help you in any way, please add to my reputation
Reply
#8
Of course it's -a. But I still don't understand your comment about /.xbmc?
Reply
#9
mauorrizze Wrote:Hi,
iAt least in gentoo you just have to do an ./configure --prefix=/usr/local

I did this:

Code:
autoreconf -vif xbmc/lib/libid3tag/libid3tag
./configure --prefix=/usr/local
make -j2
make -C lib/addons/script.module.pil
make -C lib/addons/script.module.pysqlite

su -
cd ~xbmc/xbmc.git
make install

and get the same error:

Code:
$ type xbmc
xbmc is hashed (/usr/local/bin/xbmc)
$ xbmc
Unable to find path to XBMC data files!
CRITSEC[0x117d940]: Trying to enter destroyed section.
CRITSEC[0x117d940]: Trying to leave destroyed section.
Reply
#10
I took a look at the source code and it seems like there is problem with locating the files. However one can control the location using an environment variable:

Code:
XBMC_HOME=/usr/local/share/xbmc /usr/local/bin/xbmc
Reply

Logout Mark Read Team Forum Stats Members Help
"Unable to find path to XBMC data files!"0