Git Product home page Git Product logo

awtk-stm32f103ze-raw's Issues

bitmap.c 编译报错

..\awtk\src\base\bitmap.c(149): error: #28: expression must have a constant value

rgba_t t = pixel_rgba8888_to_rgba((*p));

这个宏定义看起来没有什么问题,不知道为什么通不过编译。

awtk\demos\demo_basic.c(98): error: At end of source: #112: expected "while"

按照readme文件操作,编译的时候提示
awtk\demos\demo_basic.c(98): error: At end of source: #112: expected "while"
awtk\demos\demo_basic.c(98): error: At end of source: #125: expected a "("
awtk\demos\demo_basic.c(98): error: At end of source: #29: expected an expression
awtk\demos\demo_basic.c(98): error: At end of source: #18: expected a ")"
awtk\demos\demo_basic.c(98): error: At end of source: #65: expected a ";"
.\awtk\src\awtk_main.inc(70): warning: #177-D: variable "is_reboot" was declared but never referenced
bool_t is_reboot = FALSE;
awtk\demos\demo_basic.c(98): error: At end of source: #67: expected a "}"

双击错误后,keil索引到这个位置(demo_basic.c )
ret_t application_exit() {
log_debug("application_exit\n");
return RET_OK;
}

#include "awtk_main.inc"

error: #69: integer conversion resulted in truncation

将demo下载至本机,使用keil v4版本编译,发现以下异常:
Build target 'awtk'
compiling button.c...
..\awtk\src\widgets\button.c(213): error: #69: integer conversion resulted in truncation
.on_event = button_on_event,
..\awtk\src\widgets\button.c: 0 warnings, 1 error
compiling button.c...
..\awtk\src\widgets\button.c(213): error: #69: integer conversion resulted in truncation
.on_event = button_on_event,
..\awtk\src\widgets\button.c: 0 warnings, 1 error
compiling check_button.c...
..\awtk\src\widgets\check_button.c(151): error: #69: integer conversion resulted in truncation
.clone_properties = s_check_button_properties,
..\awtk\src\widgets\check_button.c(167): error: #69: integer conversion resulted in truncation
.clone_properties = s_check_button_properties,
..\awtk\src\widgets\check_button.c: 0 warnings, 2 errors
compiling dialog.c...
..\awtk\src\widgets\dialog.c(95): error: #69: integer conversion resulted in truncation
.clone_properties = s_dialog_properties,
..\awtk\src\widgets\dialog.c: 0 warnings, 1 error
compiling window.c...
..\awtk\src\widgets\window.c(80): error: #69: integer conversion resulted in truncation
.on_event = window_base_on_event,
..\awtk\src\widgets\window.c: 0 warnings, 1 error
compiling window_manager.c...
..\awtk\src\base\window_manager.c(852): error: #69: integer conversion resulted in truncation
.type = WIDGET_TYPE_WINDOW_MANAGER,
..\awtk\src\base\window_manager.c: 0 warnings, 1 error
compiling slider.c...
..\awtk\src\widgets\slider.c(456): error: #69: integer conversion resulted in truncation
.clone_properties = s_slider_properties,
..\awtk\src\widgets\slider.c: 0 warnings, 1 error
compiling system_info.c...
..\awtk\src\base\system_info.c(216): error: #69: integer conversion resulted in truncation
.get_prop = system_info_get_prop,
..\awtk\src\base\system_info.c: 0 warnings, 1 error
compiling pages.c...
..\awtk\src\widgets\pages.c(108): error: #69: integer conversion resulted in truncation
.type = WIDGET_TYPE_PAGES,
..\awtk\src\widgets\pages.c(110): error: #69: integer conversion resulted in truncation
.clone_properties = s_pages_clone_properties,
..\awtk\src\widgets\pages.c: 0 warnings, 2 errors
compiling edit.c...
..\awtk\src\widgets\edit.c(1119): error: #69: integer conversion resulted in truncation
.clone_properties = s_edit_properties,
..\awtk\src\widgets\edit.c: 0 warnings, 1 error
compiling spin_box.c...
..\awtk\src\widgets\spin_box.c(34): error: #69: integer conversion resulted in truncation
.clone_properties = s_edit_properties,
..\awtk\src\widgets\spin_box.c: 0 warnings, 1 error
compiling combo_box.c...
..\awtk\src\widgets\combo_box.c(150): error: #69: integer conversion resulted in truncation
.type = WIDGET_TYPE_COMBO_BOX,
..\awtk\src\widgets\combo_box.c: 0 warnings, 1 error
compiling popup.c...
..\awtk\src\widgets\popup.c(116): error: #69: integer conversion resulted in truncation
.clone_properties = s_popup_properties,
..\awtk\src\widgets\popup.c: 0 warnings, 1 error
compiling color_tile.c...
..\awtk\src\widgets\color_tile.c(82): error: #69: integer conversion resulted in truncation
.set_prop = color_tile_set_prop,
..\awtk\src\widgets\color_tile.c: 0 warnings, 1 error
compiling system_bar.c...
..\awtk\src\widgets\system_bar.c(101): error: #69: integer conversion resulted in truncation
.clone_properties = s_system_bar_properties,
..\awtk\src\widgets\system_bar.c: 0 warnings, 1 error
compiling overlay.c...
..\awtk\src\widgets\overlay.c(37): error: #69: integer conversion resulted in truncation
.on_event = window_base_on_event,
..\awtk\src\widgets\overlay.c: 0 warnings, 1 error
"..\obj\awtk_demo1.axf" - 18 Error(s), 0 Warning(s).
Target not created

