1. pmf_gui是配置文件. cfg文件,或静态库、动态库. a or .so;
2 .配置文件的使用:主程序开始读取配置文件后,需要初始化如下。
int main () )
{
VOS_UINT32 uiRet=0;
VOS_CHAR *cfgfile;
cfgfile=' test.cfg';
ui ret=vos _ cfgdbinitbyfsldr (cfgfile;
VOS_sysprocidset;
uiRet=VOS_Start (;
if(vos_ok!=uiRet )
{
打印(vos _ start failed 3360 % u (n ),uiRet );
返回ui ret;
}
VOS_printf(Helloworld! n ';
返回0;
}
3. scons可以指定配置文件。 如果未指定,请使用./configs/default.py
#显示指定的工程编译环境定义文件
将configs/myconf.py指定为scons cfg=configs/myconf.py #项目的编译环境定义文件
#使用默认工程编译环境定义文件
scons #使用缺省工程编译环境定义文件: configs/default.py
4. scons清除示例:
#删除所有已编译的文件
scons distclean
#删除编译生成的文件。 不包括生成的软件包池
斯孔辛克莱安
5. prj.ABin示例:
#导入prj可变
导入(prj ) )。
#构建可执行文件
# abinsupportthefollowingkey-value参数
# pkgs :包至测试,allshowallpackagesincludecurrentbuild
#项目和当前打包池
# cfgfile :配置文件tobuildexecutablefile
# CFG arr : thearraynameofembededconfigfile
# LIBS : libraries needed
# LIBPATH : libraries pathes
# CPP path :头文件路径
# CPP defines : definition macros
#链接标志:链接标志
#
# For example:
prj.Abin(test )是,
' main.c ',
pkgs=['v_base '、' v_cfgdb '、' v_starter '、' example']、
LIBS=['pthread ',' rt'],
)