This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Adding lib, specifically gnu readline

Hi - I am porting some code to an embedded ARM (Cortex-A9) in an SOC using DS 5. The code uses readline.h and history.h to handle command line parsing. I really want to keep them because they work great.

My question is - are these libraries available for the ARM and specifically how do I add a new lib under DS 5?

Best
Kevin.

  • If you want to use a pre-compiled binary library, it would have to be in a binary format acceptable to the DS5 linker.

    As it's GNU, it must be open-source? So building from source may well be easier ...

  • Hi Andy - thanks for your response - I appreciate the 'build from source' approach, I'm guessing if no one has a pre-comiled binary I may need to try it. As an FPGA designer trying to get a simple diagnostic running it is possibly out of my wheelhouse though - readline from GNU comes with a handy config script that figures out what dependencies your system meets and sets up a config.h file with #defines etc... Since I am cross compiling, that auto-config feature is not useful and I will need to hand edit the config.h for the embedded Linux that I am running and I don't know how to figure out how to set up this file.

    Best
    Kevin.

  • To follow up on this. I found that the Linux build environment I am using provides a 'make menuconfig' option for buildroot that included optionally adding the readline lib to rootfs. Once I had that, I took the .so files and linked them in my code along with the .h files. I have running code now and learned a few things about Make along the way.