Hello Samsung devs,
I got this error when I try to build GitHub - SamsungDForum/WebAssemblyDemos: Sample WebAssembly applications for Tizen TVs on tizen studio 5.0 using ubuntu 22.04. how can I solve this?.
have a great day and appreciate your help,
22:18:05 **** Incremental Build of configuration Debug for project VideoDecoderSampleModule ****
make all
Building file: ../src/main.cc
Invoking: Emscripten C++ Compiler
em++ -O0 -g4 -Wall -c -fmessage-length=0 -I../inc -Wall -g4 -std=gnu++14 --bind -MMD -MP -MF"src/main.d" -MT"src/main.o" -o "src/main.o" "../src/main.cc"
In file included from ../src/main.cc:29:
../inc/video_decoder_sdf_sample.h:35:10: fatal error: 'SDL2/SDL.h' file not found
#include <SDL2/SDL.h>
^~~~~~~~~~~~
1 error generated.
shared:ERROR: '~/emscripten-1.39.4.7-linux64/emscripten-release-bundle/emsdk/fastcomp/fastcomp/bin/clang++ -target asmjs-unknown-emscripten -D__EMSCRIPTEN_major__=1 -D__EMSCRIPTEN_minor__=39 -D__EMSCRIPTEN_tiny__=4 -D_LIBCPP_ABI_VERSION=2 -Werror=implicit-function-declaration -Xclang -nostdsysteminc -Xclang -isystem~/emscripten-1.39.4.7-linux64/emscripten-release-bundle/emsdk/fastcomp/emscripten/system/include/libcxx -Xclang -isystem~/emscripten-1.39.4.7-linux64/emscripten-release-bundle/emsdk/fastcomp/emscripten/system/lib/libcxxabi/include -Xclang -isystem~/emscripten-1.39.4.7-linux64/emscripten-release-bundle/emsdk/fastcomp/emscripten/system/include/compat -Xclang -isystem~/emscripten-1.39.4.7-linux64/emscripten-release-bundle/emsdk/fastcomp/emscripten/system/include -Xclang -isystem~/emscripten-1.39.4.7-linux64/emscripten-release-bundle/emsdk/fastcomp/emscripten/system/include/libc -Xclang -isystem~/emscripten-1.39.4.7-linux64/emscripten-release-bundle/emsdk/fastcomp/emscripten/system/lib/libc/musl/arch/emscripten -Xclang -isystem~/emscripten-1.39.4.7-linux64/emscripten-release-bundle/emsdk/fastcomp/emscripten/system/local/include -Xclang -isystem~/emscripten-1.39.4.7-linux64/emscripten-release-bundle/emsdk/.emscripten_cache/asmjs/include -O0 -gline-tables-only -Wall -c -fmessage-length=0 -I../inc -Wall -gline-tables-only -std=gnu++14 -MMD -MP -MFsrc/main.d -MTsrc/main.o -DEMSCRIPTEN -DSOCKET_HOST_BINDINGS ../src/main.cc -Xclang -disable-O0-optnone -Xclang -isystem~/emscripten-1.39.4.7-linux64/emscripten-release-bundle/emsdk/fastcomp/emscripten/system/include/SDL -c -o src/main.o -emit-llvm' failed (1)
make: *** [src/subdir.mk:29: src/main.o] Error 1