Cross-Compiling Asterisk for neoway-N720

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.

Any updates on this??

I’ve never heard of a neoway-N720. From the lack of response, I assume none of the other half a dozen, or so, regular responders have, either.

I do suspect this is a development system, rather than an Asterisk, issue.

should be part of your toolchain, you need to search what is the ranlib name inside toolchain binaries, it might be simple arm-elf-ranlib or something else.

In case ranlib name is different you can use RANLIB=arm-elf-ranlib before configure to use it inside build.

Hi David,
This is the module that I am using http://www.neoway.com/product/info/85

Hi,
Thank you for your kind response.
I will look for the ranlib binary and will get back on this…

I used the following library for cross-compiling:


and tried this as well :https://sourceforge.net/projects/libedit/

So now I am able to install the libedit library.
Both the libraries are getting installed.
while compiling I have used only one package at a time.
tried for both the packages.

So now when i run configure in asterisk, I get the following error.

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.

So it is unable to find the libedit package, I even specified the path of the libedit package
still I get the same error.
So here i want to understand what exactly config file of asterisk is looking for:
either a " .sh file / .a / .so / .la " file??
because I see the libedit package files, they are installed in usr/local/lib
libedit.a, libedit.la, libedit.so

Or else is there a specific command that I have to use before configuring the asterisk.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.