SDCC 的源码安装

直接使用apt-get install sdcc 安装后编译 contiki 会提示找不到库文件,应该到官网下载源码,经如下修改
参考博文:
编辑 device/lib/incl.mk
MODELS = small medium large
修改成如下:
MODELS = small large huge

编辑 device/lib/Makefile.in

TARGETS += models small-mcs51-stack-auto

修改成如下:

TARGETS += models model-mcs51-stack-auto

使用 apt-get build-dep sdcc 安装依赖包
配置编译

./configure –disable-gbz80-port –disable-z80-port –disable-ds390-port –disable-ds400-port –disable-pic14-port –disable-pic16-port –disable-hc08-port –disable-r2k-port –disable-z180-port –disable-sdcdb –disable-ucsim

执行: make
make install
验证安装是否成功 sdcc -v

你可能感兴趣的:(contiki)