您尚未登录。

楼主 #1 2020-02-10 14:51:50

颜水花生
会员
注册时间: 2019-11-20
已发帖子: 53
积分: 37

AWTK win10 编译报错求助各位大神 g++: error: /EHsc: No such file or directory

根据官方文档,已经安装了如下软件

1  python(x64 版本>=2.7)
2  scons(版本>=3.0.0)
3  Visual Studio C++(版本>=2017)



进入win10 shell窗口输入命令 scons 编译报错 如下 、烦请各位大神看看啥情况,不胜感激 big_smile

    目录: E:\AWTK Projects\awtk-v1.3-SDK


Mode                LastWriteTime         Length Name
----                -------------         ------ ----
d-----        2020/2/10     14:18                awtk
d-----        2020/2/10     14:14                awtk-examples
d-----        2020/2/10     14:34                awtk-linux-fb
d-----        2020/2/10     14:14                user_apps
-a----        2020/1/16     17:07            179 version.txt


PS E:\AWTK Projects\awtk-v1.3-SDK> cd awtk
PS E:\AWTK Projects\awtk-v1.3-SDK\awtk> scons
scons: Reading SConscript files ...
MACH=AMD64 ARCH=('32bit', 'WindowsPE') TARGET_ARCH=arm
TK_ROOT: E:\AWTK Projects\awtk-v1.3-SDK\awtk
scons: done reading SConscript files.
scons: Building targets ...
g++ -o 3rd\agge\agge\math.o -c -DWIN32 -D_WIN32 -DWINDOWS /EHsc -D_CONSOLE /DEBUG /Od /FS /Z7 -DWITH_64BIT_CPU -DTK_ROOT=\"E:\\AWTK Projects\\awtk-v1.3-SDK\\awtk\" -DSTBTT_STATIC -DSTB_IMAGE_STATIC -DWITH_STB_IMAGE -DWITH_SOCKET -DWITH_VGCANVAS -DWITH_UNICODE_BREAK -DWITH_DESKTOP_STYLE -DSDL2 -DHAS_STD_MALLOC -DWITH_SDL -DWITH_FS_RES -DHAS_STDIO -DHAVE_STDIO_H -DWITH_STB_FONT -DWITH_BITMAP_BGRA -DWITH_NANOVG_SOFT -DWITH_FB_BGR565=1 -DWITH_NANOVG_AGGE -D_WIN64 -DSDL_REAL_API -DSDL_HAPTIC_DISABLED -DSDL_SENSOR_DISABLED -DSDL_JOYSTICK_DISABLED -D__STDC_LIMIT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_CONSTANT_MACROS -D_HAS_EXCEPTIONS=0 -D_HAS_ITERATOR_DEBUGGING=0 -D_ITERATOR_DEBUG_LEVEL=0 -D_SCL_SECURE=0-D_SECURE_SCL=0 -D_SCL_SECURE_NO_WARNINGS -D_CRT_SECURE_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -I. -Isrc -I3rd -Isrc\ext_widgets -I3rd\pixman -I3rd\cairo -I3rd\bgfx\bgfx\include -I3rd\bgfx\bx\include -I3rd\bgfx\bimg\include -I3rd\agge -I3rd\agg\include -I3rd\nanovg -I3rd\nanovg\gl -I3rd\nanovg\base -I3rd\nanovg\agge -I3rd\nanovg\bgfx -I3rd\SDL\src -I3rd\SDL\include -I3rd\agge\src -I3rd\agge\include -I3rd\gpinyin\include -I3rd\libunibreak -I3rd\gtest\googletest -I3rd\gtest\googletest\include -Itools 3rd\agge\agge\math.cpp
g++: error: /EHsc: No such file or directory
g++: error: /DEBUG: No such file or directory
g++: error: /Od: No such file or directory
g++: error: /FS: No such file or directory
g++: error: /Z7: No such file or directory
g++: error: Projects\\awtk-v1.3-SDK\\awtk": No such file or directory
scons: *** [3rd\agge\agge\math.o] Error 1
scons: building terminated because of errors.
PS E:\AWTK Projects\awtk-v1.3-SDK\awtk>

请问各位大神这是啥情况呀?我电脑已经安装了gcc 和g++
命令行输入 g++ -v 可见如下 而且VS Studio2017也装的C++版本,编译LVGL都是正常的

PS E:\AWTK Projects\awtk-v1.3-SDK\awtk>
PS E:\AWTK Projects\awtk-v1.3-SDK\awtk> g++ -v
Using built-in specs.
COLLECT_GCC=C:\MinGW\bin\g++.exe
COLLECT_LTO_WRAPPER=c:/mingw/bin/../libexec/gcc/mingw32/6.3.0/lto-wrapper.exe
Target: mingw32
Configured with: ../src/gcc-6.3.0/configure --build=x86_64-pc-linux-gnu --host=mingw32 --with-gmp=/mingw --with-mpfr=/mingw --with-mpc=/mingw --with-isl=/mingw --prefix=/mingw --disable-win32-registry --target=mingw32 --with-arch=i586 --enable-languages=c,c++,objc,obj-c++,fortran,ada --with-pkgversion='MinGW.org GCC-6.3.0-1' --enable-static --enable-shared --enable-threads --with-dwarf2 --disable-sjlj-exceptions --enable-version-specific-runtime-libs --with-libiconv-prefix=/mingw --with-libintl-prefix=/mingw --enable-libstdcxx-debug --with-tune=generic --enable-libgomp --disable-libvtv --enable-nls
Thread model: win32
gcc version 6.3.0 (MinGW.org GCC-6.3.0-1)
PS E:\AWTK Projects\awtk-v1.3-SDK\awtk>

离线

#2 2020-02-10 15:13:54

phpweb
会员
注册时间: 2020-02-05
已发帖子: 3
积分: 3

Re: AWTK win10 编译报错求助各位大神 g++: error: /EHsc: No such file or directory

要不看下这个有没有参考价值:
https://whycan.cn/t_2118.html

离线

楼主 #3 2020-02-10 15:19:23

颜水花生
会员
注册时间: 2019-11-20
已发帖子: 53
积分: 37

Re: AWTK win10 编译报错求助各位大神 g++: error: /EHsc: No such file or directory

phpweb 说:

要不看下这个有没有参考价值:
https://whycan.cn/t_2118.html

好的谢谢,我试试看

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn