It looks like there is no maintainer now for any version of Kodi on FreeBSD. The developer version (multimedia/kodi-devel) is outdated and buggy, Kodi 18 is going to be removed soon due to Python 2 dependency. Also, 19.0.a20200727 (multimedia/kodi-devel) is buggy, it has a known breakage in that it cannot play any ISO file (DVD, Blu-Ray). This has been fixed for the current alpha version
So I wanted to build it myself, which I did successfully in the past. The instructions on the Kodi website are not very helpful and appear to be outdated, but anyway, I set up the build environment and started with cmake, which fails with an error. The exact error changes depending on which exact version I pull (all in the current 19-Alpha branch), but mostly configuration fails with lots of header files missing, e.g. gbm.h, drm_mode.h, linux/stat.h etc. Below is an example:
I am compiling with 10.0.1 on FreeBSD 12-STABLE, base and ports are updated. I am sure I miss vital information here - but bare with me, my build skills are a bit rusty. I am happy to provide whatever a kind soul willing to help wants to know.
I am also getting a bit frustrated here: if I can't get Kodi to build, I would have to migrate the whole HTPC to Linux - which I really do not want (I had terrible audio issues, such as lagging and no pass-through, under Linux in the past).
So I wanted to build it myself, which I did successfully in the past. The instructions on the Kodi website are not very helpful and appear to be outdated, but anyway, I set up the build environment and started with cmake, which fails with an error. The exact error changes depending on which exact version I pull (all in the current 19-Alpha branch), but mostly configuration fails with lots of header files missing, e.g. gbm.h, drm_mode.h, linux/stat.h etc. Below is an example:
Code:
Checking whether the ASM compiler is GNU using "--version" did not match "(GNU assembler)|(GCC)|(Free Software Foundation)":
FreeBSD clang version 10.0.1 (git@github.com:llvm/llvm-project.git llvmorg-10.0.1-0-gef32c611aa2)
Target: x86_64-unknown-freebsd12.2
Thread model: posix
InstalledDir: /usr/bin
Determining if the include file sys/inotify.h exists failed with the following output:
Change Dir: /home/kodi/sources/kodi-build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/local/bin/gmake cmTC_9855e/fast && /usr/local/bin/gmake -f CMakeFiles/cmTC_9855e.dir/build.make CMakeFiles/cmTC_9855e.dir/build
gmake[1]: Entering directory '/usr/home/kodi/sources/kodi-build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_9855e.dir/CheckIncludeFile.c.o
/usr/bin/cc -o CMakeFiles/cmTC_9855e.dir/CheckIncludeFile.c.o -c /home/kodi/sources/kodi-build/CMakeFiles/CMakeTmp/CheckIncludeFile.c
/home/kodi/sources/kodi-build/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:10: fatal error: 'sys/inotify.h' file not found
#include <sys/inotify.h>
^~~~~~~~~~~~~~~
1 error generated.
gmake[1]: *** [CMakeFiles/cmTC_9855e.dir/build.make:85: CMakeFiles/cmTC_9855e.dir/CheckIncludeFile.c.o] Error 1
gmake[1]: Leaving directory '/usr/home/kodi/sources/kodi-build/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:140: cmTC_9855e/fast] Error 2
Determining if the STATX_BTIME exist failed with the following output:
Change Dir: /home/kodi/sources/kodi-build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/local/bin/gmake cmTC_c2b23/fast && /usr/local/bin/gmake -f CMakeFiles/cmTC_c2b23.dir/build.make CMakeFiles/cmTC_c2b23.dir/build
gmake[1]: Entering directory '/usr/home/kodi/sources/kodi-build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_c2b23.dir/CheckSymbolExists.c.o
/usr/bin/cc -D_GNU_SOURCE -o CMakeFiles/cmTC_c2b23.dir/CheckSymbolExists.c.o -c /home/kodi/sources/kodi-build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
/home/kodi/sources/kodi-build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:2:10: fatal error: 'linux/stat.h' file not found
#include <linux/stat.h>
^~~~~~~~~~~~~~
1 error generated.
gmake[1]: *** [CMakeFiles/cmTC_c2b23.dir/build.make:85: CMakeFiles/cmTC_c2b23.dir/CheckSymbolExists.c.o] Error 1
gmake[1]: Leaving directory '/usr/home/kodi/sources/kodi-build/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:140: cmTC_c2b23/fast] Error 2
I am compiling with 10.0.1 on FreeBSD 12-STABLE, base and ports are updated. I am sure I miss vital information here - but bare with me, my build skills are a bit rusty. I am happy to provide whatever a kind soul willing to help wants to know.
I am also getting a bit frustrated here: if I can't get Kodi to build, I would have to migrate the whole HTPC to Linux - which I really do not want (I had terrible audio issues, such as lagging and no pass-through, under Linux in the past).