Porting cgic to arm linux
来源:互联网 发布:淘宝网购物皮衣 编辑:程序博客网 时间:2024/06/01 12:23
Development:
kernel:2.6.31-14-generic ubuntu9.10
cross-tools:arm-linux-gcc version 4.1.2
Target
kernel: 2.6.28.9 MOZART380 armv5tejl
1.下载cgic
下载地址:http://www.boutell.com/cgic/
2.解压
tar -zxvf cgic205.tar.gz
cd cgic205
3.修改Makefile
CC=gcc --> CC=arm-linux-gcc,
AR=ar --> AR=arm-linux-ar,
RANLIB=ranlib --> RANLIB=arm-linux-ranlib。
gcc cgictest.o -o cgictest.cgi ${LIBS},
--> $(CC) $(CFLAGS) cgictest.o -o cgictest.cgi ${LIBS},
gcc capture.o -o capture ${LIBS},
--> $(CC) $(CFLAGS) capture.o -o capture ${LIBS},
4. 编译
make (生成libcgic.a capture cgictest.cgi)
5.拷贝
将capture cgictest.cgi拷贝至/path/to/boa/www/cgi-bin/
6.验证
在局域网内pc上输入:http://YOURSIP/cgi-bin/cgictest.cgi 显示页面后输入并提交,验证cgic
kernel:2.6.31-14-generic ubuntu9.10
cross-tools:arm-linux-gcc version 4.1.2
Target
kernel: 2.6.28.9 MOZART380 armv5tejl
1.下载cgic
下载地址:http://www.boutell.com/cgic/
2.解压
tar -zxvf cgic205.tar.gz
cd cgic205
3.修改Makefile
CC=gcc --> CC=arm-linux-gcc,
AR=ar --> AR=arm-linux-ar,
RANLIB=ranlib --> RANLIB=arm-linux-ranlib。
gcc cgictest.o -o cgictest.cgi ${LIBS},
--> $(CC) $(CFLAGS) cgictest.o -o cgictest.cgi ${LIBS},
gcc capture.o -o capture ${LIBS},
--> $(CC) $(CFLAGS) capture.o -o capture ${LIBS},
4. 编译
make (生成libcgic.a capture cgictest.cgi)
5.拷贝
将capture cgictest.cgi拷贝至/path/to/boa/www/cgi-bin/
6.验证
在局域网内pc上输入:http://YOURSIP/cgi-bin/cgictest.cgi 显示页面后输入并提交,验证cgic
NOTE:
CGIC 是一个支持 CGI 开发的开放源码的标准 C 库,可以免费使用,只需要在开发的站点和程序文档中
有个公开声明即可,表明程序使用了 CGIC 库,用户也可以购买商业授权而无需公开声明。
CGIC 能够提供以下功能:
1 分析数据,并自动校正一些有缺陷的浏览器发来的数据;
2 透明接收用 GET 或 POST 方法发来的 From 数据;
3 能接受上传文件;
4 能够设置和接收 cookies;
5 用一致的方式处理 From 元素里的回车;
6 提供字符串,整数,浮点数,单选或多选功能来接收数据;
7 提供数字字段的边界检查;
8 能够将 CGI 环境变量转化成 C 中的非空字符串;
9 提供 CGI 程序的调试手段,能够回放 CGI 程序执行时的 CGI 状态;
- Porting cgic to arm linux
- Porting thttpd web server to ARM-Linux
- Porting Lua to ARM
- porting valgrind to arm platform
- Android porting to ARM versatile PB
- porting lighttpd to arm with lua
- Porting Linux App to Windows
- J2ME Porting 到ARM LINUX探讨
- 移植libnfc到arm 开发板 ( porting libnfc to arm)
- cgic开发-利用cgic实现window文件上传到arm-linux开发板
- From Zero to Boot: Porting Android to your ARM platform
- From Zero to Boot: Porting Android to your ARM platform
- 移植KVM到arm-linux(1) http://tech.jayya.com/2007/11/28/porting-kvm-to-armlinux.html
- Porting Linux to MPC860SR Processor Card
- Linux Kernel porting to Openrisc ---- Step 2
- ARM LCDC Linux porting研究(1)之HW连接
- Guide to porting from Solaris to Linux on x86
- porting gtk on arm
- Linux内核的文件预读详细解析
- js优化按钮
- 生成随机码
- 磁盘结构及在Linux中的命名
- svn update 目录包含中文时出错(svn:Can’t convert string from ‘UTF-8′ to native encoding)
- Porting cgic to arm linux
- AAA服务器
- android Toast 自定义样式
- c++实现链表反转
- Java对数据库的字符串字段进行压缩保存
- Porting thttpd web server to ARM-Linux
- Android overlay 学习 二 Android camera preview and take picture with V4l2
- Linux 编程之Bash中的变量
- 平台调用P-INVOKE(一)--(基础篇)