[sr-dev] error_readline_pkg-config with latest Makefile

subhra giri subhraprakash79 at gmail.com
Mon Mar 23 12:15:26 CET 2020


Hi
I passed the argument like this
make
CC_EXTRA_OPTS=-I/home/subhra/SDK3.1.2/linux/embedded_rootfs/build/readline-5.1/
make install

Still i am getting same error
/home/subhra/SDK3.1.2/tools-3.1.2_build_50/bin/../lib/gcc/mips64-octeon-linux-gnu/4.7.0/../../../../mips64-octeon-linux-gnu/bin/ld:
cannot find -lreadline
/home/subhra/SDK3.1.2/tools-3.1.2_build_50/bin/../lib/gcc/mips64-octeon-linux-gnu/4.7.0/../../../../mips64-octeon-linux-gnu/bin/ld:
cannot find -lncurses

Please help me to resolve the issue.

Thanks and Regards
Subhra Prakash

On Sat, Mar 21, 2020 at 2:25 AM Ovidiu Sas <osas at voipembedded.com> wrote:

> Try to pass the proper path through the ā€œ-Iā€ flag via the CC_EXTRA_OPTS.
>
> Regards,
> Ovidiu Sas
>
> On Fri, Mar 20, 2020 at 04:35 subhra giri <subhraprakash79 at gmail.com>
> wrote:
>
>> Hi Ovidiu
>> I have attached my makefile.
>> I have added path to readline, but still get erro
>> /home/subhra/SDK3.1.2/tools-3.1.2_build_50/bin/../lib/gcc/mips64-octeon-linux-gnu/4.7.0/../../../../mips64-octeon-linux-gnu/bin/ld:
>> cannot find -lreadline
>> /home/subhra/SDK3.1.2/tools-3.1.2_build_50/bin/../lib/gcc/mips64-octeon-linux-gnu/4.7.0/../../../../mips64-octeon-linux-gnu/bin/ld:
>> cannot find -lncurses
>>
>> Please help me where i have done wrong in makefile.
>>
>> On Fri, Mar 20, 2020 at 10:20 AM Ovidiu Sas <osas at voipembedded.com>
>> wrote:
>>
>>> Take a look at this makefile:
>>> https://github.com/Optware/Optware-ng/blob/master/make/kamailio.mk
>>>
>>> It was used to cross compile kamailio for several platforms.
>>> Through CC_EXTRA_OPTS you can pass extra compiler flags and paths for
>>> the target platform.
>>>
>>> Also, please keep the list in cc, otherwise e-mails will go unanswered,
>>>
>>> Regards,
>>> Ovidiu Sas
>>>
>>> On Thu, Mar 19, 2020 at 11:53 PM subhra giri <subhraprakash79 at gmail.com>
>>> wrote:
>>> >
>>> > Dear ovidiu
>>> > I am not able to fix the issue in makefile.
>>> > Please help me what i should update in makefile for cross-compiling
>>> readline for mips.
>>> > readline.h is located at
>>> >
>>> /home/subhra/SDK3.1.2/linux/embedded_rootfs/build/readline-5.1/readline.h
>>> >
>>> > And libreadline*.so* are present at
>>> >
>>> >
>>> /home/subhra/SDK3.1.2/linux/embedded_rootfs/build/readline-5.1/shlib/libreadline.so.5.1
>>> >
>>> /home/subhra/SDK3.1.2/linux/embedded_rootfs/build/readline-5.1/shlib/readline.so
>>> > Thanks and Regards
>>> > Subhra Prakash
>>>
>>>
>>>
>>> --
>>> VoIP Embedded, Inc.
>>> http://www.voipembedded.com
>>>
>> --
> VoIP Embedded, Inc.
> http://www.voipembedded.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20200323/60532573/attachment.html>


More information about the sr-dev mailing list