麦步社区-论坛
标题: 我到底哪个步骤错了呢? [打印本页]
作者: youjj2017 时间: 2017-2-13 11:19
标题: 我到底哪个步骤错了呢?
本帖最后由 youjj2017 于 2017-2-13 11:26 编辑
第一步:安装arm到默认文件夹
[attach]7049[/attach]
[attach]7050[/attach]
第二步:解压VisualMWatch_W64文件夹到D盘
[attach]7051[/attach]
第三步:电脑环境变量path编写为
C:\Program Files (x86)\GNU Tools ARMEmbedded\4.72014q2\bin;D:\VisualMWatch_W64\mbcc\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;
[attach]7052[/attach]
第四步:复制藤蔓十字绣到VisualMWatch_W64文件夹内
[attach]7053[/attach]
第五步:双击VisualMWatch_W64—文件—打开
[attach]7054[/attach]
第六步:去掉//
[attach]7055[/attach]
第七步:模拟
[attach]7056[/attach]
下了不止一个文件,都出红字,不知道是什么原因,有的出现的更多,重装了电脑又换了不同的电脑,都是这样的情况,是不是我哪一步没有设置对呢?
后附另外一个,也是有大量红字,不明白怎么回事,都是别人的成功的代码,在我的电脑上就出现红字。
正在编译...
arm-none-eabi-gcc -c -mthumb -mcpu=cortex-m0 watcheface_show_morebosss_m01.c -I .\SDK\
In file included from watcheface_show_morebosss_m01.c:6:0:
maibu_res.h:3:0: warning: "RES_BITMAP_WATCHFACE_WEATHER_BG" redefined [enabled by default]
In file included from .\SDK/maibu_sdk.h:120:0,
from watcheface_show_morebosss_m01.c:5:
.\SDK/maibu_res_bitmap_base_sdk.h:76:0: note: this is the location of the previous definition
watcheface_show_morebosss_m01.c: In function 'window_reloading':
watcheface_show_morebosss_m01.c:138:26: warning: initialization makes pointer from integer without a cast [enabled by default]
watcheface_show_morebosss_m01.c: In function 'sec_callback':
watcheface_show_morebosss_m01.c:183:26: warning: initialization makes pointer from integer without a cast [enabled by default]
watcheface_show_morebosss_m01.c: In function 'data_handler_per_minute':
watcheface_show_morebosss_m01.c:336:2: warning: passing argument 2 of 'strcat' from incompatible pointer type [enabled by default]
In file included from watcheface_show_morebosss_m01.c:3:0:
c:\program files (x86)\gnu tools arm embedded\4.7 2014q2\bin\../lib/gcc/arm-none-eabi/4.7.4/../../../../arm-none-eabi/include/string.h:27:8: note: expected 'const char *' but argument is of type 'char (*)[2]'
正在打包...
-------------read appinfo.json-------------
uuid:a2cd0396b28ac1abdf911a0d0a9fe625
app_id:2833185
name:金鸡报晓
icon:5001
version:101
watchface:1
sysapp:0
res_num:3
res:0, type:0, name:RES_BITMAP_WATCHFACE_WEATHER_BG, file:bg.bmp
res:1, type:0, name:RES_BITMAP_SPORT_ble_con, file:ble_con.bmp
res:2, type:0, name:RES_BITMAP_SPORT_ble_discon, file:ble_discon.bmp
-----------------begin create res.h-------------
-----------------create res.h ok-------------
-----------------begin create res_file-------------
type:0, res_key:5001, offset:66, res_size:2048, width:128, height:128
type:0, res_key:5002, offset:2114, res_size:480, width:60, height:60
type:0, res_key:5003, offset:2594, res_size:480, width:60, height:60
-------------create res_file ok---------------
---------------prepare pack head----------
---------------read res_file----------
---------------read code----------
---------------write pack head----------
---------------write res ----------
---------------write code ----------
---------------pack file:金鸡报晓 ok ----------
正在编译...
D:\VisualMWatch_W64\watcheface_show_morebosss_m01.c: In function 'data_handler_per_minute':
D:\VisualMWatch_W64\watcheface_show_morebosss_m01.c:336:34: warning: passing argument 2 of 'strcat' from incompatible pointer type
strcat(g_show_more_str_altitude,&MMM);
^
In file included from D:\VisualMWatch_W64\watcheface_show_morebosss_m01.c:3:0:
D:/VisualMWatch_W64/mbcc/x86_64-w64-mingw32/include/string.h:52:18: note: expected 'const char * __restrict__' but argument is of type 'char (*)[2]'
char * __cdecl strcat(char * __restrict__ _Dest,const char * __restrict__ _Source);
^
作者: Deaver 时间: 2017-2-13 11:50
模拟器有显示的话,一般就代表成功了。
“红字” 是供分析问题时用的日志。
如果日志里没有 error 字样,不影响使用。
有 error 的话,就可以根据红字部分的内容定位代码问题。
作者: Deaver 时间: 2017-2-13 11:56
例如:
根据第一个错误提示信息:
In file included from watcheface_show_morebosss_m01.c:6:0:
maibu_res.h:3:0: warning: "RES_BITMAP_WATCHFACE_WEATHER_BG" redefined [enabled by default]
是说 RES_BITMAP_WATCHFACE_WEATHER_BG 重复定义了。
这个变量是 SDK 里面的一个定义重复了。把 json 和 .c 里面的这个变量改下就可以了。
例如都改成 RES_BITMAP_WATCHFACE_WEATHER_BG_0001
作者: youjj2017 时间: 2017-2-13 12:15
嗯,嗯,辛苦啦!谢谢!
作者: 细川玉木 时间: 2017-2-15 00:55
这个应该是发去开发者板块吧
作者: 雪山飞狐 时间: 2017-2-16 20:16
同意楼上
欢迎光临 麦步社区-论坛 (http://203.195.186.190/) |
Powered by Discuz! X3.2 |