pimoroni / mlx90640-library

Python library for the MLX90640 thermal camera
https://shop.pimoroni.com/products/mlx90640-thermal-camera-breakout
Apache License 2.0
134 stars 84 forks source link

Make command resulting in Error #54

Closed sudo-Chris closed 3 years ago

sudo-Chris commented 3 years ago

Try to get this installed and running on a Raspberry Pi Zero. Having followed the rest of the read me, when I try to make the examples, it always results in errors. Both "make I2C_MODE=LINUX" and "make I2C_MODE=RPI" result in the same errors of:

"/usr/bin/ld: libMLX90640_API.a(MLX90640_RPI_I2C_Driver.o): in function MLX90640_I2CRead(unsigned char, unsigned short, unsigned short, unsigned short*)': MLX90640_RPI_I2C_Driver.cpp:(.text+0x84): undefined reference tobcm2835_init' /usr/bin/ld: MLX90640_RPI_I2C_Driver.cpp:(.text+0x88): undefined reference to bcm2835_i2c_begin' /usr/bin/ld: MLX90640_RPI_I2C_Driver.cpp:(.text+0x90): undefined reference tobcm2835_i2c_set_baudrate' /usr/bin/ld: MLX90640_RPI_I2C_Driver.cpp:(.text+0xe0): undefined reference to bcm2835_i2c_setSlaveAddress' /usr/bin/ld: MLX90640_RPI_I2C_Driver.cpp:(.text+0x114): undefined reference tobcm2835_i2c_write_read_rs' /usr/bin/ld: libMLX90640_API.a(MLX90640_RPI_I2C_Driver.o): in function MLX90640_I2CWrite(unsigned char, unsigned short, unsigned short)': MLX90640_RPI_I2C_Driver.cpp:(.text+0x258): undefined reference tobcm2835_i2c_write'"

Is there something I'm clearly doing wrong?

sudo-Chris commented 3 years ago

Make file has the library include for for bcm2835 library commented out, uncommenting this fixes the issue