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

How to build Library for linux application

Note: This was originally posted on 8th October 2009 at http://forums.arm.com

Hello,

I am using RVDS 4.0 Professional Evaluation version.

I have OpenMAX DL library source files. I want to build Open MAX library using RVDS for linux application. I am using Code Sourcery Lite tool chain and building library & application for OMAP3530.

What are setting i need to provide at time of building library in ARM workbench IDE ?

Thanks,
Parents
  • Note: This was originally posted on 3rd August 2010 at http://forums.arm.com

    Hello,

    I am referring same doc but as I want to build static library.
    I have selected ARM Linux Executable option in ARM realview project selection.


    I have tried to build with following option in RVDS IDE.
    Compiler option: --cpu=Cortex-A8 --no_unaligned_access --arm_linux_config_file=../arm_linux_config.xml
    Assembler option : --cpu=Cortex-A8 --no_unaligned_access
    Linker option: -L--partial -L--cpu=Cortex-A8 --arm_linux_config_file=../arm_linux_config.xml

    I am getting following error::
    ............
    .........
    armlink : warning L6914:  option sysv ignored when using --partial.
    armlink : warning L6029:  Relocation #REL:0 in crtn.o(.ARM.exidx.init) is wrt invalid/missing symbol.
    armlink : warning L6029:  Relocation #REL:0 in crtn.o(.ARM.exidx.fini) is wrt invalid/missing symbol.
    armlink : Internal fault: [0x8e8621:RVCT4.0 [Build 591]]
    armlink : Finished: 0 information, 4 warning and 0 error messages.
    Build error occurred, build is stopped

    Here,What are other option i need set in compilation, assembler and linker so it build as library ?

    Thanks,


    Hi

    @rach
    I see your arm link having a option --arm_linux_config_file=../arm_linux_config.xml
    but when i give the same option it throws up error saying invalid option.

    does ARMLINK has --arm_linux_config_file=filename as a option

    since i got a error with armlink  i am using armcc to link the application.

    could you please tell me how you used the config file with amrlink

    Regards
    Sundar
Reply
  • Note: This was originally posted on 3rd August 2010 at http://forums.arm.com

    Hello,

    I am referring same doc but as I want to build static library.
    I have selected ARM Linux Executable option in ARM realview project selection.


    I have tried to build with following option in RVDS IDE.
    Compiler option: --cpu=Cortex-A8 --no_unaligned_access --arm_linux_config_file=../arm_linux_config.xml
    Assembler option : --cpu=Cortex-A8 --no_unaligned_access
    Linker option: -L--partial -L--cpu=Cortex-A8 --arm_linux_config_file=../arm_linux_config.xml

    I am getting following error::
    ............
    .........
    armlink : warning L6914:  option sysv ignored when using --partial.
    armlink : warning L6029:  Relocation #REL:0 in crtn.o(.ARM.exidx.init) is wrt invalid/missing symbol.
    armlink : warning L6029:  Relocation #REL:0 in crtn.o(.ARM.exidx.fini) is wrt invalid/missing symbol.
    armlink : Internal fault: [0x8e8621:RVCT4.0 [Build 591]]
    armlink : Finished: 0 information, 4 warning and 0 error messages.
    Build error occurred, build is stopped

    Here,What are other option i need set in compilation, assembler and linker so it build as library ?

    Thanks,


    Hi

    @rach
    I see your arm link having a option --arm_linux_config_file=../arm_linux_config.xml
    but when i give the same option it throws up error saying invalid option.

    does ARMLINK has --arm_linux_config_file=filename as a option

    since i got a error with armlink  i am using armcc to link the application.

    could you please tell me how you used the config file with amrlink

    Regards
    Sundar
Children
No data