How can I have control over linking order when I use xdc.tools.configuro and a cfg.file to build my application ?
My issue is simple: I have a library that calls CE functions such as VIDENC1_create(), VIDENC1_delete(), VIDENC1_control(), VIDENC1_process(). However the linker always tries to link my library after videnc1.av5T, which results in undefined reference error.
For instance the linker command file generated by configuro looks like this:
/* input libraries */
I would like to force "/myPath/myLibrary.a" to be right before '"/dvsdk_2_10_01_18/codec_engine_2_24/packages/ti/sdo/ce/video1/lib/release/videnc1.av5T"
Currently I workaround the issue by editing linker.cmd after the error is thrown and I do again a 'make' but I would like a smoother build process.
Thanks for your help.
Victor,linking order is determined by dependency relations that RTSC packages form when they load each other. For example, if pkgA calls xdc.useModule or xdc.module on any module in pkgB, or pkgA calls loadPackage on pkgB, pkgA's libraries will be linked before pkgB's libraries.
If your library is in a RTSC package, somewhere in the configuration code for that package you should reference the package ti.sdo.ce.videnc1. If that's already a case, and you are still getting the order above, there might be a bug somewhere in XDCtools. If your library is not in a RTSC package, I would have to see how you are adding it to the library list to find out how to change the order.
If my reply answers your question please mark the thread as answered.
Adding ti.sdo.ce.videnc1 to the package.xs file solved the issue ! Thanks a lot.
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.