Kodi Community Forum

Full Version: Installation from source: "Unable to find path to Kodi data files!"
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hi guys,

because I found out, that the gentoo-ebuilds aren't working I try to install from source.
I followed the steps EXACTLY at wiki and from the README,
compiling and installing did fine...but now I cannot start kodi.

if I type 'kodi' direclty into terminal (as user) I get a "command not found", starting it from /usr/local/lib/kodi/kodi.bin or /usr/local/bin/kodi results in
"Unable to find path to Kodi data files!"

there has a '.kodi' folder been created during installation, though in the /root folder and not the user folder, but even if I copy the folder over to user-directory, same error occurs.
If I understand that thing right, the .kodi folder isn't necessary, it should be recreated on first start...the data files should be somethin else...?

the /usr/local/bin/kodi file says the following at beginning:
Code:
APP=Kodi
bin_name=kodi
SAVED_ARGS="$@"
prefix="/usr/local"
exec_prefix="/usr/local"
datarootdir="${prefix}/share"
LIBDIR="${exec_prefix}/lib"
CRASHLOG_DIR=${CRASHLOG_DIR:-$HOME}
USERDATA_DIR="${HOME}/.${bin_name}"

and the files are located in /usr/local/share/kodi/ and /usr/local/lib/kodi/ directories

EDIT: no change as root, same errors...

Any idea?
1.) make sure you compiled from a clean vanilla kodi source tree (git clone https://github.com/xbmc/xbmc.git) or git clean -xfd if you already have a clone
2.) make sure /usr/local/bin is in your PATH
3.) make sure /usr/local/share/kodi/ exists and is not empty
4.) make sure /usr/local/lib and its sub folders exists

if all fails, please pastebin the output of
strace /usr/local/lib/kodi/kodi.bin
Hi,

thanks for answering!

/usr/local/bin is in my PATH, I also tried to add KODI_HOME and XBMC_HOME as env-variables to system or directly to binary call, but no change...
I did clone the git repo with your suggested command before, now I try with latest stable: git clone -b Isengard https://github.com/xbmc/xbmc.git

after compiling I will try again and post the strace-output.
1.) did compile with: git clone -b Isengard https://github.com/xbmc/xbmc.git
'./configure', 'make' and 'sudo make install' worked fine

2.)
Code:
kodi@Sigma /xbmc $ echo $PATH
/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.9.3

3.)
Code:
kodi@Sigma /xbmc $ ls -l /usr/local/share/kodi/
total 16
drwxr-xr-x 52 root root 4096 Jan  4 16:47 addons
drwxr-xr-x  3 root root 4096 Jan  4 16:47 media
drwxr-xr-x  9 root root 4096 Jan  4 16:47 system
drwxr-xr-x  2 root root 4096 Jan  4 16:47 userdata

4.)
Code:
kodi@Sigma /xbmc $ ls -l /usr/local/lib/
total 1052
drwxr-xr-x 4 root root    4096 Jan  4 16:47 kodi
-rw-r--r-- 1 root root 1066114 Jan  4 11:22 libdcadec.a
drwxr-xr-x 2 root root    4096 Jan  4 11:22 pkgconfig
lrwxrwxrwx 1 root root       4 Jan  4 16:47 xbmc -> kodi

same output:
Code:
kodi@Sigma ~/xbmc $ kodi
Unable to find path to Kodi data files!
strace output is too long to put all in one post, so as pastebin:
http://pastebin.com/LnNUjr0K

At the end there's a line searching for userdata in /usr/local/lib64/kodi/ but the folder is beyond /usr/local/share/kodi/

All in all it looks like the share dir and the lib dir-links are messed up.
I tried to manually create a link /usr/local/lib64/kodi/userdata -> /usr/local/share/kodi/userdata/
after that the strace output ends with following:

