nopnop2002 / Raspberry-ssd1306

ssd1306 Command Line Tool for Raspberry Pi
47 stars 15 forks source link

Error when running i2d example #9

Closed oveddan closed 4 years ago

oveddan commented 4 years ago

I'm on the pizerow. As instructed on the readme, I clone the repo and run the command:

cc -o oled oled.c fontx.c -lwiringPi -lpthread -DI2C

The following error occurs:

oled.c:46:10: fatal error: wiringPi.h: No such file or directory

include

      ^~~~~~~~~~~~

compilation terminated.

What am I doing wrong?

oveddan commented 4 years ago

Ok figured it out.

I had to run:

sudo apt-get install wiringpi

now it works :) thank you