diff --git a/bsp/simulator/SConstruct b/bsp/simulator/SConstruct index 4dd5342cc6..12dbd7a025 100755 --- a/bsp/simulator/SConstruct +++ b/bsp/simulator/SConstruct @@ -55,6 +55,7 @@ else: TARGET = 'rtthread' env.Append(CCFLAGS=rtconfig.CFLAGS) env.Append(LINKFLAGS=rtconfig.LFLAGS) + env.Append(LIBS=['m']) # prepare building environment diff --git a/bsp/simulator/rtconfig.py b/bsp/simulator/rtconfig.py index fbff96e8be..4007e0b1d8 100755 --- a/bsp/simulator/rtconfig.py +++ b/bsp/simulator/rtconfig.py @@ -46,7 +46,7 @@ if PLATFORM == 'gcc': else: CFLAGS += ' -O2' - POST_ACTION = OBJCPY + ' -O binary $TARGET rtthread.bin\n' + SIZE + ' $TARGET \n' + POST_ACTION = '' elif PLATFORM == 'cl': # toolchains diff --git a/bsp/simulator/rtgui_demo/snake/snake_gui.c b/bsp/simulator/rtgui_demo/snake/snake_gui.c index 836355236b..0df1ba7a87 100644 --- a/bsp/simulator/rtgui_demo/snake/snake_gui.c +++ b/bsp/simulator/rtgui_demo/snake/snake_gui.c @@ -365,7 +365,7 @@ void snake_main(void) struct rtgui_win *win; rtgui_rect_t rect; - application = rtgui_app_create(rt_thread_self(), "sanke_app"); + application = rtgui_app_create("sanke_app"); if (application != RT_NULL) { rtgui_get_screen_rect(&rect); @@ -397,4 +397,4 @@ void snake_main(void) } #include -FINSH_FUNCTION_EXPORT(snake_main, snake run) \ No newline at end of file +FINSH_FUNCTION_EXPORT(snake_main, snake run)