How to cross-compile an asterisk with dahdi already compiled for a hand?

I am trying to cross compile an asterisk for ARM.

Everything is fine when I cross-compile required modules such as sqlite3, ncurses and openssl and then turn them on when cross-compiling asterisks with the corresponding option - c-sqlite3, --with-ncurses --with-crypto and --with -ssl.

But when I tried to turn on dahdi, nothing worked. This happened when --with-dahdi = $ (DAHDI_DIR) / linux:

checking for tone_zone_find_by_num in -ltonezone...no
checking for tone_zone_find in -ltonezone... no

I know that everything went right when he can check the tonal zone and then look for dahdi / tonezone.h. Then I see no error, but chan_dahdi cannot be selected when running make menuconfig
and this happened when --with-dahdi = $ (DAHDI_BUILD_RESULT_DIR):

checking for mandatory modules:  CRYPTO DAHDI NCURSES SQLITE3 OPENSSL... fail

configure: ***
configure: *** The DAHDI installation appears to be missing or broken.
configure: *** Either correct the installation, or run configure
configure: *** including --without-dahdi.

Please note that $ (DAHDI_BUILD_RESULT_DIR) contains my result when building dahdi, suppose I did it right because it is one of the drivers as a result:

$(DAHDI_BUILD_RESULT_DIR)/lib/modules/3.8.13/dahdi/dahdi.ko: ELF 32-bit LSB relocatable, ARM, EABI5 version 1 (SYSV), BuildID[sha1]=2b16a606c922ca5f10288dba98f2b365e8316748, not stripped

Things used in my process:
1. dahdi 2.10 completed
2. Linar-cross compilation
3. Linux kernel 3.8.13
4. Asterisk 11.11.0
5. Hardware: Beagleboneblack

- , , .
.

+4
2

asterisk configure.ac, dahdi-tools (userpace) dahdi complete, dahdi-linux ( ) . , , /usr/include.

+1

@viktike, . CFLAGS DAHDI C LDFLAGS lib configure script .

./configure [other argument] CFLAGS="-g -I/home/thanhloi/workspace/asterisk/dahdi-linux-complete-2.10.1+2.10.1/RESULT/usr/include/" LDFLAGS="-L/home/thanhloi/workspace/asterisk/dahdi-linux-complete-2.10.1+2.10.1/RESULT/usr/lib/ -lpthread -ldl"

Asterisk is then configured and built with dahdi installed.
The best part is
Loy Dang

+1
source

All Articles