× CodeTyphon Cross-Build Development, discussions and problems

Question cross-compiling target platform arm-v7/Linux with a library

  • Vbxler
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
1 year 19 hours ago #14627 by Vbxler
Hello!

I have the following problem:
Development of an application for target platform arm-v7/Linux.
I want to develop it on my notebook with x84_64/Linux.
This basically works until a libxyz.so is used. I have this library for arm/Linux and x86_64/Linux
and can also compile the application on the notebook with x86_64/Linux and it works.
The library is placed under /usr/lib/.

But when I start cross-compiling for arm/Linux I get the message: Error: /usr/lib//libxyz.so: file not recognized: File format not recognized.
Is there a way that I can compile on the notebook for arm-V7 / Linux and then transfer the application to the target platform.
The target platform does not have enough resources to install CT.

Thank you for your help!

Please Log in or Create an account to join the conversation.

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
1 year 18 hours ago - 1 year 18 hours ago #14628 by Sternas Stefanos
Thanks Sir
Error: /usr/lib//libxyz.so: file not recognized: File format not recognized.
tell to you that libxyz.so library in you x86_64/Linux HostOS is NOT the correct, for your TargetOS arm-v7/Linux.
You must provide to your project the arm-v7/Linux version of libxyz.so library.

Go to your Target OS.
-Find the library you want, NOT the link (libxyz.so) but the real library (libxyz.so.xx).
-Copy the real library (libxyz.so.xx) in to your x86_64/Linux HostOS, to a folder ( for sample codetyphon/binLibraries/mylib/)
-Rename (in your x86_64/Linux HostOS) arm-v7/Linux ver of the real library (libxyz.so.xx) to libxyz.so.

-Add to your project "libraries", the folder of new arm-v7/Linux version of libxyz.so library ( for sample codetyphon/binLibraries/mylib/)

.

PilotLogic Architect and Core Programmer
Last edit: 1 year 18 hours ago by Sternas Stefanos.

Please Log in or Create an account to join the conversation.