Just for confirmation, I placed my .so and .a in usr/local/lib and the .h in usr/local/include.
After that I have done my “Synchronize sysroot” (after that I find my .so, .a, .h in my SysGCC on Windows).
I indicate the name of my library and the directories (in qmake project setting) and when I apply, I obtain this problem :
../arm-linux-gnueabihf/bin/ld.exe: skipping incompatible c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/local/lib/MyLib.so
The same error for MyLib.a.
On Raspberry, if i do on the consol : file /MyLib.so, I see that the library is for Intel, so I think that’s the problem.
I had windows sdk, then I ask linux_sdk for Raspberry, but apparently I need an other .so and .a, for Arm processor ?
If you could juste confirm that to me before I ask the constructor other sdk…
(in your WiringPi example, we install directly the library since the raspberry, so it must be Arm library I suppose ?)
Thanks a lot ! 🙂