code not compiling on linux #1477
Replies: 2 comments 1 reply
-
It looks like Which version of
In the mean time, you could use the Docker container to build the firmware, it should just work. See this page. |
Beta Was this translation helpful? Give feedback.
-
Hey, |
Beta Was this translation helpful? Give feedback.
-
Hi,
I have cloned InfiniTime repository and was trying to build the code from command line.i am using SDK "nRF5_SDK_15.3.0_59ac345" and toolchain "gcc-arm-none-eabi-10.3-2021.10". when i used command "make -j pinetime-app" to compile the code,i encountered some errors.Later i found that font files are missing in font/ directory.i tried to run generate.py to generate the file but i am not succeeding.
Can some one please help how to generate font files?
I am referring "buildAndProgram.md" file
please see the logs below when i run make -j 1 command in font/ directory-
TypeError: this.src.glyphs.map(...).flat is not a function
at new Font (/home/bipin/InfiniTime/node_modules/lv_font_conv/lib/font/font.js:38:99)
at new LvFont (/home/bipin/InfiniTime/node_modules/lv_font_conv/lib/writers/lvgl/lv_font.js:16:5)
at Object.write_images [as lvgl] (/home/bipin/InfiniTime/node_modules/lv_font_conv/lib/writers/lvgl/index.js:12:16)
at convert (/home/bipin/InfiniTime/node_modules/lv_font_conv/lib/convert.js:25:35)
Traceback (most recent call last):
File "/home/bipin/InfiniTime/src/displayapp/fonts/generate.py", line 75, in
main()
File "/home/bipin/InfiniTime/src/displayapp/fonts/generate.py", line 67, in main
subprocess.check_call(line)
File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/home/bipin/InfiniTime/node_modules/.bin/lv_font_conv', '--size', '42', '--output', 'jetbrains_mono_42.c', '--bpp', '1', '--format', 'lvgl', '--no-compress', '--font', 'JetBrainsMono-Regular.ttf', '--range', '0x25, 0x2b, 0x2d, 0x30-0x3a']' returned non-zero exit status 1.
make[2]: *** [src/displayapp/fonts/CMakeFiles/infinitime_fonts_jetbrains_mono_42.dir/build.make:61: src/displayapp/fonts/jetbrains_mono_42.c] Error 1
make[1]: *** [CMakeFiles/Makefile2:624: src/displayapp/fonts/CMakeFiles/infinitime_fonts_jetbrains_mono_42.dir/all] Error 2
make: *** [Makefile:84: all] Error 2
Logs when i run make -j pinetime-app command-
[ 0%] Generating jetbrains_mono_42.c
[ 0%] Generating lv_font_sys_48.c
[ 0%] Generating jetbrains_mono_bold_20.c
[ 0%] Generating lv_font_navi_80.c
[ 1%] Generating jetbrains_mono_extrabold_compressed.c
[ 1%] Generating open_sans_light.c
[ 1%] Generating jetbrains_mono_76.c
[ 3%] Built target littlefs
[ 3%] Built target QCBOR
[ 16%] Built target nrf-sdk
[ 37%] Built target lvgl
[ 60%] Built target nimble
TypeError: this.src.glyphs.map(...).flat is not a function
at new Font (/home/bipin/InfiniTime/node_modules/lv_font_conv/lib/font/font.js:38:99)
at new LvFont (/home/bipin/InfiniTime/node_modules/lv_font_conv/lib/writers/lvgl/lv_font.js:16:5)
at Object.write_images [as lvgl] (/home/bipin/InfiniTime/node_modules/lv_font_conv/lib/writers/lvgl/index.js:12:16)
at convert (/home/bipin/InfiniTime/node_modules/lv_font_conv/lib/convert.js:25:35)
TypeError: this.src.glyphs.map(...).flat is not a function
at new Font (/home/bipin/InfiniTime/node_modules/lv_font_conv/lib/font/font.js:38:99)
at new LvFont (/home/bipin/InfiniTime/node_modules/lv_font_conv/lib/writers/lvgl/lv_font.js:16:5)
at Object.write_images [as lvgl] (/home/bipin/InfiniTime/node_modules/lv_font_conv/lib/writers/lvgl/index.js:12:16)
at convert (/home/bipin/InfiniTime/node_modules/lv_font_conv/lib/convert.js:25:35)
TypeError: this.src.glyphs.map(...).flat is not a function
at new Font (/home/bipin/InfiniTime/node_modules/lv_font_conv/lib/font/font.js:38:99)
at new LvFont (/home/bipin/InfiniTime/node_modules/lv_font_conv/lib/writers/lvgl/lv_font.js:16:5)
at Object.write_images [as lvgl] (/home/bipin/InfiniTime/node_modules/lv_font_conv/lib/writers/lvgl/index.js:12:16)
at convert (/home/bipin/InfiniTime/node_modules/lv_font_conv/lib/convert.js:25:35)
Traceback (most recent call last):
File "/home/bipin/InfiniTime/src/displayapp/fonts/generate.py", line 75, in
main()
File "/home/bipin/InfiniTime/src/displayapp/fonts/generate.py", line 67, in main
subprocess.check_call(line)
File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/home/bipin/InfiniTime/node_modules/.bin/lv_font_conv', '--size', '150', '--output', 'open_sans_light.c', '--bpp', '1', '--format', 'lvgl', '--no-compress', '--font', 'open_sans_light.ttf', '--symbols', '0123456789']' returned non-zero exit status 1.
Traceback (most recent call last):
File "/home/bipin/InfiniTime/src/displayapp/fonts/generate.py", line 75, in
main()
File "/home/bipin/InfiniTime/src/displayapp/fonts/generate.py", line 67, in main
subprocess.check_call(line)
File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/home/bipin/InfiniTime/node_modules/.bin/lv_font_conv', '--size', '42', '--output', 'jetbrains_mono_42.c', '--bpp', '1', '--format', 'lvgl', '--no-compress', '--font', 'JetBrainsMono-Regular.ttf', '--range', '0x25, 0x2b, 0x2d, 0x30-0x3a']' returned non-zero exit status 1.
TypeError: this.src.glyphs.map(...).flat is not a function
at new Font (/home/bipin/InfiniTime/node_modules/lv_font_conv/lib/font/font.js:38:99)
at new LvFont (/home/bipin/InfiniTime/node_modules/lv_font_conv/lib/writers/lvgl/lv_font.js:16:5)
at Object.write_images [as lvgl] (/home/bipin/InfiniTime/node_modules/lv_font_conv/lib/writers/lvgl/index.js:12:16)
at convert (/home/bipin/InfiniTime/node_modules/lv_font_conv/lib/convert.js:25:35)
make[3]: *** [src/displayapp/fonts/CMakeFiles/infinitime_fonts_jetbrains_mono_42.dir/build.make:61: src/displayapp/fonts/jetbrains_mono_42.c] Error 1
make[2]: *** [CMakeFiles/Makefile2:624: src/displayapp/fonts/CMakeFiles/infinitime_fonts_jetbrains_mono_42.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....
make[3]: *** [src/displayapp/fonts/CMakeFiles/infinitime_fonts_open_sans_light.dir/build.make:61: src/displayapp/fonts/open_sans_light.c] Error 1
make[2]: *** [CMakeFiles/Makefile2:597: src/displayapp/fonts/CMakeFiles/infinitime_fonts_open_sans_light.dir/all] Error 2
TypeError: this.src.glyphs.map(...).flat is not a function
at new Font (/home/bipin/InfiniTime/node_modules/lv_font_conv/lib/font/font.js:38:99)
at new LvFont (/home/bipin/InfiniTime/node_modules/lv_font_conv/lib/writers/lvgl/lv_font.js:16:5)
at Object.write_images [as lvgl] (/home/bipin/InfiniTime/node_modules/lv_font_conv/lib/writers/lvgl/index.js:12:16)
at convert (/home/bipin/InfiniTime/node_modules/lv_font_conv/lib/convert.js:25:35)
TypeError: this.src.glyphs.map(...).flat is not a function
at new Font (/home/bipin/InfiniTime/node_modules/lv_font_conv/lib/font/font.js:38:99)
at new LvFont (/home/bipin/InfiniTime/node_modules/lv_font_conv/lib/writers/lvgl/lv_font.js:16:5)
at Object.write_images [as lvgl] (/home/bipin/InfiniTime/node_modules/lv_font_conv/lib/writers/lvgl/index.js:12:16)
at convert (/home/bipin/InfiniTime/node_modules/lv_font_conv/lib/convert.js:25:35)
TypeError: this.src.glyphs.map(...).flat is not a function
at new Font (/home/bipin/InfiniTime/node_modules/lv_font_conv/lib/font/font.js:38:99)
at new LvFont (/home/bipin/InfiniTime/node_modules/lv_font_conv/lib/writers/lvgl/lv_font.js:16:5)
at Object.write_images [as lvgl] (/home/bipin/InfiniTime/node_modules/lv_font_conv/lib/writers/lvgl/index.js:12:16)
at convert (/home/bipin/InfiniTime/node_modules/lv_font_conv/lib/convert.js:25:35)
Traceback (most recent call last):
File "/home/bipin/InfiniTime/src/displayapp/fonts/generate.py", line 75, in
main()
File "/home/bipin/InfiniTime/src/displayapp/fonts/generate.py", line 67, in main
subprocess.check_call(line)
File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/home/bipin/InfiniTime/node_modules/.bin/lv_font_conv', '--size', '80', '--output', 'jetbrains_mono_extrabold_compressed.c', '--bpp', '1', '--format', 'lvgl', '--no-compress', '--font', 'JetBrainsMono-ExtraBold.ttf', '--range', '0x30-0x3a']' returned non-zero exit status 1.
Traceback (most recent call last):
File "/home/bipin/InfiniTime/src/displayapp/fonts/generate.py", line 75, in
main()
File "/home/bipin/InfiniTime/src/displayapp/fonts/generate.py", line 67, in main
subprocess.check_call(line)
File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/home/bipin/InfiniTime/node_modules/.bin/lv_font_conv', '--size', '48', '--output', 'lv_font_sys_48.c', '--bpp', '1', '--format', 'lvgl', '--no-compress', '--font', 'material-design-icons/MaterialIcons-Regular.ttf', '--range', '0xf00b, 0xe3aa-0xe3ac, 0xe7f6-0xe7f7, 0xe8b8, 0xef44, 0xe40a']' returned non-zero exit status 1.
make[3]: *** [src/displayapp/fonts/CMakeFiles/infinitime_fonts_jetbrains_mono_extrabold_compressed.dir/build.make:61: src/displayapp/fonts/jetbrains_mono_extrabold_compressed.c] Error 1
make[2]: *** [CMakeFiles/Makefile2:516: src/displayapp/fonts/CMakeFiles/infinitime_fonts_jetbrains_mono_extrabold_compressed.dir/all] Error 2
make[3]: *** [src/displayapp/fonts/CMakeFiles/infinitime_fonts_lv_font_sys_48.dir/build.make:61: src/displayapp/fonts/lv_font_sys_48.c] Error 1
make[2]: *** [CMakeFiles/Makefile2:462: src/displayapp/fonts/CMakeFiles/infinitime_fonts_lv_font_sys_48.dir/all] Error 2
Traceback (most recent call last):
File "/home/bipin/InfiniTime/src/displayapp/fonts/generate.py", line 75, in
main()
File "/home/bipin/InfiniTime/src/displayapp/fonts/generate.py", line 67, in main
subprocess.check_call(line)
File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/home/bipin/InfiniTime/node_modules/.bin/lv_font_conv', '--size', '76', '--output', 'jetbrains_mono_76.c', '--bpp', '1', '--format', 'lvgl', '--no-compress', '--font', 'JetBrainsMono-Light.ttf', '--range', '0x25, 0x2D, 0x2F, 0x30-0x3a']' returned non-zero exit status 1.
Traceback (most recent call last):
File "/home/bipin/InfiniTime/src/displayapp/fonts/generate.py", line 75, in
main()
File "/home/bipin/InfiniTime/src/displayapp/fonts/generate.py", line 67, in main
subprocess.check_call(line)
File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/home/bipin/InfiniTime/node_modules/.bin/lv_font_conv', '--size', '80', '--output', 'lv_font_navi_80.c', '--bpp', '2', '--format', 'lvgl', '--font', 'navigation.ttf', '--range', '0xe900-0xe929']' returned non-zero exit status 1.
Traceback (most recent call last):
File "/home/bipin/InfiniTime/src/displayapp/fonts/generate.py", line 75, in
main()
File "/home/bipin/InfiniTime/src/displayapp/fonts/generate.py", line 67, in main
subprocess.check_call(line)
File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/home/bipin/InfiniTime/node_modules/.bin/lv_font_conv', '--size', '20', '--output', 'jetbrains_mono_bold_20.c', '--bpp', '1', '--format', 'lvgl', '--no-compress', '--font', 'JetBrainsMono-Bold.ttf', '--range', '0x20-0x7e, 0x410-0x44f', '--font', 'FontAwesome5-Solid+Brands+Regular.woff', '--range', '0xf294, 0xf242, 0xf54b, 0xf21e, 0xf1e6, 0xf017, 0xf129, 0xf03a, 0xf185, 0xf560, 0xf001, 0xf3fd, 0xf1fc, 0xf45d, 0xf59f, 0xf5a0, 0xf027, 0xf028, 0xf6a9, 0xf04b, 0xf04c, 0xf048, 0xf051, 0xf095, 0xf3dd, 0xf04d, 0xf2f2, 0xf024, 0xf252, 0xf569, 0xf201, 0xf06e, 0xf015, 0xf00c']' returned non-zero exit status 1.
make[3]: *** [src/displayapp/fonts/CMakeFiles/infinitime_fonts_jetbrains_mono_76.dir/build.make:61: src/displayapp/fonts/jetbrains_mono_76.c] Error 1
make[2]: *** [CMakeFiles/Makefile2:570: src/displayapp/fonts/CMakeFiles/infinitime_fonts_jetbrains_mono_76.dir/all] Error 2
make[3]: *** [src/displayapp/fonts/CMakeFiles/infinitime_fonts_lv_font_navi_80.dir/build.make:61: src/displayapp/fonts/lv_font_navi_80.c] Error 1
make[2]: *** [CMakeFiles/Makefile2:489: src/displayapp/fonts/CMakeFiles/infinitime_fonts_lv_font_navi_80.dir/all] Error 2
make[3]: *** [src/displayapp/fonts/CMakeFiles/infinitime_fonts_jetbrains_mono_bold_20.dir/build.make:61: src/displayapp/fonts/jetbrains_mono_bold_20.c] Error 1
make[2]: *** [CMakeFiles/Makefile2:543: src/displayapp/fonts/CMakeFiles/infinitime_fonts_jetbrains_mono_bold_20.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:388: src/CMakeFiles/pinetime-app.dir/rule] Error 2
make: *** [Makefile:222: pinetime-app] Error 2
Beta Was this translation helpful? Give feedback.
All reactions