This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Using Apache XERCES & XALAN packages with CCSv5

I am using CCSv5 as part of the AM37x Eval board development environment on Ubuntu. The tool chain installer set my TOOLCHAIN_PATH environment variable in .bashrc to point to my installed tool chain location ("TOOLCHAIN_PATH=/root/CodeSourcery/Sourcery_G++_Lite/; export TOOLCHAIN_PATH;).

Does anyone have any experience using Apache XERCES & XALAN packages with CCSv5? I believe that I need to rebuild these using my Tool Chain but after reading the build process (build-winunix.html), which Apache provides with Make files, it appears pretty complex (setting all the compiler flags, symbols, etc.)  to build inside of Code Composer. Can I build this outside of Code Composer using the Tool Chain compiler and just provide an 'include' path?

  • Hi,

    I haven't tried to build these packages from inside CCS. As you point out correctly, their build system based in makefiles makes the process of copying all makefile options to a managed project a rather daunting task. Not an impossible task, though.

    You can create a project that only references the source files (a Makefile Project with Existing Code): the procedure is similar to the one shown at this link. This would allow you to build the project outside of CCS but still have entire access to the source code.

    Hope this helps,

    Rafael

     

  • Rafael,

    Thank you, but the example you linked me to tells me not to select a Tool Chain & build the xerces & xalan packages outside of CCSv5. I'm confused, don't I have to compile the packages using the tool chain to execute the code on the AM37x env board?

  • Hi,

    Precisely. The code that runs in the device is independent of where it was generated - inside or outside of CCSv5. Keep in mind that the toolchain used by the EZSDK for AM3730 is GCC 4.3.3 (if I am not mistaken) and you should stick to it.

    You can use the GCC and create a project that uses this toolchain from inside CCS (check here), but then you would need to copy all the parameters in the makefiles of XERCES and XALAN to the project itself.As you pointed out, a complex task.

    The link I sent before only shows a way to reference the source files from within the IDE - the alternative if you don't want to build the code from CCS but still wants to use it as an IDE.

    One additional detail: CCS comes with a specific toolchain (TMS470 CGT) but it generates native ARM code and not Linux code - therefore it can't be used to build the packages you mentioned.

    Hope this helps,

    Rafael