PROJECT=Amlogic ARCH=arm tools/download-tool
PROJECT=Amlogic ARCH=arm make image
=================================================================================
End Configuration for CoreELEC
=================================================================================
config/functions: line 328: [: too many arguments
config/functions: line 281: [: too many arguments
fatal: not a git repository (or any of the parent directories): .git
make: *** [Makefile:9: release] Error 128
I moved your post here, since the other topics are meant for supporting users that are using the official builds, so building CoreELEC yourself is off topic in those threads.
To build CoreELEC 9.2 Amlogic-ng
git clone https://github.com/CoreELEC/CoreELEC.git
cd CoreELEC
git checkout coreelec-9.2
PROJECT=Amlogic-ng ARCH=arm make image
To build CoreELEC 9.2 Amlogic
git clone https://github.com/CoreELEC/CoreELEC.git
cd CoreELEC
git checkout coreelec-9.2
PROJECT=Amlogic ARCH=arm make image
To build CoreELEC 19
git clone https://github.com/CoreELEC/CoreELEC.git
cd CoreELEC
git checkout coreelec-19
PROJECT=Amlogic-ce ARCH=arm make image
cd ~
git clone https://github.com/CoreELEC/CoreELEC.git
cd ~/CoreELEC
git checkout 63f44225b09b8f7c2296754c7598cb0286fa8bc7
PROJECT=Amlogic-ce ARCH=arm DEVICE=Amlogic-ng make image
Note: switching to '63f44225b09b8f7c2296754c7598cb0286fa8bc7'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:
git switch -c <new-branch-name>
Or undo this operation with:
git switch -
Turn off this advice by setting config variable advice.detachedHead to false
HEAD is now at 63f44225b0 gobject-introspecion: fix building for host
frank@Frank-X99-TF:~/CoreELEC$
I switched to gcc 8.5.0 and the build finished successfully.
Also tried the patch and build again with gcc 10.3.0. This also resolved in a successful image.
But for general understanding: If I recognized correctly, some packages are built by the system wide gcc and others are built with a gcc which is downloaded by the build process itself. Is that correct and if so why is there a difference?
Hello.
I wanted to build from the sources Corelec 19.2-Matrix_rc3 for Khadas WIM 3 without pulseaudio (/config/options > PULSEAUDIO_SUPPORT=“no”). I use Ubuntu 18.04 for the build. If I do not disable pulseaudio support in the configuration file, then the project is successfully assembled and running on Khadas WIM 3. But if I disable it, I get an error message in the log:
pm@home:~/CoreELEC$ time PROJECT=Amlogic-ce ARCH=arm DEVICE=Amlogic-ng make image
./scripts/image mkimage
********
Misc. hardware configuration:
======================================================
- ALSA support: yes
- Pulseaudio support: no
In file included from ../xbmc/windowing/amlogic/WinSystemAmlogic.cpp:23:
../xbmc/cores/AudioEngine/Sinks/AESinkPULSE.h:20:10: fatal error: pulse/pulseaudio.h: No such file or directory
20 | #include <pulse/pulseaudio.h>
| ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
[124/1541] Building CXX object build/cores/audioengine/CMakeFiles/audioengine.dir/AEResampleFactory.cpp.o
[125/1541] Building CXX object build/cores/RetroPlayer/process/amlogic/CMakeFiles/rp-process-amlogic.dir/RPProcessInfoAmlogic.cpp.o
[126/1541] Building CXX object build/windowing/amlogic/CMakeFiles/windowing_Amlogic.dir/WinSystemAmlogicGLESContext.cpp.o
[127/1541] Building CXX object build/cores/CMakeFiles/cores.dir/FFmpeg.cpp.o
[128/1541] Building CXX object build/windowing/amlogic/CMakeFiles/windowing_Amlogic.dir/VideoSyncAML.cpp.o
[129/1541] Building CXX object build/cores/audioengine/CMakeFiles/audioengine.dir/AESinkFactory.cpp.o
[130/1541] Building CXX object build/pvr/filesystem/CMakeFiles/pvr_filesystem.dir/PVRGUIDirectory.cpp.o
ninja: build stopped: subcommand failed.
FAILURE: scripts/build kodi:target during make_target (default)
*********** FAILED COMMAND ***********
ninja ${NINJA_OPTS} ${PKG_MAKE_OPTS_TARGET}
**************************************
*********** FAILED COMMAND ***********
${SCRIPTS}/build "${1}" "${PARENT_PKG}"
**************************************
FAILURE: scripts/install kodi:target has failed!
The following log for this failure is available:
/home/pm/CoreELEC/build.CoreELEC-Amlogic-ng.arm-19/.threads/logs/296.log
>>> kodi:target seq 296 >>>
[295/329] [FAIL] install kodi:target
The following log for this failure is available:
/home/pm/CoreELEC/build.CoreELEC-Amlogic-ng.arm-19/.threads/logs/296.log
Parallel build failure - see log for details. Time of failure: Sat Oct 23 15:10:53 +04 2021
Makefile:12: recipe for target 'image' failed
make: *** [image] Error 1
As you can see, the problem occurs when building KODI package.
I tried to build KODI 19.2.0 separately in my home directory from sources according to the following instructions from GitHub.
I think kodi aml code just doesn’t care if to be build without pulseaudio. If you really need to disable pa you will have to add few ifdefs in the kodi code yourself.
Thank you for the answer.
Yes, I really want to disable pulseaudio, as I previously did in OpenELEC for my x86-64 PC. Now Khadas VIM 3 is planned to replace this PC.
You suggest adding a couple of ifdefs in the code, but I don’t think it will work out with just a couple of edits. I assume that much more changes will have to be made. If you can tell me exactly where to make changes, then I will be very grateful!
I still think that the solution should be simpler, since KODI version 19.2.0 is perfectly assembled without pulseaudio for the x86-64 platform, and KODI version 19.1.0 from CoreELEC is not assembled for the AML platform. I will try to build CoreELEC for the test without pulseaudio for the x86-64 platform. If everything works out, it will confirm that the problem is in the KODI version for the AMD platform.
But pulseaudio for bluetooth output still appears in the list of devices in the KODI settings. When playing audio files in 16/44.1 and 24/192, the 48 kHz frequency is displayed on the DAC screen all the time, as if pulseaudio is still working.