久久r热视频,国产午夜精品一区二区三区视频,亚洲精品自拍偷拍,欧美日韩精品二区

您的位置:首頁技術文章
文章詳情頁

Linux編譯LVGL仿真器出錯問題解決

瀏覽:20日期:2023-03-07 14:40:09
目錄
  • 一、錯誤現象
  • 二、錯誤分析
  • 三、錯誤解決

一、錯誤現象

我在虛擬機下使用 LVGL 仿真器,編譯仿真器源代碼時發生報錯

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.cMakefile:45: recipe for target "build/obj/lvgl/examples/widgets/list/lv_example_list_1.o" failedmake: *** [build/obj/lvgl/examples/widgets/list/lv_example_list_1.o] Error 1make: *** 正在等待未完成的任務....Makefile:45: recipe for target "build/obj/lvgl/examples/widgets/spinner/lv_example_spinner_1.o" failedmake: *** [build/obj/lvgl/examples/widgets/spinner/lv_example_spinner_1.o] Error 1Makefile:45: recipe for target "build/obj/lvgl/examples/widgets/led/lv_example_led_1.o" failedmake: *** [build/obj/lvgl/examples/widgets/led/lv_example_led_1.o] Error 1cc: error: unrecognized command line option ‘-Wshift-negative-value"Makefile:45: recipe for target "build/obj/lvgl/examples/widgets/textarea/lv_example_textarea_3.o" failedmake: *** [build/obj/lvgl/examples/widgets/textarea/lv_example_textarea_3.o] Error 1cc: error: unrecognized command line option ‘-Wshift-negative-value"Makefile:45: recipe for target "build/obj/lvgl/examples/widgets/textarea/lv_example_textarea_2.o" failedmake: *** [build/obj/lvgl/examples/widgets/textarea/lv_example_textarea_2.o] Error 1cc: 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" failedmake: *** [build/obj/lvgl/examples/widgets/textarea/lv_example_textarea_1.o] Error 1Makefile:45: recipe for target "build/obj/lvgl/examples/widgets/checkbox/lv_example_checkbox_1.o" failedmake: *** [build/obj/lvgl/examples/widgets/checkbox/lv_example_checkbox_1.o] Error 1cc: error: unrecognized command line option ‘-Wshift-negative-value"Makefile:45: recipe for target "build/obj/lvgl/examples/widgets/chart/lv_example_chart_6.o" failedmake: *** [build/obj/lvgl/examples/widgets/chart/lv_example_chart_6.o] Error 1
編譯無法進行

二、錯誤分析

根據提示分析錯誤,其中 cc: error 提示報錯,翻到 Makefile 一看屬于 gcc 編譯器

unrecognized command line option ‘-Wshift-negative-value’ 提示無法識別指令,所以分析應該是 GCC 版本的原因,可能我的版本不支持這個指令,解決的方式就是換版本,或者刪掉這個指令看能不能正常運行

三、錯誤解決

這里我先試試刪除指令再編譯,先用 grep 找到指令在文件的哪一行

grep -n "\-Wshift\-negative\-value" Makefile

編輯文件,刪除對應指令

vim make file

保存后程序編譯

編譯成功,執行 demo,可以正常執行:

到此這篇關于Linux編譯LVGL仿真器出錯問題解決的文章就介紹到這了,更多相關Linux LVGL仿真器出錯內容請搜索以前的文章或繼續瀏覽下面的相關文章希望大家以后多多支持!

標簽: Linux Apache
相關文章:
主站蜘蛛池模板: 湘潭市| 尤溪县| 周口市| 阳江市| 晋江市| 南城县| 城固县| 留坝县| 丘北县| 广安市| 铅山县| 枣强县| 重庆市| 三亚市| 辉南县| 苗栗市| 永福县| 沧州市| 安陆市| 麟游县| 葫芦岛市| 禄丰县| 彩票| 桦南县| 德安县| 合江县| 新疆| 清徐县| 福州市| 山东省| 德安县| 托克托县| 淳安县| 芜湖市| 辽宁省| 呼图壁县| 新闻| 叙永县| 柘荣县| 汾西县| 岗巴县|