Lv_bingding_js building for ubuntu-23.04 x86 fail

Description

lv_bingding_js building for ubuntu-23.04 x86 fail

What MCU/Processor/Board and compiler are you using?

ubuntu-23.04 x86

What LVGL version are you using?

lv_bingding_js

What do you want to achieve?

run on the simulator(SDL)

What have you tried so far?

make dev-x86

make fail log

test@test-VMware-Virtual-Platform:/mnt/hgfs/work/hub/lv_bingding_js$ make dev-x86
cmake -B “dev_x86”
-DCMAKE_BUILD_TYPE=Debug
-DCMAKE_BUILD_PLATFORM=x86
-DOPENSSL_ROOT_DIR=/usr/local/opt/openssl@3
-DOPENSSL_LIBRARIES=/usr/local/opt/openssl@3/lib
-DCMAKE_C_COMPILER=/usr/bin/gcc
-DCMAKE_CXX_COMPILER=/usr/bin/g++
CMake Deprecation Warning at CMakeLists.txt:2 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.

Update the VERSION argument value or use a … suffix to tell
CMake that the project does not need compatibility with older versions.

– summary of build options:
Install prefix: /usr/local
Target system: Linux
Compiler:
C compiler: /usr/bin/gcc (GNU)
CFLAGS: -O0 -Wall -g -ggdb -std=gnu99

CMake Deprecation Warning at src/jsruntime/CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.

Update the VERSION argument value or use a … suffix to tell
CMake that the project does not need compatibility with older versions.

CMake Deprecation Warning at src/jsruntime/deps/quickjs/CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.

Update the VERSION argument value or use a … suffix to tell
CMake that the project does not need compatibility with older versions.

CMake Deprecation Warning at src/render/CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.

Update the VERSION argument value or use a … suffix to tell
CMake that the project does not need compatibility with older versions.

OPENSSL_SSL_LIBRARIESis/usr/lib/x86_64-linux-gnu/libssl.so
CMake Warning (dev) at CMakeLists.txt:61 (target_link_libraries):
Policy CMP0023 is not set: Plain and keyword target_link_libraries
signatures cannot be mixed. Run “cmake --help-policy CMP0023” for policy
details. Use the cmake_policy command to set the policy and suppress this
warning.

The keyword signature for target_link_libraries has already been used with
the target “lvgljs”. All uses of target_link_libraries with a target
should be either all-keyword or all-plain.

The uses of the keyword signature are here:

  • CMakeLists.txt:58 (target_link_libraries)
  • CMakeLists.txt:59 (target_link_libraries)

This warning is for project developers. Use -Wno-dev to suppress it.

– Configuring done
– Generating done
– Build files have been written to: /mnt/hgfs/work/hub/lv_bingding_js/dev_x86
cmake --build dev_x86
gmake[1]: enter the directory“/mnt/hgfs/work/hub/lv_bingding_js/dev_x86”
gmake[2]: enter the directory“/mnt/hgfs/work/hub/lv_bingding_js/dev_x86”
gmake[3]: enter the directory“/mnt/hgfs/work/hub/lv_bingding_js/dev_x86”
gmake[3]: leave the directory“/mnt/hgfs/work/hub/lv_bingding_js/dev_x86”
[ 18%] Built target render
gmake[3]: enter the directory“/mnt/hgfs/work/hub/lv_bingding_js/dev_x86”
gmake[3]: leave the directory“/mnt/hgfs/work/hub/lv_bingding_js/dev_x86”
[ 31%] Built target uv_a
gmake[3]: enter the directory“/mnt/hgfs/work/hub/lv_bingding_js/dev_x86”
gmake[3]: leave the directory“/mnt/hgfs/work/hub/lv_bingding_js/dev_x86”
[ 33%] Built target qjs
gmake[3]: enter the directory“/mnt/hgfs/work/hub/lv_bingding_js/dev_x86”
gmake[3]: leave the directory“/mnt/hgfs/work/hub/lv_bingding_js/dev_x86”
[ 37%] Built target jsruntime
gmake[3]: enter the directory“/mnt/hgfs/work/hub/lv_bingding_js/dev_x86”
gmake[3]: leave the directory“/mnt/hgfs/work/hub/lv_bingding_js/dev_x86”
[ 90%] Built target lvgl
gmake[3]: enter the directory“/mnt/hgfs/work/hub/lv_bingding_js/dev_x86”
gmake[3]: leave the directory“/mnt/hgfs/work/hub/lv_bingding_js/dev_x86”
[ 98%] Built target lv_drivers
gmake[3]: enter the directory“/mnt/hgfs/work/hub/lv_bingding_js/dev_x86”
gmake[3]: leave the directory“/mnt/hgfs/work/hub/lv_bingding_js/dev_x86”
[100%] Built target lvgljs
gmake[3]: enter the directory“/mnt/hgfs/work/hub/lv_bingding_js/dev_x86”
gmake[3]: leave the directory“/mnt/hgfs/work/hub/lv_bingding_js/dev_x86”
gmake[3]: enter the directory“/mnt/hgfs/work/hub/lv_bingding_js/dev_x86”
[100%] Generating bundle.js

