-
-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fails on armv7: fatal error: 'wiringPi.h' file not found #180
Comments
The judgment of RaspberryPI may be insufficient. In Raspberry PI it has wiringpi installed before. Therefore, in the case of raspberry PI, I try to compile it including wiring pi. However, this judgment was too simple. At compile time, the implementation must more strictly determine if it is a Raspberry PI. It misidentifies an ARM machine other than the Raspberry PI. |
I will review the OS judgment by #ifdef. #ifdef TARGET_LINUX_ARM This may be better. |
Does Linux always install |
Perhaps No. Perhaps that way the C compiler will not be able to determine the raspbian OS. Is there any good way? |
Here people are trying to detect Raspberrian OS at the makefile level. Not sure if this exact example works today. But in general GNU Make can set C flags based on presence of some files/commands. |
Thank you. I will try it when I get Pi-400. |
I repurchased the pi-400. I will test with pi-400 from next week. |
Fixed. Please test. |
Mr. Poldy,I learned a lot about how to write a makefile. Is this fix okay? |
Thanks! |
Looks good to me, at least from the make point of view. I presume Rasperry Pis default to the hostname "raspberrypi", if someone changes that they can fix it themselves :-) "Make" may seem archaic, but it's like learning vi or Emacs, at least you can be sure that it will be available on computers in the future. And if you know Prolog, that makes the semantics much easier to understand. |
Thank you. Mr. Poldy. |
The code includes
wiringPi.h
on ARM platforms but where does it come from?The text was updated successfully, but these errors were encountered: