WhyCan Forum

本站无需注册,无需积分,无需回复可下载所有资料,如果真的喜欢小站,请您注册之后请至少回复一个帖子激活Id,谢谢支持! 站长QQ: 516333132 (挖坑网/填坑网) admin@whycan.cn

您尚未登录。

#1 2019-01-28 15:45:19

达克罗德
会员
注册时间: 2018-04-10
累计积分: 483

awtk用VS2017编译成功

python 安装scons

 pip install scons 

然后编译

 scons 

但是遇到错误 cannot find stdlib.h
在GitHub提问也没人知道

自己搜索得知scons的一个问题
https://github.com/nvaccess/nvda/issues/6356

然后把我的SDK  C:\Program Files (x86)\Windows Kits\10\Include
10.0.17763.0 改成 bak.10.0.17763.0

编译通过

2019-01-28-15_35_09-AWTK-Simulator.png

字体有点发虚不知道怎么回事

离线

#2 2019-01-28 16:08:51

达克罗德
会员
注册时间: 2018-04-10
累计积分: 483

Re: awtk用VS2017编译成功

更多截图,似乎DPI有问题
2019-01-28-15_59_49-AWTK-Simulator.png2019-01-28-16_00_09-AWTK-Simulator.png2019-01-28-16_00_29-AWTK-Simulator.png2019-01-28-16_04_22-AWTK-Simulator.png

离线

#3 2019-01-28 16:12:18

晕哥
Administrator
注册时间: 2017-09-06
累计积分: 6,164

Re: awtk用VS2017编译成功

QQ20190128161144.png


感谢分享, 我已经把 python 和 pip & scons 装起来了, 就缺 VC2017 了, 家里电脑有, 回去试一试.

安装 scons 步奏: https://stackoverflow.com/questions/4750806/how-do-i-install-pip-on-windows

wget https://bootstrap.pypa.io/get-pip.py
python  get-pip.py
pip install scons


