scachi said:I can't get the source from the filearchive to build. It fails with:
./src/video/SDL_video.c: In function 'SDL_RdEEPROM':
./src/video/SDL_video.c:439: error: storage size of 'i2c_msgs' isn't known
./src/video/SDL_video.c:455: error: invalid use of undefined type 'struct i2c_msg'
./src/video/SDL_video.c:455: error: dereferencing pointer to incomplete type
./src/video/SDL_video.c:456: error: invalid use of undefined type 'struct i2c_msg'
./src/video/SDL_video.c:456: error: dereferencing pointer to incomplete type
./src/video/SDL_video.c:457: error: invalid use of undefined type 'struct i2c_msg'
./src/video/SDL_video.c:457: error: dereferencing pointer to incomplete type
./src/video/SDL_video.c:458: error: invalid use of undefined type 'struct i2c_msg'
./src/video/SDL_video.c:458: error: dereferencing pointer to incomplete type
./src/video/SDL_video.c:471: error: invalid use of undefined type 'struct i2c_msg'
./src/video/SDL_video.c:471: error: dereferencing pointer to incomplete type
./src/video/SDL_video.c:472: error: invalid use of undefined type 'struct i2c_msg'
./src/video/SDL_video.c:472: error: dereferencing pointer to incomplete type
./src/video/SDL_video.c:472: error: 'I2C_M_RD' undeclared (first use in this function)
./src/video/SDL_video.c:472: error: (Each undeclared identifier is reported only once
./src/video/SDL_video.c:472: error: for each function it appears in.)
./src/video/SDL_video.c:473: error: invalid use of undefined type 'struct i2c_msg'
./src/video/SDL_video.c:473: error: dereferencing pointer to incomplete type
./src/video/SDL_video.c:474: error: invalid use of undefined type 'struct i2c_msg'
./src/video/SDL_video.c:474: error: dereferencing pointer to incomplete type
make: *** [build/SDL_video.lo] Fehler 1
Any ideas ?
Add #include <linux/i2c.h> on your SDL_video.c.
Last edited by a moderator: