Help building kodi 19
-
Hi
tl;dr I wanted to build kodi 19 on retropie
I've recently installed retropie on a pi4 2g and loved it so far. I also had success with setting up moonlight but now I would like to use kodi also. I noticed that's an old version of kodi which in general is no problem, but none of the addons I earlier used are available for this version anymore or deprecated.So I wanted to build kodi 19 from scratch. I have never built anything on linux. I'd say I am not a beginner but this brought me to my wits end. I saw an old post on raspberrypi forums but I couldn't get it to work.
I got till the last point but it always failed.
my log
Any help is very much appreciated. -
The error comes from the fact that your USB stick is probably mounted with the
noexec
option andcmake
tries to run/execute something from the source tree (which is copied on your USB partition).... /bin/sh: 1: /media/usb0/kodi-build/build/ffmpeg/src/ffmpeg/configure: Permission denied ...
Try running
sudo mount -oremount,exec /media/usb0
before running the
cmake
command again. -
Hi @mitu
I've done what you said and it ran for about an hour I'd say and then it stopped again at 51%.
With pretty much the same error. I put it background and disowned it, so I only have the last parts it output to stdout but I can run it again if you need more information. (Then I'll pipe it to a file)
[ 51%] Linking CXX static library settings.a
cd /media/usb0/kodi-build/build/settings && /usr/bin/cmake -P CMakeFiles/settings.dir/cmake_clean_target.cmake
cd /media/usb0/kodi-build/build/settings && /usr/bin/cmake -E cmake_link_script CMakeFiles/settings.dir/link.txt --verbose=2
/usr/bin/ccache /usr/bin/ar qc settings.a CMakeFiles/settings.dir/AdvancedSettings.cpp.o CMakeFiles/settings.dir/DisplaySettings.cpp.o CMakeFiles/settings.dir/GameSettings.cpp.o CMakeFiles/settings.dir/LibExportSettings.cpp.o CMakeFiles/settings.dir/MediaSettings.cpp.o CMakeFiles/settings.dir/MediaSourceSettings.cpp.o CMakeFiles/settings.dir/SettingAddon.cpp.o CMakeFiles/settings.dir/SettingConditions.cpp.o CMakeFiles/settings.dir/SettingControl.cpp.o CMakeFiles/settings.dir/SettingCreator.cpp.o CMakeFiles/settings.dir/SettingDateTime.cpp.o CMakeFiles/settings.dir/SettingPath.cpp.o CMakeFiles/settings.dir/Settings.cpp.o CMakeFiles/settings.dir/SettingsBase.cpp.o CMakeFiles/settings.dir/SettingsValueFlatJsonSerializer.cpp.o CMakeFiles/settings.dir/SettingsValueXmlSerializer.cpp.o CMakeFiles/settings.dir/SettingUtils.cpp.o CMakeFiles/settings.dir/SkinSettings.cpp.o CMakeFiles/settings.dir/SettingsComponent.cpp.o CMakeFiles/settings.dir/DiscSettings.cpp.o
/usr/bin/ccache /usr/bin/ranlib settings.a
make[2]: Leaving directory '/media/usb0/kodi-build'
[ 51%] Built target settings
make[1]: Leaving directory '/media/usb0/kodi-build'
make: *** [Makefile:141: all] Error 2 -
@1101010101 The log doesn't show the actual error, but if you've added the
exec
option for the USB partition I don't see why it would fail with the same error. Perhaps the error is similar but not quite the same ? Couldn't tell without looking at the previous log lines. -
@mitu Okay I'll run it again and provide them. :)
-
So yesterday I had a weird error. I thought why don't I put the nvme mount with option exec into /etc/fstab. I did that and after that it would only boot into emergency and I couldn't recover anything. I tried adding the shell to cmdline.txt but nothing helped. So I decided to completly redo my retropie setup. After redoing everything, I tried again to build kodi with all the options and it just worked fine.
No errors nothing, it just went up to 100%. I installed it withsudo make install
and it works.
:D As stupid as this seems it probably was some bad configuration which still existed from my first tries.
I want to thank you for your help, after I remounted my drive I thought what a godsent it would have took me atleast weeks to come up with this if ever. :D
So this thread can be closed now. -
-
-
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.