1

I have a C code I want to embed with Arduino .ino, this code using some shared library (.so) present in current working directory. How can I build and upload this code to my Arduino Yun using Arduino IDE (or any other method).

If I'm doing it the hard way, please suggest what's the right thing to do here.

Fahad Siddiqui
  • 1,829
  • 1
  • 19
  • 41
  • no os in arduino? then i guess it's impossible if for arbitrary .so – Jason Hu Oct 07 '15 at 12:42
  • get the lib sources and do a static build – Ôrel Oct 07 '15 at 12:46
  • You first need to implement a Linux (or whatever OS the lib was built for) emulator on Arduino. After that things will become much easier and you will have lots of time to have some coffee. – too honest for this site Oct 07 '15 at 12:46
  • @Ôrel that looks good idea. – Fahad Siddiqui Oct 07 '15 at 13:03
  • @Olaf well I think it would require a lot of caffeine to do that too. – Fahad Siddiqui Oct 07 '15 at 13:04
  • 2
    Since Arduino does not support shared libraries (you are building a firmware, after all) I don't think that your .so is compiled for arduino (or for atmel uP). So.. Your binary code is not compatible with your platform: you need to compile it again: get the sources and include them in your arduino environment as @Ôrel suggested – frarugi87 Oct 07 '15 at 15:09

1 Answers1

1

"Use Bridge to access Linux side of Arduino Yun you're using and run bash or python or even C using yun-gcc programs. This will help you embedding shared (.so) libraries for C and importing other libraries also to expand your scope you're working on. Good luck!"

Hammad
  • 177
  • 1
  • 10