Hello,
I wanted to compile the latest version of
SX20 code on WinXp. To do so, I downloaded a snapshot of the latest code (2e395a6f4ace828eddc6b9ce356e9886b668e6f6), configured the latest version of CHDK (2.56), pointed to the trunk containing the
SX20 code and tried to compile it.
Things seem to be working well, but I got the following compilation error:
loslib.c: In function 'os_stat':
loslib.c:298: error: 'struct stat' has no member named 'st_dev'
loslib.c:300: error: 'struct stat' has no member named 'st_mode'
loslib.c:309: error: 'struct stat' has no member named 'st_atime'
loslib.c:331: error: 'struct stat' has no member named 'st_blksize'
loslib.c:332: error: 'struct stat' has no member named 'st_blocks'
D:\chdk\gcc4\bin\gmake.exe[2]: *** [loslib.o] Error 1
D:\chdk\gcc4\bin\gmake.exe[1]: *** [all-recursive] Error 1
gmake: *** [all-recursive] Error 1
It seems that in loslib.c, the include of sys/stat.h isn't reached due to HOST_LUA not being defined. In any case, had it been defined, the definitions made at camera.h ( #define CAM_DRYOS 1) would have made this fields unavailable.
Where did I go wrong?
Many thanks