C++ 使用源代码树makefile构建Arduino due BOSSAC源代码
我已从以下位置下载了bossa源代码- 我安装了Cygwin for windows,并通过执行以下make命令从Cygwin外壳构建了源代码:C++ 使用源代码树makefile构建Arduino due BOSSAC源代码,c++,c,arduino,embedded,arduino-due,C++,C,Arduino,Embedded,Arduino Due,我已从以下位置下载了bossa源代码- 我安装了Cygwin for windows,并通过执行以下make命令从Cygwin外壳构建了源代码: make OS=MINGW32_NT-6.1 我得到以下错误: In file included from src/WinPortFactory.h:33:0, from src/WinPortFactory.cpp:29: src/PortFactory.h:59:2: error: #error "Platform is
make OS=MINGW32_NT-6.1
我得到以下错误:
In file included from src/WinPortFactory.h:33:0,
from src/WinPortFactory.cpp:29:
src/PortFactory.h:59:2: error: #error "Platform is not supported"
#error "Platform is not supported"
^
Makefile:180: recipe for target 'obj/WinPortFactory.o' failed
make: *** [obj/WinPortFactory.o] Error 1
在检查了PortFactory.h文件之后,我看到一个预处理器指令\uuuuwin32\uuuu
我尝试将其包括在我的构建中,但没有成功:
make OS=MINGW32_NT-6.1 CPPFLAGS=-D__WIN32__
我错过了什么?我也有
CFLAGS
和cxflags
,但没有成功。只是为了确认,您尝试了cxflags=-D_uuwin32_uu
,对吗?但是您不必指定它。查看它使用的makefileCOMMON\u CXXFLAGS