一、编译
1:下载源文件
https://download.samba.org/pub/samba/
2:解压
3:进入source目录
4:执行配置
./configure --target=arm-linux-gnueabi --host=i686 samba_cv_CC_NEGATIVE_ENUM_VALUES=yes
会出现下面的错误:
checking for prctl... yes
configure: error: cannot run test program while cross compiling
See `config.log' for more details.
解决办法:
在11497行修改 if test "$cross_compiling" = yes; then 为 if test "$test_cross_compiling" = yes; then
这样在交叉编译的时候就不会有这个错误了
二、安装到嵌入式平台
1、 拷贝/source/bin目录下smbpasswd、smbd、nmb到目标路径:/usr/sbin
2:新建文件夹
m