Cross compile samba 4.13.4 for arm (TI AM335x)
@ubuntu 12.04
(ti env)
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/home/test/ti-sdk-SDK_06_00/linux-devkit/sysroots/arm/usr/local/lib/pkgconfig/
ln -s /usr/arm-linux-gnueabihf/lib/ld-linux-armhf.so.3 /lib/ld-linux-armhf.so.3
*** libgmp 6.2.1
https://gmplib.org/
dowload gmp-6.2.1.tar.xz
./configure --host=arm-linux --build=i686
make
make install DESTDIR=/home/test/ti-sdk-SDK_06_00/linux-devkit/sysroots/arm
*** libnettle 3.4.1
./configure --host=arm-linux --build=i686 --with-include-path=/home/test/ti-sdk-SDK_06_00/linux-devkit/sysroots/arm/usr/local/include/ CFLAGS=-std=c99
make
make install DESTDIR=/home/test/ti-sdk-SDK_06_00/linux-devkit/sysroots/arm
*** gnutls 3.6.15
CFLAGS=-I/home/test/ti-sdk-SDK_06_00/linux-devkit/sysroots/arm/usr/local/include/ PKG_CONFIG_PATH=/home/test/ti-sdk-SDK_06_00/linux-devkit/sysroots/arm/usr/local/lib/pkgconfig/ ./configure --host=arm-linux --build=i686 --with-included-libtasn1 --with-included-unistring --without-p11-kit --enable-local-libopts
configure: summary of build options:
version: 3.6.15 shared 58:1:28
Host/Target system: arm-unknown-linux-gnu
Build system: i686-pc-none
Install prefix: /usr/local
Compiler: arm-linux-gnueabihf-gcc -std=gnu11
Valgrind: no
CFlags: -march=armv7-a -marm -mthumb-interwork -mfloat-abi=hard -mfpu=neon -mtune=cortex-a8 --sysroot=/home/test/ti-sdk-SDK_06_00/linux-devkit/sysroots/arm
Library types: Shared=yes, Static=no
Local libopts: no
Local libtasn1: yes
Local unistring: yes
Use nettle-mini: no
Documentation: yes (manpages: yes)
configure: External hardware support:
/dev/crypto: no
Hardware accel: none
Padlock accel: no
Random gen. variant: auto-detect
PKCS#11 support: no
TPM support: no
configure: Optional features:
(note that included applications might not compile properly
if features are disabled)
SSL3.0 support: no
SSL2.0 client hello: yes
Allow SHA1 sign: no
DTLS-SRTP support: yes
ALPN support: yes
OCSP support: yes
SRP support: yes
PSK support: yes
DHE support: yes
ECDHE support: yes
GOST support: yes
Anon auth support: yes
Heartbeat support: yes
IDNA support: no
Non-SuiteB curves: yes
FIPS140 mode: no
Strict DER time: yes
configure: Optional libraries:
Guile wrappers: no
C++ library: yes
DANE library: no
OpenSSL compat: no
configure: System files:
Trust store pkcs11:
Trust store dir:
Trust store file:
Blacklist file:
CRL file:
Configuration file: /etc/gnutls/config
DNSSEC root key file: /etc/unbound/root.key
configure: WARNING:
***
*** The DNSSEC root key file in /etc/unbound/root.key was not found.
*** This file is needed for the verification of DNSSEC responses.
*** Use the command: unbound-anchor -a "/etc/unbound/root.key"
*** to generate or update it.
***
make install DESTDIR=/home/test/ti-sdk-SDK_06_00/linux-devkit/sysroots/arm
*** libparse-yapp-perl 1.05-12
https://launchpad.net/ubuntu/+source/libparse-yapp-perl/1.05-12
for ubuntu 12.04 - libparse-yapp-perl_1.05.orig.tar.gz
perl Makefile.PL
make
make test
make install
*** samba 4.13.4
### first compile it for x86 build
### arm
./configure --cross-compile --cross-execute='qemu-arm-static -L /usr/arm-linux-gnueabihf/' --disable-python --without-ad-dc --without-json --without-libarchive --without-ldap --without-ads --without-ntvfs-fileserver --without-lttng --without-ldb-lmdb --disable-cups --without-systemd
error:
asn1_compile: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
compile_et: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
replace them with x86 one, and make again --> no problem now, all binaries are in the ./bin folder
留言
張貼留言