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
background I talked to my classmates about a boun...
This article describes the import and export oper...
Tip: In MySQL, we often need to create and delete...
This article shares the specific code for JavaScr...
Table of contents 1. Component Introduction 2. Co...
By default, MySQL can accept the insertion of 0 v...
<br />Words are the inevitable product of hu...
As shown below: XML/HTML CodeCopy content to clip...
Table of contents 1. Globally registered componen...
There are three ways to introduce CSS: inline sty...
This article example shares the specific code of ...
When dynamically concatenating strings, we often ...
Without further ado, I will post the code for you...
mysql obtains statistical data within a specified...
This article example shares the specific code of ...