Code:
...
...
sendmsg(9, {msg_name(0)=NULL, msg_iov(2)=[{"l\1\0\1\0\0\0\0\6\0\0\0y\0\0\0\1\1o\0\27\0\0\0/org/fre"..., 144}, {"", 0}], msg_controllen=0, msg_flags=0}, MSG_NOSIGNAL) = 144
poll([{fd=9, events=POLLIN}], 1, 25000) = 1 ([{fd=9, revents=POLLIN}])
recvmsg(9, {msg_name(0)=NULL, msg_iov(1)=[{"l\3\1\1K\0\0\0\5\0\0\0u\0\0\0\6\1s\0\4\0\0\0:1.5\0\0\0\0"..., 2048}], msg_controllen=0, msg_flags=MSG_CMSG_CLOEXEC}, MSG_CMSG_CLOEXEC) = 211
recvmsg(9, 0x7ffd4a69d3e0, MSG_CMSG_CLOEXEC) = -1 EAGAIN (Resource temporarily unavailable)
write(8, "18:07:25 T:139644699760576   DEB"..., 159) = 159
clock_gettime(CLOCK_MONOTONIC_RAW, {1738, 169517728}) = 0
write(8, "18:07:25 T:139644699760576  NOTI"..., 53) = 53
brk(0x55a0b2997000)                     = 0x55a0b2997000
open("/usr/local/lib64/kodi/system/settings/settings.xml", O_RDONLY) = -1 ENOENT (No such file or directory)
write(8, "18:07:25 T:139644699760576   ERR"..., 202) = 202
write(8, "18:07:25 T:139644699760576   FAT"..., 72) = 72
write(2, "ERROR: Unable to create applicat"..., 45ERROR: Unable to create application. Exiting
) = 45
close(4)                                = 0
munmap(0x7f0190c01000, 4096)            = 0
close(5)                                = 0
close(6)                                = 0
clock_gettime(CLOCK_MONOTONIC_RAW, {1738, 170267795}) = 0
close(8)                                = 0
munmap(0x7f0190c00000, 4096)            = 0
close(3)                                = 0
exit_group(-1)                          = ?
+++ exited with 255 +++

the system-dir already exists at /usr/local/lib64/kodi/system:
Code:
Sigma ~ # ls -l /usr/local/lib64/kodi/system
total 3292
-rwxr-xr-x 1 root root  268080 Jan  4 16:47 hdhomerun-x86_64-linux.so
-rwxr-xr-x 1 root root 2577456 Jan  4 16:47 ImageLib-x86_64-linux.so
-rwxr-xr-x 1 root root  371328 Jan  4 16:47 libcpluff-x86_64-linux.so
-rwxr-xr-x 1 root root  126784 Jan  4 16:47 libexif-x86_64-linux.so
-rwxr-xr-x 1 root root   12656 Jan  4 16:47 libsse4-x86_64-linux.so
drwxr-xr-x 3 root root    4096 Jan  4 16:47 players

but I think it looks for this one:
Code:
Sigma ~ # ls -l /usr/local/share/kodi/system
total 68
-rw-r--r-- 1 root root  6352 Jan  4 16:47 colors.xml
-rw-r--r-- 1 root root  2900 Jan  4 16:47 IRSSmap.xml
drwxr-xr-x 2 root root  4096 Jan  4 16:47 keyboardlayouts
drwxr-xr-x 3 root root  4096 Jan  4 16:47 keymaps
drwxr-xr-x 5 root root  4096 Jan  4 16:47 library
-rw-r--r-- 1 root root 15497 Jan  4 16:47 Lircmap.xml
-rw-r--r-- 1 root root  3581 Jan  4 16:47 peripherals.xml
-rw-r--r-- 1 root root  1724 Jan  4 16:47 playercorefactory.xml
drwxr-xr-x 3 root root  4096 Jan  4 16:47 players
drwxr-xr-x 2 root root  4096 Jan  4 16:47 python
drwxr-xr-x 2 root root  4096 Jan  4 16:47 settings
drwxr-xr-x 2 root root  4096 Jan  4 16:47 shaders
-rw-r--r-- 1 root root  3029 Jan  4 16:47 X10-Lola-IRSSmap.xml

