EmuELEC build error 4.3

Hey ,
Trying to build EmuELEC for the secend time as i have deleted accidentally the first one.
this time i get an error in building that i did not have at the previos one .

[323/483] [DONE] install emuelec-tools
BUILD sdl12-compat (host)
TOOLCHAIN cmake (auto-detect)
Executing (host): cmake -GNinja -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_TOOLCHAIN_FILE=/home/fidiko/EmuELEC/build.EmuELEC-Amlogic.aarch64-4.3/toolchain/etc/cmake-x86_64-linux-gnu.conf -DCMAKE_INSTALL_PREFIX=/home/fidiko/EmuELEC/build.EmuELEC-Amlogic.aarch64-4.3/toolchain -DSDL12TESTS=off /home/fidiko/EmuELEC/build.EmuELEC-Amlogic.aarch64-4.3/sdl12-compat-c5bd71de527b981ec736dbd94e973cc11de0cbc0
– Could NOT find SDL2 (missing: SDL2_LIBRARY SDL2_INCLUDE_DIR)
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
/home/fidiko/EmuELEC/build.EmuELEC-Amlogic.aarch64-4.3/sdl12-compat-c5bd71de527b981ec736dbd94e973cc11de0cbc0/SDL2_INCLUDE_DIR
used as include directory in directory /home/fidiko/EmuELEC/build.EmuELEC-Amlogic.aarch64-4.3/sdl12-compat-c5bd71de527b981ec736dbd94e973cc11de0cbc0

– Configuring incomplete, errors occurred!
See also “/home/fidiko/EmuELEC/build.EmuELEC-Amlogic.aarch64-4.3/sdl12-compat-c5bd71de527b981ec736dbd94e973cc11de0cbc0/.x86_64-linux-gnu/CMakeFiles/CMakeOutput.log”.
See also “/home/fidiko/EmuELEC/build.EmuELEC-Amlogic.aarch64-4.3/sdl12-compat-c5bd71de527b981ec736dbd94e973cc11de0cbc0/.x86_64-linux-gnu/CMakeFiles/CMakeError.log”.
FAILURE: scripts/build sdl12-compat:host has failed!
[324/483] [FAIL] build sdl12-compat:host

The following logs for this failure are available:
stdout: /home/fidiko/EmuELEC/build.EmuELEC-Amlogic.aarch64-4.3/.threads/logs/326/stdout
stderr: /home/fidiko/EmuELEC/build.EmuELEC-Amlogic.aarch64-4.3/.threads/logs/326/stderr

parallel: This job failed:
package_worker 4 326 483 ‘build sdl12-compat:host’
Parallel build failure - see log for details. Time of failure: Thu Mar 17 07:26:22 CET 2022
make: *** [Makefile:12: image] Error 1
fidiko@fidiko-VirtualBox:~/EmuELEC$

I have tried to find out what the problem is but with no luck.
Anybody can help me please??

Configuring incomplete, errors occurred!
Please ensure the integrity of the sub module.

Thanks for your answer @asdone77 .

This is what i could not figure out.
I mean what should i check and how ?

– Could NOT find SDL2 (missing: SDL2_LIBRARY SDL2_INCLUDE_DIR) , i could not find them anyware , how can i get them ?

Please set them or make sure they are set and tested correctly in the CMake files:
/home/fidiko/EmuELEC/build.EmuELEC-Amlogic.aarch64-4.3/sdl12-compat-c5bd71de527b981ec736dbd94e973cc11de0cbc0/SDL2_INCLUDE_DIR
used as include directory in directory /home/fidiko/EmuELEC/build.EmuELEC-Amlogic.aarch64-4.3/sdl12-compat-c5bd71de527b981ec736dbd94e973cc11de0cbc0

how and where should i set them ? :woozy_face:

Try this:
sudo apt install libsdl2-dev

Just a guess.

@eric4gth will try that and give you the results .

thanks

@eric4gth

I solved the issue ,
actually it was my fault , i am building on a new ubuntu vertual machine , i forget to prepare the building by adding " sudo ```
apt install gcc make git unzip wget xz-utils libsdl2-dev libsdl2-mixer-dev libfreeimage-dev libfreetype6-dev libcurl4-openssl-dev rapidjson-dev libasound2-dev libgl1-mesa-dev build-essential libboost-all-dev cmake fonts-droid-fallback libvlc-dev libvlccore-dev vlc-bin texinfo premake4 golang libssl-dev curl patchelf xmlstarlet default-jre xsltproc " before i start.

That was mentiond in EmuELEC github dev .