I build the jerryscript successfully, in MSYS2, using:
sh''
cmake ../ -DCMAKE=$IDF_PATH/tools/cmake/toolchain-esp32.cmake "-GMSYS Makefiles" -DEXTERNAL_COMPILE_FLAGS="-ffunction-sections -fdata-sections -fstrict-volatile-bitfields" -DJERRY_GLOBAL_HEAP_SIZE=64 -DCMAKE_SYSTEM_NAME=Generic -DCMAKE_SYSTEM_PROCESSOR=xtensa

python tools/build.py --toolchain=cmake/toolchain-esp32.cmake --cmake-param "-GMSYS Makefiles" --jerry-cmdline=OFF --jerry-port-default=ON --lto=OFF --strip=OFF --mem-heap=64
''

Then build the IDF project, and try to use jerry_init() function, I got :

Error:

undefined reference to 'jerry_value_is_error'...
.....
undefined reference to 'jerry_run'
....
How to Fix this error???
unknown reference to jerry_init, jerry_cleanup,.....
This is a GitHub Issue
repo:jerryscript
owner:jerryscript-project
Title : unknown reference to jerry_init, jerry_cleanup,.....
Issue date:

--- start body ---
I build the jerryscript successfully, in MSYS2, using:
sh''
cmake ../ -DCMAKE=$IDF_PATH/tools/cmake/toolchain-esp32.cmake "-GMSYS Makefiles" -DEXTERNAL_COMPILE_FLAGS="-ffunction-sections -fdata-sections -fstrict-volatile-bitfields" -DJERRY_GLOBAL_HEAP_SIZE=64 -DCMAKE_SYSTEM_NAME=Generic -DCMAKE_SYSTEM_PROCESSOR=xtensa

python tools/build.py --toolchain=cmake/toolchain-esp32.cmake --cmake-param "-GMSYS Makefiles" --jerry-cmdline=OFF --jerry-port-default=ON --lto=OFF --strip=OFF --mem-heap=64
''

Then build the IDF project, and try to use jerry_init() function, I got :

Error:

undefined reference to 'jerry_value_is_error'...
.....
undefined reference to 'jerry_run'
....
How to Fix this error???
--- end body ---
