You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i got erros while compiling libfreenect on windows with VS2010 and i cant find any informations around. Does someone have an idea ?
Some problem with "time.h" and other syntax issue ....
here is compilation report ...
3>------ Build started: Project: fakenect, Configuration: Debug Win32 ------
2>....\libfreenect\fakenect\record.c(37): warning C4255: 'get_time' : no function prototype given: converting '()' to '(void)'
2>....\libfreenect\fakenect\record.c(39): error C2079: 'cur' uses undefined struct 'timeval'
2>....\libfreenect\fakenect\record.c(40): warning C4013: 'gettimeofday' undefined; assuming extern returning int
2>....\libfreenect\fakenect\record.c(41): error C2224: left of '.tv_sec' must have struct/union type
2>....\libfreenect\fakenect\record.c(41): error C2224: left of '.tv_usec' must have struct/union type
2>....\libfreenect\fakenect\record.c(41): warning C4033: 'get_time' must return a value
2>....\libfreenect\fakenect\record.c(55): error C2065: 'null' : undeclared identifier
2>....\libfreenect\fakenect\record.c(55): warning C4047: 'initializing' : 'FILE _' differs in levels of indirection from 'int'
2>....\libfreenect\fakenect\record.c(98): error C2275: 'freenect_raw_tilt_state' : illegal use of this type as an expression
2> F:\SoftsW7\Kinect\libfreenect\include\libfreenect.h(107) : see declaration of 'freenect_raw_tilt_state'
3>Build started 02/02/2011 12:47:40.
2>....\libfreenect\fakenect\record.c(98): error C2065: 'state' : undeclared identifier
2>....\libfreenect\fakenect\record.c(100): error C2065: 'state' : undeclared identifier
2>....\libfreenect\fakenect\record.c(100): warning C4047: '=' : 'int' differs in levels of indirection from 'freenect_raw_tilt_state *'
2>....\libfreenect\fakenect\record.c(101): error C2065: 'state' : undeclared identifier
2>....\libfreenect\fakenect\record.c(101): warning C4022: 'dump' : pointer mismatch for actual parameter 3
2>....\libfreenect\fakenect\record.c(101): error C2065: 'state' : undeclared identifier
2>....\libfreenect\fakenect\record.c(101): error C2100: illegal indirection
2>....\libfreenect\fakenect\record.c(111): warning C4255: 'init' : no function prototype given: converting '()' to '(void)'
2>....\libfreenect\fakenect\record.c(149): warning C4013: 'mkdir' undefined; assuming extern returning int
2>....\libfreenect\fakenect\record.c(149): error C2065: 'S_IRWXU' : undeclared identifier
2>....\libfreenect\fakenect\record.c(149): error C2065: 'S_IRWXG' : undeclared identifier
2>....\libfreenect\fakenect\record.c(149): error C2065: 'S_IRWXO' : undeclared identifier
2>....\libfreenect\fakenect\record.c(151): error C2143: syntax error : missing ';' before 'type'
2>....\libfreenect\fakenect\record.c(152): error C2065: 'fn' : undeclared identifier
2>....\libfreenect\fakenect\record.c(152): warning C4047: 'function' : 'char *' differs in levels of indirection from 'int'
2>....\libfreenect\fakenect\record.c(152): warning C4024: 'sprintf' : different types for formal and actual parameter 1
2>....\libfreenect\fakenect\record.c(153): error C2065: 'fn' : undeclared identifier
2>....\libfreenect\fakenect\record.c(153): warning C4047: 'function' : 'const char *' differs in levels of indirection from 'int'
2>....\libfreenect\fakenect\record.c(153): warning C4024: 'fopen' : different types for formal and actual parameter 1
2>....\libfreenect\fakenect\record.c(158): error C2065: 'fn' : undeclared identifier
2>....\libfreenect\fakenect\record.c(158): warning C4047: 'function' : 'const char *' differs in levels of indirection from 'int'
2>....\libfreenect\fakenect\record.c(158): warning C4024: 'fopen' : different types for formal and actual parameter 1
2>....\libfreenect\fakenect\record.c(160): error C2065: 'fn' : undeclared identifier
2>....\libfreenect\fakenect\record.c(163): error C2065: 'fn' : undeclared identifier
2>....\libfreenect\fakenect\record.c(163): warning C4022: 'free' : pointer mismatch for actual parameter 1
3>InitializeBuildStatus:
3> Touching "fakenect.dir\Debug\fakenect.unsuccessfulbuild".
3>CustomBuild:
3> All outputs are up-to-date.
3>ClCompile:
3> fakenect.c
3>C:\Program Files\Microsoft Visual Studio 10.0\VC\include\wchar.h(109): warning C4820: '_wfinddata64i32_t' : '4' bytes padding added after data member '_wfinddata64i32_t::attrib'
3>C:\Program Files\Microsoft Visual Studio 10.0\VC\include\wchar.h(114): warning C4820: '_wfinddata64i32_t' : '4' bytes padding added after data member '_wfinddata64i32_t::name'
3>C:\Program Files\Microsoft Visual Studio 10.0\VC\include\wchar.h(118): warning C4820: '_wfinddata64_t' : '4' bytes padding added after data member '_wfinddata64_t::attrib'
3>C:\Program Files\Microsoft Visual Studio 10.0\VC\include\wchar.h(488): warning C4820: '_stat32' : '2' bytes padding added after data member '_stat32::st_gid'
3>C:\Program Files\Microsoft Visual Studio 10.0\VC\include\wchar.h(504): warning C4820: 'stat' : '2' bytes padding added after data member 'stat::st_gid'
3>C:\Program Files\Microsoft Visual Studio 10.0\VC\include\wchar.h(520): warning C4820: '_stat32i64' : '2' bytes padding added after data member '_stat32i64::st_gid'
3>C:\Program Files\Microsoft Visual Studio 10.0\VC\include\wchar.h(521): warning C4820: '_stat32i64' : '4' bytes padding added after data member '_stat32i64::st_rdev'
3>C:\Program Files\Microsoft Visual Studio 10.0\VC\include\wchar.h(525): warning C4820: '_stat32i64' : '4' bytes padding added after data member '_stat32i64::st_ctime'
3>C:\Program Files\Microsoft Visual Studio 10.0\VC\include\wchar.h(534): warning C4820: '_stat64i32' : '2' bytes padding added after data member '_stat64i32::st_gid'
3>C:\Program Files\Microsoft Visual Studio 10.0\VC\include\wchar.h(548): warning C4820: '_stat64' : '2' bytes padding added after data member '_stat64::st_gid'
3>C:\Program Files\Microsoft Visual Studio 10.0\VC\include\wchar.h(549): warning C4820: '_stat64' : '4' bytes padding added after data member 'stat64::st_rdev'
3>F:\SoftsW7\Kinect\libfreenect\include\libfreenect.h(106): warning C4820: '' : '1' bytes padding added after data member '::tilt_angle'
3>....\libfreenect\fakenect\fakenect.c(52): warning C4244: 'initializing' : conversion from 'double' to 'int', possible loss of data
3>....\libfreenect\fakenect\fakenect.c(53): warning C4244: 'initializing' : conversion from 'double' to 'int', possible loss of data
3>....\libfreenect\fakenect\fakenect.c(55): error C3861: 'sleep': identifier not found
3>....\libfreenect\fakenect\fakenect.c(56): error C3861: 'usleep': identifier not found
3>....\libfreenect\fakenect\fakenect.c(61): error C2079: 'cur' uses undefined struct 'get_time::timeval'
3>....\libfreenect\fakenect\fakenect.c(62): error C3861: 'gettimeofday': identifier not found
3>....\libfreenect\fakenect\fakenect.c(63): error C2228: left of '.tv_sec' must have class/struct/union
3> type is 'int'
3>....\libfreenect\fakenect\fakenect.c(63): error C2228: left of '.tv_usec' must have class/struct/union
3> type is 'int'
3>....\libfreenect\fakenect\fakenect.c(70): warning C4242: '=' : conversion from 'int' to 'char', possible loss of data
3>....\libfreenect\fakenect\fakenect.c(73): warning C4365: 'argument' : conversion from 'int' to 'size_t', signed/unsigned mismatch
3>....\libfreenect\fakenect\fakenect.c(73): error C2440: '=' : cannot convert from 'void *' to 'char *'
3> Conversion from 'void' to pointer to non-'void' requires an explicit cast
3>....\libfreenect\fakenect\fakenect.c(77): warning C4365: 'argument' : conversion from 'int' to 'size_t', signed/unsigned mismatch
3>....\libfreenect\fakenect\fakenect.c(77): error C2440: '=' : cannot convert from 'void ' to 'char *'
3> Conversion from 'void' to pointer to non-'void' requires an explicit cast
3>....\libfreenect\fakenect\fakenect.c(97): warning C4365: 'initializing' : conversion from 'size_t' to 'int', signed/unsigned mismatch
3>....\libfreenect\fakenect\fakenect.c(98): warning C4365: 'argument' : conversion from 'int' to 'size_t', signed/unsigned mismatch
3>....\libfreenect\fakenect\fakenect.c(98): error C2440: 'initializing' : cannot convert from 'void ' to 'char *'
3> Conversion from 'void' to pointer to non-'void' requires an explicit cast
3>....\libfreenect\fakenect\fakenect.c(99): error C3861: 'snprintf': identifier not found
3>....\libfreenect\fakenect\fakenect.c(107): warning C4365: '=' : conversion from 'int' to 'unsigned int', signed/unsigned mismatch
3>....\libfreenect\fakenect\fakenect.c(109): error C2440: '=' : cannot convert from 'void ' to 'char *'
3> Conversion from 'void' to pointer to non-'void' requires an explicit cast
3>....\libfreenect\fakenect\fakenect.c(126): warning C4365: 'initializing' : conversion from 'size_t' to 'int', signed/unsigned mismatch
3>....\libfreenect\fakenect\fakenect.c(127): warning C4365: 'argument' : conversion from 'int' to 'size_t', signed/unsigned mismatch
3>....\libfreenect\fakenect\fakenect.c(127): error C2440: 'initializing' : cannot convert from 'void ' to 'char *'
3> Conversion from 'void' to pointer to non-'void' requires an explicit cast
2>
2>Build FAILED.
2>
2>Time Elapsed 00:00:00.87
3>....\libfreenect\fakenect\fakenect.c(128): error C3861: 'snprintf': identifier not found
The text was updated successfully, but these errors were encountered:
Hi,
i got erros while compiling libfreenect on windows with VS2010 and i cant find any informations around. Does someone have an idea ?
Some problem with "time.h" and other syntax issue ....
here is compilation report ...
3>------ Build started: Project: fakenect, Configuration: Debug Win32 ------
2>....\libfreenect\fakenect\record.c(37): warning C4255: 'get_time' : no function prototype given: converting '()' to '(void)'
2>....\libfreenect\fakenect\record.c(39): error C2079: 'cur' uses undefined struct 'timeval'
2>....\libfreenect\fakenect\record.c(40): warning C4013: 'gettimeofday' undefined; assuming extern returning int
2>....\libfreenect\fakenect\record.c(41): error C2224: left of '.tv_sec' must have struct/union type
2>....\libfreenect\fakenect\record.c(41): error C2224: left of '.tv_usec' must have struct/union type
2>....\libfreenect\fakenect\record.c(41): warning C4033: 'get_time' must return a value
2>....\libfreenect\fakenect\record.c(55): error C2065: 'null' : undeclared identifier
2>....\libfreenect\fakenect\record.c(55): warning C4047: 'initializing' : 'FILE _' differs in levels of indirection from 'int'
2>....\libfreenect\fakenect\record.c(98): error C2275: 'freenect_raw_tilt_state' : illegal use of this type as an expression
2> F:\SoftsW7\Kinect\libfreenect\include\libfreenect.h(107) : see declaration of 'freenect_raw_tilt_state'
3>Build started 02/02/2011 12:47:40.
2>....\libfreenect\fakenect\record.c(98): error C2065: 'state' : undeclared identifier
2>....\libfreenect\fakenect\record.c(100): error C2065: 'state' : undeclared identifier
2>....\libfreenect\fakenect\record.c(100): warning C4047: '=' : 'int' differs in levels of indirection from 'freenect_raw_tilt_state *'
2>....\libfreenect\fakenect\record.c(101): error C2065: 'state' : undeclared identifier
2>....\libfreenect\fakenect\record.c(101): warning C4022: 'dump' : pointer mismatch for actual parameter 3
2>....\libfreenect\fakenect\record.c(101): error C2065: 'state' : undeclared identifier
2>....\libfreenect\fakenect\record.c(101): error C2100: illegal indirection
2>....\libfreenect\fakenect\record.c(111): warning C4255: 'init' : no function prototype given: converting '()' to '(void)'
2>....\libfreenect\fakenect\record.c(149): warning C4013: 'mkdir' undefined; assuming extern returning int
2>....\libfreenect\fakenect\record.c(149): error C2065: 'S_IRWXU' : undeclared identifier
2>....\libfreenect\fakenect\record.c(149): error C2065: 'S_IRWXG' : undeclared identifier
2>....\libfreenect\fakenect\record.c(149): error C2065: 'S_IRWXO' : undeclared identifier
2>....\libfreenect\fakenect\record.c(151): error C2143: syntax error : missing ';' before 'type'
2>....\libfreenect\fakenect\record.c(152): error C2065: 'fn' : undeclared identifier
2>....\libfreenect\fakenect\record.c(152): warning C4047: 'function' : 'char *' differs in levels of indirection from 'int'
2>....\libfreenect\fakenect\record.c(152): warning C4024: 'sprintf' : different types for formal and actual parameter 1
2>....\libfreenect\fakenect\record.c(153): error C2065: 'fn' : undeclared identifier
2>....\libfreenect\fakenect\record.c(153): warning C4047: 'function' : 'const char *' differs in levels of indirection from 'int'
2>....\libfreenect\fakenect\record.c(153): warning C4024: 'fopen' : different types for formal and actual parameter 1
2>....\libfreenect\fakenect\record.c(158): error C2065: 'fn' : undeclared identifier
2>....\libfreenect\fakenect\record.c(158): warning C4047: 'function' : 'const char *' differs in levels of indirection from 'int'
2>....\libfreenect\fakenect\record.c(158): warning C4024: 'fopen' : different types for formal and actual parameter 1
2>....\libfreenect\fakenect\record.c(160): error C2065: 'fn' : undeclared identifier
2>....\libfreenect\fakenect\record.c(163): error C2065: 'fn' : undeclared identifier
2>....\libfreenect\fakenect\record.c(163): warning C4022: 'free' : pointer mismatch for actual parameter 1
3>InitializeBuildStatus:
3> Touching "fakenect.dir\Debug\fakenect.unsuccessfulbuild".
3>CustomBuild:
3> All outputs are up-to-date.
3>ClCompile:
3> fakenect.c
3>C:\Program Files\Microsoft Visual Studio 10.0\VC\include\wchar.h(109): warning C4820: '_wfinddata64i32_t' : '4' bytes padding added after data member '_wfinddata64i32_t::attrib'
3>C:\Program Files\Microsoft Visual Studio 10.0\VC\include\wchar.h(114): warning C4820: '_wfinddata64i32_t' : '4' bytes padding added after data member '_wfinddata64i32_t::name'
3>C:\Program Files\Microsoft Visual Studio 10.0\VC\include\wchar.h(118): warning C4820: '_wfinddata64_t' : '4' bytes padding added after data member '_wfinddata64_t::attrib'
3>C:\Program Files\Microsoft Visual Studio 10.0\VC\include\wchar.h(488): warning C4820: '_stat32' : '2' bytes padding added after data member '_stat32::st_gid'
3>C:\Program Files\Microsoft Visual Studio 10.0\VC\include\wchar.h(504): warning C4820: 'stat' : '2' bytes padding added after data member 'stat::st_gid'
3>C:\Program Files\Microsoft Visual Studio 10.0\VC\include\wchar.h(520): warning C4820: '_stat32i64' : '2' bytes padding added after data member '_stat32i64::st_gid'
3>C:\Program Files\Microsoft Visual Studio 10.0\VC\include\wchar.h(521): warning C4820: '_stat32i64' : '4' bytes padding added after data member '_stat32i64::st_rdev'
3>C:\Program Files\Microsoft Visual Studio 10.0\VC\include\wchar.h(525): warning C4820: '_stat32i64' : '4' bytes padding added after data member '_stat32i64::st_ctime'
3>C:\Program Files\Microsoft Visual Studio 10.0\VC\include\wchar.h(534): warning C4820: '_stat64i32' : '2' bytes padding added after data member '_stat64i32::st_gid'
3>C:\Program Files\Microsoft Visual Studio 10.0\VC\include\wchar.h(548): warning C4820: '_stat64' : '2' bytes padding added after data member '_stat64::st_gid'
3>C:\Program Files\Microsoft Visual Studio 10.0\VC\include\wchar.h(549): warning C4820: '_stat64' : '4' bytes padding added after data member 'stat64::st_rdev'
3>F:\SoftsW7\Kinect\libfreenect\include\libfreenect.h(106): warning C4820: '' : '1' bytes padding added after data member '::tilt_angle'
3>....\libfreenect\fakenect\fakenect.c(52): warning C4244: 'initializing' : conversion from 'double' to 'int', possible loss of data
3>....\libfreenect\fakenect\fakenect.c(53): warning C4244: 'initializing' : conversion from 'double' to 'int', possible loss of data
3>....\libfreenect\fakenect\fakenect.c(55): error C3861: 'sleep': identifier not found
3>....\libfreenect\fakenect\fakenect.c(56): error C3861: 'usleep': identifier not found
3>....\libfreenect\fakenect\fakenect.c(61): error C2079: 'cur' uses undefined struct 'get_time::timeval'
3>....\libfreenect\fakenect\fakenect.c(62): error C3861: 'gettimeofday': identifier not found
3>....\libfreenect\fakenect\fakenect.c(63): error C2228: left of '.tv_sec' must have class/struct/union
3> type is 'int'
3>....\libfreenect\fakenect\fakenect.c(63): error C2228: left of '.tv_usec' must have class/struct/union
3> type is 'int'
3>....\libfreenect\fakenect\fakenect.c(70): warning C4242: '=' : conversion from 'int' to 'char', possible loss of data
3>....\libfreenect\fakenect\fakenect.c(73): warning C4365: 'argument' : conversion from 'int' to 'size_t', signed/unsigned mismatch
3>....\libfreenect\fakenect\fakenect.c(73): error C2440: '=' : cannot convert from 'void *' to 'char *'
3> Conversion from 'void' to pointer to non-'void' requires an explicit cast
3>....\libfreenect\fakenect\fakenect.c(77): warning C4365: 'argument' : conversion from 'int' to 'size_t', signed/unsigned mismatch
3>....\libfreenect\fakenect\fakenect.c(77): error C2440: '=' : cannot convert from 'void ' to 'char *'
3> Conversion from 'void' to pointer to non-'void' requires an explicit cast
3>....\libfreenect\fakenect\fakenect.c(97): warning C4365: 'initializing' : conversion from 'size_t' to 'int', signed/unsigned mismatch
3>....\libfreenect\fakenect\fakenect.c(98): warning C4365: 'argument' : conversion from 'int' to 'size_t', signed/unsigned mismatch
3>....\libfreenect\fakenect\fakenect.c(98): error C2440: 'initializing' : cannot convert from 'void ' to 'char *'
3> Conversion from 'void' to pointer to non-'void' requires an explicit cast
3>....\libfreenect\fakenect\fakenect.c(99): error C3861: 'snprintf': identifier not found
3>....\libfreenect\fakenect\fakenect.c(107): warning C4365: '=' : conversion from 'int' to 'unsigned int', signed/unsigned mismatch
3>....\libfreenect\fakenect\fakenect.c(109): error C2440: '=' : cannot convert from 'void ' to 'char *'
3> Conversion from 'void' to pointer to non-'void' requires an explicit cast
3>....\libfreenect\fakenect\fakenect.c(126): warning C4365: 'initializing' : conversion from 'size_t' to 'int', signed/unsigned mismatch
3>....\libfreenect\fakenect\fakenect.c(127): warning C4365: 'argument' : conversion from 'int' to 'size_t', signed/unsigned mismatch
3>....\libfreenect\fakenect\fakenect.c(127): error C2440: 'initializing' : cannot convert from 'void ' to 'char *'
3> Conversion from 'void' to pointer to non-'void' requires an explicit cast
2>
2>Build FAILED.
2>
2>Time Elapsed 00:00:00.87
3>....\libfreenect\fakenect\fakenect.c(128): error C3861: 'snprintf': identifier not found
The text was updated successfully, but these errors were encountered: