Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. solved Linking "foreign" library - not build on running system ?

solved Linking "foreign" library - not build on running system ?

Scheduled Pinned Locked Moved C / C++ / MFC
c++sysadminlinuxagentic-aiarchitecture
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    Vaclav_
    wrote on last edited by
    #1

    I keep running into snags using Linux "autotools " generated code. Would this work? 1. Build required C++ library on host architecture and link it to the "build" system? I am successfully using Target Communication Framework - Agent - to "connect" from build system to host . Uses TCP. I used "post-processing" long time ago and I was thinking if that or pre-processing could be used to "add" the library link before the main process is done. Just a thought. I do not know to to "link" across network during program compilation / linking. 2. Could I just import / copy the correct architecture library from the host system to build system and just link it normally? I am going to try "scp" Linux command to copy the C++ library from the host to build system. Is there anything special why this "scp" copy would not work? SOLUTION Used option 2 - scp /rcp to copy library build on ARM system to similar folder on X86. Linked to it the usual way. Linker accepted the file format , no problems. Test run on ARM "host" and works as expected. Cheers

    L 1 Reply Last reply
    0
    • V Vaclav_

      I keep running into snags using Linux "autotools " generated code. Would this work? 1. Build required C++ library on host architecture and link it to the "build" system? I am successfully using Target Communication Framework - Agent - to "connect" from build system to host . Uses TCP. I used "post-processing" long time ago and I was thinking if that or pre-processing could be used to "add" the library link before the main process is done. Just a thought. I do not know to to "link" across network during program compilation / linking. 2. Could I just import / copy the correct architecture library from the host system to build system and just link it normally? I am going to try "scp" Linux command to copy the C++ library from the host to build system. Is there anything special why this "scp" copy would not work? SOLUTION Used option 2 - scp /rcp to copy library build on ARM system to similar folder on X86. Linked to it the usual way. Linker accepted the file format , no problems. Test run on ARM "host" and works as expected. Cheers

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      It is not clear what the actual problem is, and why you cannot build the library in the same way that you build the rest of the system. Linking a library to an application should work if both sides have been built to the same target architecture.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups