Compiling Libraries on Raspberry Pi 1B+, armv6

Supporting 2.6 and up
Post Reply
Tolliug
Fresh meat
Posts: 3
Joined: Tue Mar 24, 2020 6:49 am
Contact:

Compiling Libraries on Raspberry Pi 1B+, armv6

Post 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
User avatar
Patrick
Lead Developer
Posts: 3399
Joined: Mon Jun 20, 2005 8:46 am
Location: Canada
Contact:

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

Post 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
Tolliug
Fresh meat
Posts: 3
Joined: Tue Mar 24, 2020 6:49 am
Contact:

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

Post 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
Tolliug
Fresh meat
Posts: 3
Joined: Tue Mar 24, 2020 6:49 am
Contact:

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

Post 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
User avatar
Patrick
Lead Developer
Posts: 3399
Joined: Mon Jun 20, 2005 8:46 am
Location: Canada
Contact:

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

Post by Patrick »

I'm guessing you may have installed one from apt-get.

-Patrick
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests