Hello,
I have a question regarding cross compiling the libraries. In my case, I'm trying to cross compile a library for Raspberry Pi2 model B from my host (Lubuntu x64). Therefore, I followed that tutorial successfully:
cross compiling for raspberry. Also, I did remote debugging successfully.
However, when I tried to cross compile a simple application that is tried already running on raspberry, it is NOT successful. The application uses the "pigpio" library and "pthread". The given error indicates (as I think) is related to linking the pigpio. The error is: recipe for target 'CC_threading_mod_m3' failed makefile.
By revising a lab of Free-Electrons
Free-Electrons lab for cross-compiling libraries that give libraries cross-compilation examples, I believe that I need to cross-compile the pigpio first, then link the generated binary to Eclipse project. However, because I am new to such an environment (cross compilation & raspberry & Eclipse & external library); I don't know HOW-TO DO ?
Further, the Free-Electrons lab mentions compiler flags & options... which brings up another question: HOW can I apply similar options for my cross-compiler which will be called by Eclipse?
Thank you.