1. Error phenomenonI am using the LVGL emulator in a virtual machine and an error occurs when compiling the emulator source code cc: error: unrecognized command line option '-Wshift-negative-value' cc: error: unrecognized command line option '-Wshift-negative-value' cc: error: unrecognized command line option '-Wshift-negative-value' Building project file: lvgl/examples/widgets/chart/lv_example_chart_6.c Makefile:45: recipe for target 'build/obj/lvgl/examples/widgets/list/lv_example_list_1.o' failed make: *** [build/obj/lvgl/examples/widgets/list/lv_example_list_1.o] Error 1 make: *** Waiting for unfinished tasks.... Makefile:45: recipe for target 'build/obj/lvgl/examples/widgets/spinner/lv_example_spinner_1.o' failed make: *** [build/obj/lvgl/examples/widgets/spinner/lv_example_spinner_1.o] Error 1 Makefile:45: recipe for target 'build/obj/lvgl/examples/widgets/led/lv_example_led_1.o' failed make: *** [build/obj/lvgl/examples/widgets/led/lv_example_led_1.o] Error 1 cc: error: unrecognized command line option '-Wshift-negative-value' Makefile:45: recipe for target 'build/obj/lvgl/examples/widgets/textarea/lv_example_textarea_3.o' failed make: *** [build/obj/lvgl/examples/widgets/textarea/lv_example_textarea_3.o] Error 1 cc: error: unrecognized command line option '-Wshift-negative-value' Makefile:45: recipe for target 'build/obj/lvgl/examples/widgets/textarea/lv_example_textarea_2.o' failed make: *** [build/obj/lvgl/examples/widgets/textarea/lv_example_textarea_2.o] Error 1 cc: error: unrecognized command line option '-Wshift-negative-value' cc: error: unrecognized command line option '-Wshift-negative-value' Makefile:45: recipe for target 'build/obj/lvgl/examples/widgets/textarea/lv_example_textarea_1.o' failed make: *** [build/obj/lvgl/examples/widgets/textarea/lv_example_textarea_1.o] Error 1 Makefile:45: recipe for target 'build/obj/lvgl/examples/widgets/checkbox/lv_example_checkbox_1.o' failed make: *** [build/obj/lvgl/examples/widgets/checkbox/lv_example_checkbox_1.o] Error 1 cc: error: unrecognized command line option '-Wshift-negative-value' Makefile:45: recipe for target 'build/obj/lvgl/examples/widgets/chart/lv_example_chart_6.o' failed make: *** [build/obj/lvgl/examples/widgets/chart/lv_example_chart_6.o] Error 1 Compilation cannot proceed 2. Error AnalysisAnalyze the error according to the prompts. The cc: error prompts an error. Turn to the Makefile and see that it belongs to the gcc compiler. unrecognized command line option '-Wshift-negative-value' prompts that the command cannot be recognized, so the analysis should be due to the GCC version. Maybe my version does not support this command. The solution is to change the version or delete this command to see if it can run normally. 3. Error resolutionHere I will try to delete the command and then compile it. First use grep to find which line of the file the command is in grep -n "\-Wshift\-negative\-value" Makefile Edit the file and delete the corresponding instructions vim make file Save and compile the program The compilation is successful, and the demo can be executed normally: This is the end of this article about solving the error problem of compiling LVGL emulator on Linux. For more relevant content about Linux LVGL emulator error, please search the previous articles of 123WORDPRESS.COM or continue to browse the related articles below. I hope you will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: Clever use of webkit-box-reflect to achieve various dynamic effects (summary)
>>: How to force vertical screen on mobile pages
1. Python installation 1. Create a folder. mkdir ...
CSS style: Copy code The code is as follows: <s...
I would like to share the installation and config...
First create a directory cd /etc/nginx mkdir ssl ...
Table of contents Introduction to frm files and i...
Table of contents Overview Canvas API: Drawing Gr...
Seeing the recent popular WeChat tap function, I ...
1. What is positioning? The position attribute in...
Installation sequence rpm -ivh mysql-community-co...
This article shares the specific code of the appl...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML ...
1. First install the pagoda Installation requirem...
Experimental environment: MYSQL 5.7.22 Enable bin...
Introduction The Docker community has created man...
In MySQL, you can specify multiple indexes for a ...