So, what else could I try?
there is something really strange going on. I have no idea why It would try to install anything to lib64.
Please pastebin config.log and config.status

Also, does it work if you use a non-system path as prefix?
i.e. configure --prefix=~/kodi
lib64 and lib are symlinked together, if that is confusing you, I have a multilib system:
Code:
Sigma xbmc # ls -l /usr/local/
total 24
drwxr-xr-x 2 root root 4096 Jan  4 16:47 bin
drwxr-xr-x 4 root root 4096 Jan  4 12:29 include
lrwxrwxrwx 1 root root    5 Jan 16  2014 lib -> lib64
drwxr-xr-x 4 root root 4096 Jan  4 16:47 lib64
drwxr-xr-x 3 root root 4096 Jan  4 11:33 portage
drwxr-xr-x 2 root root 4096 Jan 16  2014 sbin
drwxr-xr-x 7 root root 4096 Jan  4 16:47 share

config.log
http://pastebin.com/mGmbaNjL

config.status
http://pastebin.com/LZ0Xkw5J

I am compiling with local path, let's see...
even if I install to home, no change...

Code:
kodi@Sigma ~/xbmc $ make install
Copying kodi binary to /home/kodi/kodi2/lib/kodi/
You can run kodi with the command 'kodi'
Copying support and legal files...
Done!
Copying system files to /home/kodi/kodi2/share/kodi
Copying bindings to /home/kodi/kodi2/include/kodi

strace output:
http://pastebin.com/vV77G2fG

same as before:
Code:
...
stat("/home/kodi/kodi2/lib/kodi/userdata", 0x7ffcc10ecf60) = -1 ENOENT (No such file or directory)
...

whilst files are in /home/kodi/kodi2/share/kodi/userdata ...
never seen this. Config logs are fine. Only thing that pop out is your hardened kernel and gcc. If that is not the issue, I'm out of ideas.
There are a few devs running gentoo, so it can't be a general issue.
hmm...

what gcc-version do you use for compiling?
though 4.9.3 is latest stable on my sys I could go unstable if necessary...but I am not sure this will solve the problem...

maybe someone of the gentoo-devs could bump in and have a look?
tausche, mind giving my overlay at https://github.com/herrnst/gentoo-kodi-overlay containing kodi live ebuilds a try?

EDIT: If you're trying them with specific branches, be sure to use EGIT_BRANCH for all ebuilds where applicable, mixing branches will(!) break things.
hi herrnst,

I already got your overlay (dcadec is part of ffmpeg so to get rid of ffmpeg I had to get it from somewhere else -> your overlay).
but if I try to install your kodi ebuild it pulls in ffmpeg again (and a bunch of other packages from the tree)...so I will have the same problems as before?

