Arduino由于使用源树makefile构建BOSSAC源代码

时间:2016-02-12 23:53:06

标签: c++ c arduino embedded arduino-due

我从 - https://github.com/shumatech/BOSSA/tree/arduino

下载了bossa源代码

我为Windows安装了Cygwin,并通过执行以下make命令从Cygwin shell构建了源代码:

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

我收到以下错误:

__WIN32__

在检查PortFactory.h文件后,我看到了预处理器指令make OS=MINGW32_NT-6.1 CPPFLAGS=-D__WIN32__

我试图在我的构建中包含它,如下所示并没有成功:

CFLAGS

我错过了什么?我也有CXXFLAGSif ($fd = fopen ($fullPath, "r")) { ,但没有成功。

0 个答案:

没有答案