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.

Cross compilation on OMAP L138

Hi,

I would like to load a C++ code in the ARM9 of the OMAP L138. I will use in this code an audio librairie (SFML or OpenAL) and I need to cross compile it.

Are these librairies compatible with Linux Kernel SoC and its devices drivers?

Its the first time I cross compile a librairie and i would like to now if their are documentation for librairies cross compilation with code sourcery on DVSDK?

Regards.

Harold.

  • Both these audio libraries seem to have been cross-compiled for ARM targets.

    I would like to load a C++ code in the ARM9...

    Once cross-compiled, it isn't c++ anymore.

    Are these librairies compatible with Linux Kernel SoC and its devices drivers?

    Not sure that I understood the question. But, if you are asking if these libraries would run on ARM9 - then answer is yes UNLESS they included  hardcoded assembly that isn't compatible with this architecture.

    These libraries may have their own dependencies. You'd have to ensure that these dependencies are taken care as well.

    ...documentation for librairies cross compilation with code sourcery on DVSDK

    This would be definitliy not be contained in the DVSDK documentation. There is lot of material available on cross-compiling. You can google it...
    Usually, the directions for cross-compiling would be included in the source packages. "configuration" is an important step and each package would have its own set of options that you'd need to look at.

    I did respond to a generic query few days ago. You may want to check this thread:
    http://e2e.ti.com/support/embedded/f/354/p/109354/387729.aspx

  • Thank you for your response.

     

    I definetly don't found information about how to cross compile those packages. I'll try to transform my code to revoke those librairies from my program.

    Are they way to make recording from the "Line IN" of the board using a "TI package " or an other librairy  that doesn't need to be cross compiled?

     

    Thanks in advance.

    Regards,

    Harold.

     

  • Harold RICHEMOND said:
    I definetly don't found information about how to cross compile those packages. I'll try to transform my code to revoke those librairies from my program.

    I did find that OpenALhas cross-compile instructions as part of its sources [http://repo.or.cz/w/openal-soft.git/blob/35c38e0b5eb84932bdac2cff4908709064867852:/XCompile.txt]. But couldn't find anything on SFML.

    Harold RICHEMOND said:
    Are they way to make recording from the "Line IN" of the board using a "TI package " or an other librairy...

    Checkout this page: http://processors.wiki.ti.com/index.php/ALSA. Towards the bottom you will find steps to set Line-in as capture source on a different platform. I believe same/similar steps should work on OMAP L138 as well.

    Harold RICHEMOND said:
    ... doesn't need to be cross compiled?

    Unless you are using a native toolchain on the target, everything is cross-compiled for running on the target.

  • Hello,

    I have to make a few days break in my project. I'll look the pages you link on your post, it seem to be very helpfull for my problem.

    Thank you for everything.

    Best regards,

    Harold.