Code:
Sigma ~ # emerge -va =media-tv/kodi-9999

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N     ] media-libs/jbigkit-2.1:0/2.1::gentoo  USE="-static-libs" ABI_X86="32 (64) (-x32)" 0 KiB
[ebuild  N     ] media-libs/vo-aacenc-0.1.3::gentoo  USE="-examples (-neon) -static-libs" ABI_X86="32 (64) (-x32)" 0 KiB
[ebuild  N     ] media-sound/wavpack-4.70.0::gentoo  USE="-static-libs" ABI_X86="32 (64) (-x32)" CPU_FLAGS_X86="mmx" 0 KiB
[ebuild  N     ] media-libs/x264-0.0.20140308:0/142::gentoo  USE="interlaced pic threads -10bit -opencl -static-libs" ABI_X86="32 (64) (-x32)" CPU_FLAGS_X86="sse" 0 KiB
[ebuild  N     ] media-fonts/roboto-1.2::gentoo  USE="X" 0 KiB
[ebuild  N     ] media-libs/xvid-1.3.3::gentoo  USE="pic threads -examples" ABI_X86="32 (64) (-x32)" 0 KiB
[ebuild  N     ] dev-lang/nasm-2.11.08::gentoo  USE="-doc" 0 KiB
[ebuild  N     ] media-libs/libmad-0.15.1b-r8::gentoo  USE="-debug -static-libs" ABI_X86="32 (64) (-x32)" 0 KiB
[ebuild  N     ] media-libs/libmodplug-0.8.8.5::gentoo  USE="-static-libs" ABI_X86="32 (64) (-x32)" 0 KiB
[ebuild  N     ] x11-apps/xdpyinfo-1.3.2::gentoo  USE="-dga -dmx -xinerama" 0 KiB
[ebuild  N     ] x11-libs/libXinerama-1.1.3::gentoo  USE="-static-libs" ABI_X86="32 (64) (-x32)" 0 KiB
[ebuild  N     ] media-sound/lame-3.99.5-r1::gentoo  USE="-debug -mp3rtp -sndfile -static-libs" ABI_X86="32 (64) (-x32)" CPU_FLAGS_X86="(-mmx)" 0 KiB
[ebuild     U ~] media-libs/libbluray-0.9.2::gentoo [0.6.2::gentoo] USE="fontconfig%* truetype xml -aacs -bdplus% -java -static-libs -udf% -utils" ABI_X86="32 (64) (-x32)" 688 KiB
[ebuild  N     ] media-libs/flac-1.3.1-r1::gentoo  USE="cxx ogg (-altivec) -debug -static-libs" ABI_X86="32 (64) (-x32)" CPU_FLAGS_X86="sse" 0 KiB
[ebuild  N     ] dev-python/simplejson-3.8.1::gentoo  PYTHON_TARGETS="python2_7 python3_4 (-pypy) (-pypy3) -python3_3 (-python3_5)" 0 KiB
[ebuild  N    ~] dev-libs/libplatform-9999::gentoo-kodi-overlay  0 KiB
[ebuild  N     ] media-video/ffmpeg-2.6.3:0/54.56.56::gentoo  USE="X aac alsa bzip2 encode gpl hardcoded-tables iconv mp3 network opengl pic postproc threads truetype vaapi x264 xvid zlib -aacplus (-altivec) -amr -amrenc (-armv5te) (-armv6) (-armv6t2) (-armvfp) -bluray -bs2b -cdio -celt -cpudetection -debug -doc -examples -faac -fdk -flite -fontconfig -frei0r -fribidi -gme -gnutls -gsm -iec61883 -ieee1394 -jack -jpeg2k -ladspa -libass -libcaca -librtmp -libsoxr -libv4l -lzma (-mipsdspr1) (-mipsdspr2) (-mipsfpu) -modplug (-neon) -openal -openssl -opus -oss -pulseaudio -quvi -samba -schroedinger -sdl -speex -ssh -static-libs {-test} -theora -twolame -v4l -vdpau -vorbis -vpx -wavpack -webp -x265 -xcb -zvbi" ABI_X86="32 (64) (-x32)" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 sse4_1 sse4_2 ssse3 -3dnow -3dnowext -avx -avx2 -fma3 -fma4 -xop" FFTOOLS="aviocat cws2fws ffescape ffeval ffhash fourcc2pixfmt graph2dot ismindex pktdumper qt-faststart trasher" 0 KiB
[ebuild  N     ] x11-apps/mesa-progs-8.2.0::gentoo  USE="-egl -gles2" 0 KiB
[ebuild  N     ] virtual/jdk-1.7.0:1.7::gentoo  0 KiB
[ebuild  N     ] virtual/jre-1.7.0:1.7::gentoo  0 KiB
[ebuild  N    *] media-tv/kodi-9999::gentoo-kodi-overlay  USE="X alsa bluray mysql opengl samba system-ffmpeg texturepacker usb vaapi webserver -airplay -avahi -bluetooth -caps -cec -css -dbus -debug -gles -java -joystick -midi -nfs (-profile) -pulseaudio -rtmp -sftp {-test} -udisks -upnp -upower -vdpau" PYTHON_TARGETS="python2_7" 0 KiB

