Hi,
I am able to compile and run asterisk on my Ubuntu 18.04 LTS.
Now I am trying to Cross-Compile Asterisk for neoway-N720 Module.
I have copied the source code of asterisk in my N720 SDK.
Now i run configure for cross-compilation, I get the below error message:
checking pkg-config is at least version 0.9.0… yes
checking for LIBEDIT… no
checking for history_init in -ledit… no
configure: error: *** Please install the ‘libedit’ development package.
This means that libedit is not found in the SDK so i tried to install libedit
(If my understanding is right, as I am not much familiar with linux)
So i downloaded the package from : http://thrysoee.dk/editline/ and tried to install the libedit package in SDK
I ran the below commands:
./configure --host=x86_64-pc-linux-gnu --target=arm-oe-linux-gnueabi
make
make install
when i run “make install” i get the below error:
libtool: install: /usr/bin/install -c .libs/libedit.so.0.0.63 /usr/local/lib/libedit.so.0.0.63
/usr/bin/install: cannot remove ‘/usr/local/lib/libedit.so.0.0.63’: Permission denied
So now I ran “sudo make install” and getting the below error:
libtool: install: /usr/bin/install -c .libs/libedit.so.0.0.63 /usr/local/lib/libedit.so.0.0.63
libtool: install: (cd /usr/local/lib && { ln -s -f libedit.so.0.0.63 libedit.so.0 || { rm -f libedit.so.0 && ln -s libedit.so.0.0.63 libedit.so.0; }; })
libtool: install: (cd /usr/local/lib && { ln -s -f libedit.so.0.0.63 libedit.so || { rm -f libedit.so && ln -s libedit.so.0.0.63 libedit.so; }; })
libtool: install: /usr/bin/install -c .libs/libedit.lai /usr/local/lib/libedit.la
libtool: install: /usr/bin/install -c .libs/libedit.a /usr/local/lib/libedit.a
libtool: install: chmod 644 /usr/local/lib/libedit.a
libtool: install: arm-oe-linux-gnueabi-ranlib /usr/local/lib/libedit.a
…/libtool: line 1720: arm-oe-linux-gnueabi-ranlib: command not found
Makefile:419: recipe for target ‘install-libLTLIBRARIES’ failed
make[3]: *** [install-libLTLIBRARIES] Error 127
what I am missing out here?
I am unable to install libedit package.
Can I use this package or are there any other packages for the same:
My target device has arm a7
What wrong I am doing in this process?
Any help on this will be much appreciated.!
Thanks.