2016-07-18 ruki
xmake在xmake.lua中提供了 $(varname) 的语法,来支持内置变量的获取,例如: lua add_cxflags("-I$(buildir)") 它将会在在实际编译的时候,将内置的 buildir 变量转换为实际的构建输出目录:-I./build 并且这些变量在自定义脚本中,也是可以支持的,例如: lua target("test") after_build(target) print("build ok for $(plat)!") end 这将会在编译完后,输出: lua build ok for macosx! 这些内置变量,大部分都是通过配置的时候,缓存的 继续阅读 »
2016-07-18 ruki
xmake provides the grammar: $(varname) for supporting builtin variable. .e.g lua add_cxflags("-I$(buildir)") It will translate this variable to the real value when building. -I$(buildir) => -I./build We can also use these variables in the custom scripts. lua target("test") after_build(target) print 继续阅读 »
2016-08-29 ruki
新特性 在xmake.lua中添加原生shell支持,例如:add_ldflags("$(shell pkg-config --libs sqlite3)") 编译windows目标程序,默认默认启用pdb符号文件 在windows上添加调试器支持(vsjitdebugger, ollydbg, windbg ... ) 添加getenv接口到xmake.lua的全局作用域中 添加生成vstudio工程插件(支持:vs2002 - vs2015) 为option添加set_default接口 改进 增强内建变量的处理 支持字符串类型的选项option设置 Bugs修复 修复在linux下检测ld连接器失败,如果没装g++的话 继续阅读 »
2016-08-29 ruki
New features Add native shell support for xmake.lua. .e.g add_ldflags("$(shell pkg-config --libs sqlite3)") Enable pdb symbol files for windows Add debugger support on windows (vsjitdebugger, ollydbg, windbg ... ) Add getenv interface for the global scope of xmake.lua Add plugin for generating vstudio project file (vs 继续阅读 »
2016-12-29 Lu Huang
本文介绍了如何在linux(本文是ubunut 16.04系统)下编译安装opencv(本文采用的opencv版本是3.1.0),包括安装流程和可能遇到的问题,这些大部分都是基于我个人的经验总结和opencv官网。 1.安装过程 1.1 解决基本依赖 首先必须确保你的系统中安装了opencv编译过程中的基本软件包,如果没有请用管理员权限或者请你的服务器的管理员帮忙执行以下命令。 sudo apt-get install build-essential sudo apt-get install cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev 继续阅读 »