在ubuntu环境下编译LUCI
来源:互联网 发布:win7网卡mac地址修改 编辑:程序博客网 时间:2024/05/17 05:14
官网上介绍的步骤:http://luci.subsignal.org/trac/wiki/Documentation/DevelopmentEnvironmentHowTo
1、Required Software
Make sure you have the following software installed on your host machine:
- GCC, Make (build-essential)
- Lua 5.1.x + development headers (lua5.1, liblua5.1-0-dev)
2、Getting the source code
The current stable release is luci-0.10. You can checkout the release via SVN with:
svn co http://svn.luci.subsignal.org/luci/branches/luci-0.10OR
You can checkout the current working branch with:
svn co http://svn.luci.subsignal.org/luci/trunk3、Running LuCI
make runhttpdprepares and compiles LuCI and its dependencies and finally starts the LuCI webserver under http://localhost:8080/luci.
make rungives you an overview over other possible run-targets.
4、Writing Code
While writing code make sure you do not edit any files in the dist-directory of any module or the global host directory. Changes there will be lost as soon as you rerun make. Instead change the files in theluasrc, root, ... directories of the modules and rerun make if you want to test your changes.
下面是重点:经过上面的步骤可能会报错undefined reference to `crypt'
The changes below should do it
$ cat contrib/uhttpd/uhttpd-src/Makefile |grep -A 1 -n compile:72:compile: $(OBJ) $(TLSLIB) $(LUALIB)73- $(CC) -o uhttpd $(LDFLAGS) $(OBJ) $(LIB)$ cat modules/admin-full/Makefile | grep -A 1 -n compile:13:compile: build-clean $(BWC_OBJ)14- $(LINK) -o src/$(BWC_BIN) $(BWC_OBJ) $(BWC_LDFLAGS)
$ cat libs/nixio/Makefile | grep -A 1 -n compile92:compile: $(NIXIO_OBJ)93- $(LINK) $(SHLIB_FLAGS) -o src/$(NIXIO_SO) $(NIXIO_OBJ) $(NIXIO_LDFLAGS_POST) $(NIXIO_LDFLAGS)
经过上面两个步骤的修改应该就能解决问题,看到下面这张光明的界面。
- 在ubuntu环境下编译LUCI
- ubuntu 下单独编译openwrt luci
- ubuntu 下Luci开发环境构建
- ubuntu 10.10环境下编译openwrt(添加Luci和中文化)笔记
- ubuntu 10.10环境下编译openwrt(添加Luci和中文化)笔记
- ubuntu luci 安装编译
- 在ubuntu下安装ACE编译环境
- 在ubuntu下安装ACE编译环境
- 在ubuntu环境下编译openwrt
- 在Ubuntu系统下安装luci的步骤和注意事项
- 在Ubuntu系统下安装luci的步骤和注意事项
- [ubuntu环境搭建]在ubuntu下编译C++、C文件
- 在Ubuntu 8.10下建立eabi交叉编译环境
- 在 Ubuntu 8.10环境下编译 pulseaudio-0.9.10
- 在 Ubuntu 8.10环境下编译 Android 2.2
- 在Ubuntu 8.10下建立eabi交叉编译环境
- ubuntu下配置编译环境
- ubuntu环境下编译wxwidgets
- 燃烧青春和诗意的IT人生
- vs2008 创建打包安装程序
- JTA集成JOTM或Atomikos配置分布式事务(Tomcat应用服务器)
- 合作意向确认函--学习了
- SAP初级顾问是如何炼成的!
- 在ubuntu环境下编译LUCI
- 国外程序员推荐:每个程序员都应读的书
- 输入法编辑的一些资料收藏
- sencha 的一些属性
- js+html 异步上传文件
- 包大人很忙
- 财经
- (十一)机器学习中的一个常用算法SVM算法,即支持向量机Support Vector Machine(SVM)
- 要让网站盈利,学会运营四部曲