Reply To: [Resolved]Unable to open I2C bus

Home Forums Forums Technical Support for BerryIMU [Resolved]Unable to open I2C bus Reply To: [Resolved]Unable to open I2C bus

#3976
jawood
Participant

Thankyou again that got it going.
Now im doing the Inclinometer when I do this

gcc -o gyro_accelerometer_tutorial02 -lm gyro_accelerometer_tutorial02.c sdl-config –cflags sdl-config –libs -lSDL_image -lSDL_gfx

I get

Usage: sdl-config [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version] [--cflags] [--libs] [--static-libs]
Usage: sdl-config [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version] [--cflags] [--libs] [--static-libs]
gyro_accelerometer_tutorial02.c:25:17: fatal error: SDL.h: No such file or directory
compilation terminated.

Blip, blop, bloop...