https://github.com/zlgopen/awtk
(请先安装python2.7,scons和Visual Studio C++(版本>=2017)

离线

#4 2019-01-29 10:19:26

晕哥
Administrator
注册时间: 2017-09-06
累计积分: 6,164

Re: awtk用VS2017编译成功

$ scons
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
Using tempfile c:/users/admini~1/appdata/local/temp/tmpvwnq1b.lnk for command line:
lib /nologo /OUT:lib/awtk.lib src/tkc/buffer.obj src/tkc/color.obj src/tkc/color_parser.obj src/tkc/darray.obj src/tkc/date_time.obj src/tkc/easing.obj src/tkc/emitter.obj src/tkc/event.obj src/tkc/fs.obj src/tkc/func_call_parser.obj src/tkc/matrix.obj src/tkc/mem.obj src/tkc/named_value.obj src/tkc/object.obj src/tkc/object_default.obj src/tkc/path.obj src/tkc/rect.obj src/tkc/slist.obj src/tkc/str.obj src/tkc/time_now.obj src/tkc/tokenizer.obj src/tkc/utf8.obj src/tkc/utils.obj src/tkc/value.obj src/tkc/wstr.obj src/base/assets_manager.obj src/base/bitmap.obj src/base/canvas.obj src/base/children_layouter.obj src/base/clip_board.obj src/base/custom_props.obj src/base/enums.obj src/base/event_queue.obj src/base/events.obj src/base/font.obj src/base/font_loader.obj src/base/font_manager.obj src/base/glyph_cache.obj src/base/idle.obj src/base/idle_info.obj src/base/idle_manager.obj src/base/image_base.obj src/base/image_loader.obj src/base/image_manager.obj src/base/input_device_status.obj src/base/input_engine.obj src/base/input_method.obj src/base/layout.obj src/base/lcd.obj src/base/line_break.obj src/base/locale_info.obj src/base/main_loop.obj src/base/rom_fs.obj src/base/self_layouter.obj src/base/style.obj src/base/style_const.obj src/base/style_factory.obj src/base/suggest_words.obj src/base/system_info.obj src/base/theme.obj src/base/timer.obj src/base/timer_info.obj src/base/timer_manager.obj src/base/ui_builder.obj src/base/ui_loader.obj src/base/velocity.obj src/base/vgcanvas.obj src/base/widget.obj src/base/widget_animator.obj src/base/widget_animator_factory_null.obj src/base/widget_animator_manager.obj src/base/widget_factory.obj src/base/widget_pool.obj src/base/widget_vtable.obj src/base/window_animator.obj src/base/window_base.obj src/base/window_manager.obj src/layouters/children_layouter_default.obj src/layouters/children_layouter_factory.obj src/layouters/self_layouter_default.obj src/layouters/self_layouter_factory.obj src/widgets/app_bar.obj src/widgets/button.obj src/widgets/button_group.obj src/widgets/calibration_win.obj src/widgets/check_button.obj src/widgets/color_tile.obj src/widgets/column.obj src/widgets/combo_box.obj src/widgets/combo_box_item.obj src/widgets/dialog.obj src/widgets/dialog_client.obj src/widgets/dialog_title.obj src/widgets/dragger.obj src/widgets/edit.obj src/widgets/grid.obj src/widgets/grid_item.obj src/widgets/group_box.obj src/widgets/image.obj src/widgets/label.obj src/widgets/pages.obj src/widgets/popup.obj src/widgets/progress_bar.obj src/widgets/row.obj src/widgets/slider.obj src/widgets/spin_box.obj src/widgets/system_bar.obj src/widgets/tab_button.obj src/widgets/tab_button_group.obj src/widgets/tab_control.obj src/widgets/view.obj src/widgets/window.obj src/ui_loader/ui_binary_writer.obj src/ui_loader/ui_builder_default.obj src/ui_loader/ui_loader_default.obj src/ui_loader/ui_loader_xml.obj src/ui_loader/ui_serializer.obj src/ui_loader/ui_xml_writer.obj src/ui_loader/window_open.obj src/xml/xml_builder.obj src/xml/xml_parser.obj src/svg/bsvg.obj src/svg/bsvg_builder.obj src/svg/bsvg_draw.obj src/svg/bsvg_to_svg.obj src/svg/svg_path.obj src/svg/svg_path_parser.obj src/svg/svg_shape.obj src/svg/svg_to_bsvg.obj src/clip_board/clip_board_default.obj src/clip_board/clip_board_sdl.obj src/font_loader/font_loader_bitmap.obj src/font_loader/font_loader_ft.obj src/font_loader/font_loader_stb.obj src/blend/blend_image_bgr565_bgr565.obj src/blend/blend_image_bgr565_bgra8888.obj src/blend/blend_image_bgr565_rgba8888.obj src/blend/blend_image_bgr888_bgr565.obj src/blend/blend_image_bgr888_bgra8888.obj src/blend/blend_image_bgr888_rgba8888.obj src/blend/blend_image_bgra8888_bgr565.obj src/blend/blend_image_bgra8888_bgra8888.obj src/blend/blend_image_bgra8888_rgba8888.obj src/blend/blend_image_rgb565_bgr565.obj src/blend/blend_image_rgb565_bgra8888.obj src/blend/blend_image_rgb565_rgba8888.obj s无效开关 - "users"。
rc/blend/blend_image_rgba8888_bgr565.obj src/blend/blend_image_rgba8888_bgra8888.obj src/blend/blend_image_rgba8888_rgba8888.obj src/blend/fill_image_bgr565.obj src/blend/fill_image_bgr888.obj src/blend/fill_image_bgra8888.obj src/blend/fill_image_rgb565.obj src/blend/fill_image_rgba8888.obj src/blend/image_g2d.obj src/blend/rotate_image_bgr565.obj src/blend/rotate_image_bgr888.obj src/blend/rotate_image_bgra8888.obj src/blend/rotate_image_rgb565.obj src/blend/rotate_image_rgba8888.obj src/blend/soft_g2d.obj src/blend/stm32_g2d.obj src/ext_widgets/ext_widgets.obj src/ext_widgets/canvas_widget/canvas_widget.obj src/ext_widgets/color_picker/color_component.obj src/ext_widgets/color_picker/color_picker.obj src/ext_widgets/color_picker/rgb_and_hsv.obj src/ext_widgets/gif_image/gif_image.obj src/ext_widgets/guage/guage.obj src/ext_widgets/guage/guage_pointer.obj src/ext_widgets/image_animation/image_animation.obj src/ext_widgets/image_value/image_value.obj src/ext_widgets/keyboard/candidates.obj src/ext_widgets/keyboard/keyboard.obj src/ext_widgets/progress_circle/progress_circle.obj src/ext_widgets/rich_text/rich_text.obj src/ext_widgets/rich_text/rich_text_node.obj src/ext_widgets/rich_text/rich_text_parser.obj src/ext_widgets/rich_text/rich_text_render_node.obj src/ext_widgets/scroll_view/list_item.obj src/ext_widgets/scroll_view/list_view.obj src/ext_widgets/scroll_view/list_view_h.obj src/ext_widgets/scroll_view/scroll_bar.obj src/ext_widgets/scroll_view/scroll_view.obj src/ext_widgets/slide_menu/slide_menu.obj src/ext_widgets/slide_view/slide_view.obj src/ext_widgets/svg_image/svg_image.obj src/ext_widgets/switch/switch.obj src/ext_widgets/text_selector/text_selector.obj src/ext_widgets/time_clock/digit_clock.obj src/ext_widgets/time_clock/time_clock.obj src/image_loader/image_loader_stb.obj src/designer_support/style_mutable.obj src/widget_animators/widget_animator_factory.obj src/widget_animators/widget_animator_prop.obj src/widget_animators/widget_animator_prop2.obj src/widget_animators/widget_animator_scroll.obj src/platforms/pc/fs_os.obj src/platforms/pc/mutex.obj src/platforms/pc/platform.obj src/platforms/pc/thread.obj src/misc/new.obj src/misc/test_cpp.obj src/awtk_global.obj src/main_loop/main_loop_simple.obj src/window_animators/window_animator_gpu.obj src/lcd/lcd_nanovg.obj src/main_loop/main_loop_sdl_gpu.obj src/input_methods/input_method_creator.obj src/lcd/lcd_mem_bgr565.obj src/lcd/lcd_mem_bgr888.obj src/lcd/lcd_mem_bgra8888.obj src/lcd/lcd_mem_rgb565.obj src/lcd/lcd_mem_rgba8888.obj src/vgcanvas/vgcanvas_nanovg_gl.obj src/input_engines/input_engine_pinyin.obj
lib @c:/users/admini~1/appdata/local/temp/tmpvwnq1b.lnk
scons: building terminated because of errors.
scons: *** [lib/awtk.lib] Error 1

我的编译出问题了.

离线

#5 2019-01-29 10:45:58

达克罗德
会员
注册时间: 2018-04-10
累计积分: 483

Re: awtk用VS2017编译成功

看不出Erro是什么呀。你是最新版master分支?

离线

#6 2019-01-29 10:49:30

晕哥
Administrator
注册时间: 2017-09-06
累计积分: 6,164

Re: awtk用VS2017编译成功

达克罗德 说:

看不出Erro是什么呀。你是最新版master分支?

是最新版本master, 前面 VC2017 编译都没问题, 好像最后一步链接失败了。

晚点换台电脑试一试

离线

#7 2019-01-29 20:11:04

晕哥
Administrator
注册时间: 2017-09-06
累计积分: 6,164

Re: awtk用VS2017编译成功

QQ20190129201024.png

终于编译成功, 体验还挺不错!

用的也是 SDL2 模拟器

离线

#8 2019-01-29 20:17:50

晕哥
Administrator
注册时间: 2017-09-06
累计积分: 6,164

Re: awtk用VS2017编译成功

总结一下:

1. 下载 64bit windows 安装:
https://www.python.org/ftp/python/2.7.15/python-2.7.15.amd64.msi

2. 修改环境变量 (假设安装再D盘)
D:\Python27\Scripts;D:\Python27\ 添加到  PATH

3. 下载 https://bootstrap.pypa.io/get-pip.py 并命令行执行 python get-pip.py

4. 安装 scons: pip install scons

5. 克隆awtk项目: git clone https://github.com/zlgopen/awtk.git

6. 编译: cd awtk;scons

离线

#9 2019-01-30 09:38:10

达克罗德
会员
注册时间: 2018-04-10
累计积分: 483

Re: awtk用VS2017编译成功

你这个似乎没有模糊和控件位置异常的问题。看来是我系统环境有不兼容的问题

离线

页脚