Development board purchase

Dear @xianjimli

I cannot activate my account on Taobao.
Do you know another option for international shipping of this development board?
Thank you.

Thank you.

移植例程能够正常显示,但是在加入文件系统后,界面就无法显示

我将awtk/demos/assets 放入sd卡中,路径是awtk/assets/default/raw/---

文件系统是调用的例程STM32H743 ,

现在在main中调用 assert(file_exist("0://awtk/assets/default/raw/fonts/default.ttf")); 通过调试可以知道文件是存在的,这样可以说明文件系统已经是对的了吗;然后 我在assets-mini.c中修改了一下
ret_t assets_init(void) {
assets_manager_t* am = assets_manager();
#ifdef WITH_FS_RES
assets_manager_preload(am, ASSET_TYPE_FONT, "default");
assets_manager_preload(am, ASSET_TYPE_STYLE, "default");
#else
assets_manager_add(am, font_default_18);
assets_manager_add(am, image_bricks);
......
}
awtk_config.h 中 增加
#define WITH_FS_RES 1
#define APP_RES_ROOT "0://awtk/"
其他地方无改动,编译运行,界面显示白色,无其他显示。

keil5编译失败-没有darray文件和widget_pool文件

打开keil项目文件,导入对应的源文件,编译发现没有darray文件,请问darray文件是否变成了"awtk-master\awtk-master\src\tkc\array.c",另外widget_pool文件实在没找到,编译的时候也没有使用这个文件,对项目运行不知道有没有影响

设置控件文本内容不能显示

创建button控件,button边框可以显示,但是文本内容不显示
show_dialog = button_create(win, 190, 5, 40, 30);
widget_set_text(show_dialog, L"Dialog");

wcsdup函数声明与定义不一致

[Issue]
wcsdup函数声明与定义不一致
wcsdup()在外面被调用,但在wstr.h没有声明。

[期望结果]
在wstr.h中增加:
wchar_t* wcsdup(const wchar_t* s);

编译有非常多错误。

下载了awtk-stm32f103ze-raw 和awtk-master,将awtk文件夹放在工程目录里面,用keil4打开,出现非常多的错误,请问是我下载的文件错误吗?还是我放置的方法不对?还是文件不匹配?

编译不通过,显示Error: L6406E: No space in execution regions with .ANY selector

您好,我按照这个例程在正点原子的精英板(也是STM32F103ze)移植。
前面的LCD和Systick都测试成功了,但是到最后一步在main函数中,加入gui_app_start后,编译会出现大量的Error: L6406E: No space in execution regions with .ANY selector
我的awtk_config.h文件也按照例程修改了,宏也配置了,添加的文件是基于awtk-lpc1768-raw那个例程来的。

请问是什么原因呢?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.