lvgljs@1.0.0 runtime-bundle
./node_modules/esbuild/bin/esbuild src/jsruntime/bundle/index.js --bundle --define:process.env.NODE_ENV="development" --outfile=/mnt/hgfs/work/hub/lv_bingding_js/dev_x86/lib/bundle.js

✘ [ERROR] Could not resolve “fetch-blob”

src/jsruntime/bundle/blob.js:1:17:
  1 │ import Blob from 'fetch-blob'
    ╵                  ~~~~~~~~~~~~

You can mark the path “fetch-blob” as external to exclude it from the bundle,
which will remove this error and leave the unresolved path in the bundle.

✘ [ERROR] Could not resolve “util”

src/jsruntime/bundle/console.js:1:17:
  1 │ import util from 'util';
    ╵                  ~~~~~~

The package “util” wasn’t found on the file system but is built into node. Are
you trying to bundle for node? You can use “–platform=node” to do that, which
will remove this error.

✘ [ERROR] Could not resolve “urlpattern-polyfill”

src/jsruntime/bundle/url-polyfill.js:5:26:
  5 │ import { URLPattern} from 'urlpattern-polyfill';
    ╵                           ~~~~~~~~~~~~~~~~~~~~~

You can mark the path “urlpattern-polyfill” as external to exclude it from the
bundle, which will remove this error and leave the unresolved path in the
bundle.

3 errors
node:child_process:924
throw err;
^

Error: Command failed: /mnt/hgfs/work/hub/lv_bingding_js/node_modules/@esbuild/linux-x64/bin/esbuild src/jsruntime/bundle/index.js --bundle --define:process.env.NODE_ENV=“development” --outfile=/mnt/hgfs/work/hub/lv_bingding_js/dev_x86/lib/bundle.js
at checkExecSyncError (node:child_process:885:11)
at Object.execFileSync (node:child_process:921:15)
at Object. (/mnt/hgfs/work/hub/lv_bingding_js/node_modules/esbuild/bin/esbuild:220:28)
at Module._compile (node:internal/modules/cjs/loader:1218:14)
at Module._extensions…js (node:internal/modules/cjs/loader:1272:10)
at Module.load (node:internal/modules/cjs/loader:1081:32)
at Module._load (node:internal/modules/cjs/loader:922:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:23:47 {
status: 1,
signal: null,
output: [ null, null, null ],
pid: 17444,
stdout: null,
stderr: null
}

Node.js v18.13.0
gmake[3]: *** [src/jsruntime/CMakeFiles/jsbundle.dir/build.make:73:src/jsruntime/bundle.js] error 1
gmake[3]: leave the directory“/mnt/hgfs/work/hub/lv_bingding_js/dev_x86”
gmake[2]: *** [CMakeFiles/Makefile2:1055:src/jsruntime/CMakeFiles/jsbundle.dir/all] error 2
gmake[2]: leave the directory“/mnt/hgfs/work/hub/lv_bingding_js/dev_x86”
gmake[1]: *** [Makefile:136:all] error 2
gmake[1]: leave the directory“/mnt/hgfs/work/hub/lv_bingding_js/dev_x86”
make: *** [Makefile:8:dev-x86] error 2

Screenshot and/or video

test@test-VMware-Virtual-Platform:/mnt/hgfs/work/hub/lv_bingding_js$ ./dev_x86/lvgljs ./demo/widgets/index.js
engine start
bundle.js miss, engine will stop
MemoryPool destructor
MemoryPool destructor