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
Hi,
I'm very satisfied freenect user on my Linux box. However, I'm trying to compile my code on Windows using MinGW 4.8 compiler shipped with Qt 5.2.0.
I'm compiling current master branch of libfreenect
The first problem is that in platform/windows/unistd.h is preprocessor 'ifdef' statement that typedefs long as ssize_t. Despite I'm using MinGW SSIZE_T is not defined. My typedef of ssize_t is in _mingw.h with _SSIZE_T_DEFINED. I had to change this:
Another problem was in example program glview.c on lines 220, 225, 230 and 236. The compiler gave me errors that I can't assign a bool value to freenect_flag_value. Therefore an explicit conversion is needed, e.g.:
The last problem is in regview.c. There is already defined symbol ftime in some included header file. So I had to change the name of ftime to something like my_ftime
The text was updated successfully, but these errors were encountered:
Hi,
I'm very satisfied freenect user on my Linux box. However, I'm trying to compile my code on Windows using MinGW 4.8 compiler shipped with Qt 5.2.0.
I'm compiling current master branch of libfreenect
The first problem is that in platform/windows/unistd.h is preprocessor 'ifdef' statement that typedefs long as ssize_t. Despite I'm using MinGW SSIZE_T is not defined. My typedef of ssize_t is in _mingw.h with _SSIZE_T_DEFINED. I had to change this:
to this:
Another problem was in example program glview.c on lines 220, 225, 230 and 236. The compiler gave me errors that I can't assign a bool value to freenect_flag_value. Therefore an explicit conversion is needed, e.g.:
The last problem is in regview.c. There is already defined symbol ftime in some included header file. So I had to change the name of ftime to something like my_ftime
The text was updated successfully, but these errors were encountered: