readelf: Error: '.\build\maibu_code': No such file
正在打包...
not found file:.\build\maibu_code
create pack failed
正在编译...
E:\VisualMWatch_W32\new_weather_watchface.c: In function 'request_gps_info':
E:\VisualMWatch_W32\new_weather_watchface.c:594:2: error: too few arguments to function 'maibu_comm_request_phone'
-----------------begin create res.h-------------
-----------------create res.h ok-------------
-----------------begin create res_file-------------
type:0, res_key:5001, offset:171, res_size:2048, width:128, height:128
type:0, res_key:5002, offset:2219, res_size:1600, width:128, height:100
type:0, res_key:5003, offset:3819, res_size:600, width:80, height:60
type:0, res_key:5004, offset:4419, res_size:600, width:80, height:60
type:0, res_key:5005, offset:5019, res_size:600, width:80, height:60
type:0, res_key:5006, offset:5619, res_size:600, width:80, height:60
type:0, res_key:5007, offset:6219, res_size:600, width:80, height:60
type:0, res_key:5008, offset:6819, res_size:600, width:80, height:60
type:0, res_key:5009, offset:7419, res_size:600, width:80, height:60
type:0, res_key:5010, offset:8019, res_size:600, width:80, height:60
-------------create res_file ok---------------
---------------prepare pack head----------
---------------read res_file----------
---------------read code----------
not found file:.\build\maibu_code
create pack failed
正在编译...
arm-none-eabi-gcc -c -mthumb -mcpu=cortex-m0 new_weather_watchface.c -I .\SDK\
In file included from new_weather_watchface.c:7: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 new_weather_watchface.c:6:
.\SDK/maibu_res_bitmap_base_sdk.h:76:0: note: this is the location of the previous definition
new_weather_watchface.c: In function 'set_waiting_info_str':
new_weather_watchface.c:272:22: warning: initialization makes pointer from integer without a cast [enabled by default]
new_weather_watchface.c: In function 'weather_info_callback':
new_weather_watchface.c:390:22: warning: initialization makes pointer from integer without a cast [enabled by default]
new_weather_watchface.c: In function 'city_info_callback':
new_weather_watchface.c:505:22: warning: initialization makes pointer from integer without a cast [enabled by default]
new_weather_watchface.c: In function 'request_gps_info':
new_weather_watchface.c:594:2: error: too few arguments to function 'maibu_comm_request_phone'
In file included from .\SDK/maibu_sdk.h:126:0,
from new_weather_watchface.c:6:
.\SDK/maibu_ble.h:135:17: note: declared here
new_weather_watchface.c: In function 'time_change':
new_weather_watchface.c:611:23: warning: initialization makes pointer from integer without a cast [enabled by default]
new_weather_watchface.c: In function 'app_weather_update_timer_callback':
new_weather_watchface.c:831:23: warning: initialization makes pointer from integer without a cast [enabled by default]
new_weather_watchface.c: In function 'weather_comm_result_callback':
new_weather_watchface.c:873:4: error: too few arguments to function 'maibu_comm_request_phone'
In file included from .\SDK/maibu_sdk.h:126:0,
from new_weather_watchface.c:6:
.\SDK/maibu_ble.h:135:17: note: declared here
new_weather_watchface.c: In function 'main':
new_weather_watchface.c:903:2: warning: passing argument 1 of 'maibu_comm_register_phone_callback' from incompatible pointer type [enabled by default]
In file included from .\SDK/maibu_sdk.h:126:0,
from new_weather_watchface.c:6:
.\SDK/maibu_ble.h:121:13: note: expected 'CBCommPhone' but argument is of type 'void (*)(enum ERequestPhone, void *)'
arm-none-eabi-ld: cannot find .\*.o: Invalid argument
readelf: Error: '.\build\maibu_code': No such file
正在打包...
-------------read appinfo.json-------------
uuid:39fe260221d9717da155d14404ca4054
app_id:33280
name:��������
icon:5001
version:127
watchface:0
sysapp:1
res_num:10
res:0, type:0, name:RES_BITMAP_WATCHFACE_WEATHER_BG, file:watchface-bg.bmp
res:1, type:0, name:RES_BITMAP_WATCHFACE_WEATHER_UPDATING, file:updating.bmp
res:2, type:0, name:RES_BITMAP_WATCHFACE_WEATHER_CLOUDY_DAY, file:cloudy_day.bmp
res:3, type:0, name:RES_BITMAP_WATCHFACE_WEATHER_CLOUDY_NIGHT, file:cloudy_night.bmp
res:4, type:0, name:RES_BITMAP_WATCHFACE_WEATHER_FOG, file:fog.bmp
res:5, type:0, name:RES_BITMAP_WATCHFACE_WEATHER_OVERCAST, file:overcast.bmp
res:6, type:0, name:RES_BITMAP_WATCHFACE_WEATHER_RAIN, file:rain.bmp
res:7, type:0, name:RES_BITMAP_WATCHFACE_WEATHER_SNOW, file:snow.bmp
res:8, type:0, name:RES_BITMAP_WATCHFACE_WEATHER_SUNNY_DAY, file:sunny_day.bmp
res:9, type:0, name:RES_BITMAP_WATCHFACE_WEATHER_SUNNY_NIGHT, file:sunny_night.bmp
E:\VisualMWatch_W32\new_weather_watchface.c: In function 'request_gps_info':
E:\VisualMWatch_W32\new_weather_watchface.c:594:2: error: too few arguments to function 'maibu_comm_request_phone'
g_comm_id_gps = maibu_comm_request_phone(ERequestPhoneGPSAltitude, NULL);
^
In file included from e:\visualmwatch_w32\mbcc\include\maibu_sdk.h:23:0,
from E:\VisualMWatch_W32\new_weather_watchface.c:6:
e:\visualmwatch_w32\mbcc\include\os_comm.h:305:10: note: declared here
uint32_t maibu_comm_request_phone(enum ERequestPhone type, uint8_t *context, uint16_t context_size);
^
E:\VisualMWatch_W32\new_weather_watchface.c: In function 'weather_comm_result_callback':
E:\VisualMWatch_W32\new_weather_watchface.c:873:4: error: too few arguments to function 'maibu_comm_request_phone'
g_comm_id_gps = maibu_comm_request_phone(ERequestPhoneGPSAltitude, NULL);
^
In file included from e:\visualmwatch_w32\mbcc\include\maibu_sdk.h:23:0,
from E:\VisualMWatch_W32\new_weather_watchface.c:6:
e:\visualmwatch_w32\mbcc\include\os_comm.h:305:10: note: declared here
uint32_t maibu_comm_request_phone(enum ERequestPhone type, uint8_t *context, uint16_t context_size);
^
E:\VisualMWatch_W32\new_weather_watchface.c: In function 'main':
E:\VisualMWatch_W32\new_weather_watchface.c:903:2: warning: passing argument 1 of 'maibu_comm_register_phone_callback' from incompatible pointer type [enabled by default]
maibu_comm_register_phone_callback(gps_info_callback);
^
In file included from e:\visualmwatch_w32\mbcc\include\maibu_sdk.h:23:0,
from E:\VisualMWatch_W32\new_weather_watchface.c:6:
e:\visualmwatch_w32\mbcc\include\os_comm.h:306:6: note: expected 'CBCommPhone' but argument is of type 'void (*)(enum ERequestPhone, void *)'
void maibu_comm_register_phone_callback(CBCommPhone phone_callback);
^
'mbcc\bin\mw.exe' 不是内部或外部命令,也不是可运行的程序
或批处理文件。 作者: 王克_jRj95 时间: 2017-3-12 21:07
经过一番研究,发现不是环境配置的问题,是开源代码的问题,目前还没确定问题的具体位置,希望给为看到帖子的吧友相互交流,交流作者: qs100371 时间: 2017-3-12 21:13
试试demo里的简单例子作者: 王克_jRj95 时间: 2017-3-12 23:33
demo的例子实验都是成功的作者: 王克_jRj95 时间: 2017-3-12 23:34
错误研究进展:
与gps有关的错误,gps参数不足
new_weather_watchface.c:594:2: error: too few arguments to function 'maibu_comm_request_phone'
In file included from .\SDK/maibu_sdk.h:126:0,
from new_weather_watchface.c:6:
.\SDK/maibu_ble.h:135:17: note: declared here
new_weather_watchface.c: In function 'time_change':
于gps有关的错误,gps参数不足
E:\VisualMWatch_W64\new_weather_watchface.c:594:18: error: too few arguments to function 'maibu_comm_request_phone'
g_comm_id_gps = maibu_comm_request_phone(ERequestPhoneGPSAltitude, NULL);
^
In file included from .\mbcc\include/maibu_sdk.h:23:0,
from E:\VisualMWatch_W64\new_weather_watchface.c:6:
.\mbcc\include/os_comm.h:305:10: note: declared here
uint32_t maibu_comm_request_phone(enum ERequestPhone type, uint8_t *context, uint16_t context_size);
^
分析结果:
1.缺少gps参数
readelf: Error: '.\build\maibu_code': No such file
2.找不到maibu_code 文件
实时天气:
Gps参数缺少:
watchface_weather.c:682:3: error: too few arguments to function 'maibu_comm_request_phone'
In file included from .\SDK/maibu_sdk.h:126:0,
from watchface_weather.c:50:
.\SDK/maibu_ble.h:135:17: note: declared here
watchface_weather.c: In function 'main':
watchface_weather.c:721:2: error: too few arguments to function 'maibu_comm_request_phone'
In file included from .\SDK/maibu_sdk.h:126:0,
from watchface_weather.c:50:
.\SDK/maibu_ble.h:135:17: note: declared here
arm-none-eabi-ld: cannot find .\*.o: Invalid argument
计数器:
找不到头文件os_res_bitmap.h
E:\VisualMWatch_W64\watchface_weather.c:36:27: fatal error: os_res_bitmap.h: No such file or directory
#include "os_res_bitmap.h"
^
compilation terminated.
readelf: Error: '.\build\maibu_code': No such file