- Modify configure.sh to change $NDK to point to your NDK folder.
- Uncomment corresponding flags in configure.sh to compile for different architecture. Uncomment flags for ARMv7 in addition to 32-bit ARM to compile it for ARMv7.
- Run
configure.sh
to configure Samba project. - Run
compile.sh
to compile
copy out/samba dir to android
mkdir -p /data/samba/private
mkdir -p /data/samba/var
mkdir -p /data/samba/etc
cp /data/samba/smb.conf /data/samba/etc/
cp /data/samba/smbpasswd /data/samba/etc/
export LD_LIBRARY_PATH=/data/samba/lib:/data/samba/lib/private
export TMPDIR=/data/local/tmp
./data/samba/bin/smbd -D
./data/samba/bin/nmbd -D
https://blog.csdn.net/weixin_40806910/article/details/81917077