Menu

Compiling GeographicLib for ARM Cortex-R5

Help
Tobias
2021-04-30
2021-05-02
  • Tobias

    Tobias - 2021-04-30

    Hi,

    I'm trying to use GeographicLib on an ARM Cortex-R5 (Armv7-R architecture) running FreeRTOS. However, I'm a bit lost on how to configure it correctly for this architecture. There seems to be no option to use this architecture in the regular compilation toolchain with cmake and make (or at least I didn't find it). It's possible to compile a static lib for the architecture using Xilinx SDK (based on Eclipse), but I fail at configuring this correctly.
    Is there any experience out there on how to tackle such an issue? Any hint or help is appreciated.

    Cheers,
    Tobias

     
  • Charles Karney

    Charles Karney - 2021-05-01

    Are you able to compile anything for your target platform? If so,
    compiling GeographicLib, which is fairly straightforward C++, should be
    possible following a similar method.

     
  • Anonymous

    Anonymous - 2021-05-02

    Yeah I can compile my programs for the target architecture without problem using the mentioned Xilinx SDK. I can also compile the GeographicLib as a static library with the SDK and link my program accordingly.
    However, since I can only straightforward compile the source files from the library without the use of cmake, the configuration steps , taking place before actual compilation in the 'normal' building pipeline, are missing completely. This seems to be causing issues, as I get a long list of errors when trying to link my code with the static lib. The same code works perfectly fine when compiling and linking on a Linux machine where the GeographicLib was compiled according to documentation.
    So the problem basically boils down to the correct configuration of the lib prior to compilation. I had a look at the CMakeLists.txt files but quite honestly I couldn't figure how this translates to a correct configuration of my project. Is it even possible to compile the lib without the use of cmake for prior configuration?

     
  • Charles Karney

    Charles Karney - 2021-05-02

    Yes, you can compile without cmake. See Installation with GNU compiler and Make. I don't know what you're talking about with a "long list of errors". I recommend trying a very small sample code which calls GeographicLib. Maybe trying to understand what the errors say would help?

     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.