Page 1 of 1

Compiling Libraries on Raspberry Pi 1B+, armv6

Posted: Tue Mar 24, 2020 6:55 am
by Tolliug
Hello
I managed to compile libphidget22, version 1.6-20200306 on my old pi1B+
I can run HelloWorld linked against the lib with no issue.
I wanted to run the networkserver, but when compiling libphidget22extra, same version, any program linked against that lib causes "illegal instruction" as if linked against an armv7 compiled library.
Any clue ?
Thanks & regards

Re: Compiling Libraries on Raspberry Pi 1B+, armv6

Posted: Wed Mar 25, 2020 1:47 pm
by Patrick
Hi,

I've compiled libphidget22 and libphidget22extra and the network server on an old pi1B, and I'm not seeing any issues. Network Server runs properly.

Are you sure you are working from a clean source release, compiling locally on the Pi, etc.? It sounds like it may have been compiled for a different arch somehow.

-Patrick

Re: Compiling Libraries on Raspberry Pi 1B+, armv6

Posted: Sat Mar 28, 2020 8:33 am
by Tolliug
Thank you for your quick response. I'm not so quick due to coronavirus situation.
Very happy to know it works, so the problem is on my side. I'm gonna recheck everything, looks like libphidget22extra was not properly compiled.
Thanks for your help, I'll keep you posted.
Regards
Olivier

Re: Compiling Libraries on Raspberry Pi 1B+, armv6

Posted: Sat Mar 28, 2020 9:33 am
by Tolliug
Hello again
case is closed, the compiled library was put is /usr/local/lib, but an armv7 version was present in /usr/lib/arm-linux-gnueabihf, taking precedence over the other. just overwrote the bad one and everything is fine.
Thanks again
Best regards
Olivier

Re: Compiling Libraries on Raspberry Pi 1B+, armv6

Posted: Mon Mar 30, 2020 10:37 am
by Patrick
I'm guessing you may have installed one from apt-get.

-Patrick