Total: 21 packages (1 upgrade, 20 new), Size of downloads: 688 KiB

The following keyword changes are necessary to proceed:
(see "package.accept_keywords" in the portage(5) man page for more details)
# required by media-tv/kodi-9999::gentoo-kodi-overlay[bluray]
# required by =media-tv/kodi-9999 (argument)
=media-libs/libbluray-0.9.2 ~amd64
# required by media-tv/kodi-9999::gentoo-kodi-overlay
# required by =media-tv/kodi-9999 (argument)
=dev-libs/libplatform-9999 ~amd64
# required by =media-tv/kodi-9999 (argument)
=media-tv/kodi-9999 **

NOTE: The --autounmask-keep-masks option will prevent emerge
      from creating package.unmask or ** keyword changes.

Would you like to add these changes to your config files? [Yes/No]

EDIT: found your system-ffmpeg use flag, though it has no description I'm pretty sure disabled this leads to interal ffmpeg
(2016-01-05, 10:44)tausche Wrote: [ -> ]but if I try to install your kodi ebuild it pulls in ffmpeg again (and a bunch of other packages from the tree)...so I will have the same problems as before?

Try
Code:
USE="-system-ffmpeg" emerge -va =media-tv/kodi-9999
found it, I will try

just a little note aside: you know that the ebuild is lacking some of the use-flag descriptions?
Code:
U I
+ + X                        : Add support for X11
- - airplay                  : <unknown>
+ + alsa                     : Add support for media-libs/alsa-lib (Advanced Linux Sound Architecture)
- - avahi                    : Add avahi/Zeroconf support
- - bluetooth                : Enable Bluetooth Support
+ - bluray                   : <unknown>
- - caps                     : Use Linux capabilities library to control privilege
- - cec                      : <unknown>
- - css                      : Enable reading of encrypted DVDs
- - dbus                     : Enable dbus support for anything that needs it (gpsd, gnomemeeting, etc)
- - debug                    : Enable extra debug codepaths, like asserts and extra output. If you want to get meaningful backtraces see https://wiki.gentoo.org/wiki/Project:Quality_Assurance/Backtraces
- - gles                     : <unknown>
- - java                     : Add support for Java
- - joystick                 : Add support for joysticks in all packages
- - midi                     : <unknown>
+ + mysql                    : Add mySQL Database support
- - nfs                      : <unknown>
+ + opengl                   : Add support for OpenGL (3D graphics)
- - pulseaudio               : Add support for PulseAudio sound server
+ + python_targets_python2_7 : Build with Python 2.7
- - rtmp                     : <unknown>
+ - samba                    : Add support for SAMBA (Windows File and Printer sharing)
- - sftp                     : <unknown>
- - system-ffmpeg            : <unknown>
- - test                     : Workaround to pull in packages needed to run with FEATURES=test. Portage-2.1.2 handles this internally, so don't set it in make.conf/package.use anymore
+ - texturepacker            : <unknown>
- - udisks                   : Enable storage management support (automounting, volume monitoring, etc)
- - upnp                     : Enable UPnP port mapping support
- - upower                   : Enable power management support
+ - usb                      : Add USB support to applications that have optional USB support (e.g. cups)
+ + vaapi                    : Enable Video Acceleration API for hardware decoding
- - vdpau                    : Enable the Video Decode and Presentation API for Unix acceleration interface
+ - webserver                : <unknown>
(2016-01-05, 10:53)tausche Wrote: [ -> ]just a little note aside: you know that the ebuild is lacking some of the use-flag descriptions?

Well, especially the kodi ebuild is taken directly from the portage tree, with additions like the system-ffmpeg flag and updated depends, didn't care about use.desc at all (yet), so - PRs welcome ;-) (seriously, wouldn't mind receiving improvements for the overlay).
Pages: 1 2