You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not able to build. Below is the message I'm getting with an output of perl -v and the location of EXTERN.h on my system.
Raspberry PI 2 B
:~/WiringPi-Perl# ./build.sh
`
wiringpi_wrap.c:730:20: fatal error: EXTERN.h: No such file or directory
#include "EXTERN.h"
^
compilation terminated.
WiringPi/wiringPi/wiringPi.c: In function ‘wiringPiSetup’:
WiringPi/wiringPi/wiringPi.c:315:18: warning: incompatible implicit declaration of built-in function ‘malloc’
if ((gpioMem = malloc (BLOCK_SIZE + (PAGE_SIZE-1))) == NULL)
^
gcc: error: wiringpi_wrap.o: No such file or directory
:~/WiringPi-Perl# perl -v
This is perl 5, version 20, subversion 2 (v5.20.2) built for arm-linux-gnueabihf-thread-multi-64int
(with 42 registered patches, see perl -V for more detail)
The version of Perl needs to be updated in the build.sh script to have the correct include path.
Try the command "ls -l /usr/lib/perl/" to see what version of perl your Pi has. ( It's 5.20.2 in your case)
Then edit WiringPi-Perl/build.sh to match.
There is a fix for this: It's an open pull request that's dated January 2014. Really, it's time to merge it!
I'm not able to build. Below is the message I'm getting with an output of perl -v and the location of EXTERN.h on my system.
Raspberry PI 2 B
:~/WiringPi-Perl# ./build.sh
:~/WiringPi-Perl# perl -v
:~/WiringPi-Perl# locate EXTERN.h
The text was updated successfully, but these errors were encountered: