LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Embedded & Single-board computer (https://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/)
-   -   B-Pi with Android 4.2 / I2C / crosscompiling (https://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/b-pi-with-android-4-2-i2c-crosscompiling-4175567714/)

Jasson 01-23-2016 06:20 AM

B-Pi with Android 4.2 / I2C / crosscompiling
 
Hello again,

i´m exploring a way to use I2C on a B-Pi with Android 4.2.
I have read, that in order to do this by userspace code i need to invoke i2c-dev.h, which in return includes other linux headers.

1.) Is it possible to crosscompile programms when planing to use I2C?

2.) In case yes, i probably have to use a linux Host or a linux in a VM, since a Windows PC probably has no clue of things like
#include <linux/types.h>
#include <linux/i2c.h>
etc... ????

best regards,
Jasson


All times are GMT -5. The time now is 10:55 AM.