Closed mcuee closed 6 years ago
Hi, We support only Windows builds using cmake + visual studio
On Tue, Jul 10, 2018, 13:36 mcuee notifications@github.com wrote:
"struct timespec ts" is causing the problem.
ephwy@ephwy-HP MINGW64 /c/work/libuvc/fork/libuvc/build $ gcc -v Using built-in specs. COLLECT_GCC=C:\msys64\mingw64\bin\gcc.exe COLLECT_LTO_WRAPPER=C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.3.0/lto-wrapper.exe Target: x86_64-w64-mingw32 Configured with: ../gcc-7.3.0/configure --prefix=/mingw64 --with-local-prefix=/mingw64/local --build=x86_64-w64-mingw32 --host=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --with-native-system-header-dir=/mingw64/x86_64-w64-mingw32/include --libexecdir=/mingw64/lib --enable-bootstrap --with-arch=x86-64 --with-tune=generic --enable-languages=c,lto,c++,objc,obj-c++,fortran,ada --enable-shared --enable-static --enable-libatomic --enable-threads=posix --enable-graphite --enable-fully-dynamic-string --enable-libstdcxx-time=yes --enable-libstdcxx-filesystem-ts=yes --disable-libstdcxx-pch --disable-libstdcxx-debug --disable-isl-version-check --enable-lto --enable-libgomp --disable-multilib --enable-checking=release --disable-rpath --disable-win32-registry --disable-nls --disable-werror --disable-symvers --with-libiconv --with-system-zlib --with-gmp=/mingw64 --with-mpfr=/mingw64 --with-mpc=/mingw64 --with-isl=/mingw64 --with-pkgversion='Rev2, Built by MSYS2 project' --with-bugurl=https://sourceforge.net/projects/msys2 --with-gnu-as --with-gnu-ld Thread model: posix gcc version 7.3.0 (Rev2, Built by MSYS2 project)
ephwy@ephwy-HP MINGW64 /c/work/libuvc/fork/libuvc/build $ make -i [ 11%] Building C object CMakeFiles/uvc.dir/src/ctrl.c.obj In file included from C:/work/libuvc/fork/libuvc/include/libuvc/libuvc_internal.h:12:0, from C:/work/libuvc/fork/libuvc/src/ctrl.c:43: C:/work/libuvc/pthreads-w32-2-9-1-release/Pre-built.2/include/pthread.h:1041:50: warning: 'struct timespec' declared inside parameter list will not be visible outside of this definition or declaration const struct timespec abstime); ^
~~~ C:/work/libuvc/pthreads-w32-2-9-1-release/Pre-built.2/include/pthread.h:1099:50: warning: 'struct timespec' declared inside parameter list will not be visible outside of this definition or declaration const struct timespec abstime); ^~~~ C:/work/libuvc/pthreads-w32-2-9-1-release/Pre-built.2/include/pthread.h:1135:53: warning: 'struct timespec' declared inside parameter list will not be visible outside of this definition or declaration const struct timespec abstime); ^~~~ C:/work/libuvc/pthreads-w32-2-9-1-release/Pre-built.2/include/pthread.h:1140:53: warning: 'struct timespec' declared inside parameter list will not be visible outside of this definition or declaration const struct timespec abstime); ^~~~ C:/work/libuvc/pthreads-w32-2-9-1-release/Pre-built.2/include/pthread.h:1177:56: warning: 'struct timespec' declared inside parameter list will not be visible outside of this definition or declaration PTW32_DLLPORT int PTW32_CDECL pthread_delay_np (struct timespec * interval); ^~~~ In file included from C:/work/libuvc/fork/libuvc/src/ctrl.c:43:0: C:/work/libuvc/fork/libuvc/include/libuvc/libuvc_internal.h:72:0: warning: "ARRAYSIZE" redefineddefine ARRAYSIZE(arr) (sizeof(arr) / (IS_ARRAY(arr) ? sizeof(arr[0]) : 0))
In file included from C:/msys64/mingw64/x86_64-w64-mingw32/include/minwindef.h:163:0, from C:/msys64/mingw64/x86_64-w64-mingw32/include/windef.h:8, from C:/msys64/mingw64/x86_64-w64-mingw32/include/windows.h:69, from C:/msys64/mingw64/x86_64-w64-mingw32/include/winsock.h:10, from C:/work/libuvc/fork/libuvc/include/libuvc/libuvc.h:13, from C:/work/libuvc/fork/libuvc/src/ctrl.c:42: C:/msys64/mingw64/x86_64-w64-mingw32/include/winnt.h:668:0: note: this is the location of the previous definition
define ARRAYSIZE(A) RTL_NUMBER_OF_V2(A)
[ 22%] Building C object CMakeFiles/uvc.dir/src/ctrl-gen.c.obj In file included from C:/work/libuvc/fork/libuvc/include/libuvc/libuvc_internal.h:12:0, from C:/work/libuvc/fork/libuvc/src/ctrl-gen.c:3: C:/work/libuvc/pthreads-w32-2-9-1-release/Pre-built.2/include/pthread.h:1041:50: warning: 'struct timespec' declared inside parameter list will not be visible outside of this definition or declaration const struct timespec abstime); ^
~~~ C:/work/libuvc/pthreads-w32-2-9-1-release/Pre-built.2/include/pthread.h:1099:50: warning: 'struct timespec' declared inside parameter list will not be visible outside of this definition or declaration const struct timespec abstime); ^~~~ C:/work/libuvc/pthreads-w32-2-9-1-release/Pre-built.2/include/pthread.h:1135:53: warning: 'struct timespec' declared inside parameter list will not be visible outside of this definition or declaration const struct timespec abstime); ^~~~ C:/work/libuvc/pthreads-w32-2-9-1-release/Pre-built.2/include/pthread.h:1140:53: warning: 'struct timespec' declared inside parameter list will not be visible outside of this definition or declaration const struct timespec abstime); ^~~~ C:/work/libuvc/pthreads-w32-2-9-1-release/Pre-built.2/include/pthread.h:1177:56: warning: 'struct timespec' declared inside parameter list will not be visible outside of this definition or declaration PTW32_DLLPORT int PTW32_CDECL pthread_delay_np (struct timespec * interval); ^~~~ In file included from C:/work/libuvc/fork/libuvc/src/ctrl-gen.c:3:0: C:/work/libuvc/fork/libuvc/include/libuvc/libuvc_internal.h:72:0: warning: "ARRAYSIZE" redefineddefine ARRAYSIZE(arr) (sizeof(arr) / (IS_ARRAY(arr) ? sizeof(arr[0]) : 0))
In file included from C:/msys64/mingw64/x86_64-w64-mingw32/include/minwindef.h:163:0, from C:/msys64/mingw64/x86_64-w64-mingw32/include/windef.h:8, from C:/msys64/mingw64/x86_64-w64-mingw32/include/windows.h:69, from C:/msys64/mingw64/x86_64-w64-mingw32/include/winsock.h:10, from C:/work/libuvc/fork/libuvc/include/libuvc/libuvc.h:13, from C:/work/libuvc/fork/libuvc/src/ctrl-gen.c:2: C:/msys64/mingw64/x86_64-w64-mingw32/include/winnt.h:668:0: note: this is the location of the previous definition
define ARRAYSIZE(A) RTL_NUMBER_OF_V2(A)
[ 33%] Building C object CMakeFiles/uvc.dir/src/device.c.obj In file included from C:/work/libuvc/fork/libuvc/include/libuvc/libuvc_internal.h:12:0, from C:/work/libuvc/fork/libuvc/src/device.c:40: C:/work/libuvc/pthreads-w32-2-9-1-release/Pre-built.2/include/pthread.h:1041:50: warning: 'struct timespec' declared inside parameter list will not be visible outside of this definition or declaration const struct timespec abstime); ^
~~~ C:/work/libuvc/pthreads-w32-2-9-1-release/Pre-built.2/include/pthread.h:1099:50: warning: 'struct timespec' declared inside parameter list will not be visible outside of this definition or declaration const struct timespec abstime); ^~~~ C:/work/libuvc/pthreads-w32-2-9-1-release/Pre-built.2/include/pthread.h:1135:53: warning: 'struct timespec' declared inside parameter list will not be visible outside of this definition or declaration const struct timespec abstime); ^~~~ C:/work/libuvc/pthreads-w32-2-9-1-release/Pre-built.2/include/pthread.h:1140:53: warning: 'struct timespec' declared inside parameter list will not be visible outside of this definition or declaration const struct timespec abstime); ^~~~ C:/work/libuvc/pthreads-w32-2-9-1-release/Pre-built.2/include/pthread.h:1177:56: warning: 'struct timespec' declared inside parameter list will not be visible outside of this definition or declaration PTW32_DLLPORT int PTW32_CDECL pthread_delay_np (struct timespec * interval); ^~~~ In file included from C:/work/libuvc/fork/libuvc/src/device.c:40:0: C:/work/libuvc/fork/libuvc/include/libuvc/libuvc_internal.h:72:0: warning: "ARRAYSIZE" redefineddefine ARRAYSIZE(arr) (sizeof(arr) / (IS_ARRAY(arr) ? sizeof(arr[0]) : 0))
In file included from C:/msys64/mingw64/x86_64-w64-mingw32/include/minwindef.h:163:0, from C:/msys64/mingw64/x86_64-w64-mingw32/include/windef.h:8, from C:/msys64/mingw64/x86_64-w64-mingw32/include/windows.h:69, from C:/msys64/mingw64/x86_64-w64-mingw32/include/winsock.h:10, from C:/work/libuvc/fork/libuvc/include/libuvc/libuvc.h:13, from C:/work/libuvc/fork/libuvc/src/device.c:39: C:/msys64/mingw64/x86_64-w64-mingw32/include/winnt.h:668:0: note: this is the location of the previous definition
define ARRAYSIZE(A) RTL_NUMBER_OF_V2(A)
[ 44%] Building C object CMakeFiles/uvc.dir/src/diag.c.obj In file included from C:/work/libuvc/fork/libuvc/include/libuvc/libuvc_internal.h:12:0, from C:/work/libuvc/fork/libuvc/src/diag.c:40: C:/work/libuvc/pthreads-w32-2-9-1-release/Pre-built.2/include/pthread.h:1041:50: warning: 'struct timespec' declared inside parameter list will not be visible outside of this definition or declaration const struct timespec abstime); ^
~~~ C:/work/libuvc/pthreads-w32-2-9-1-release/Pre-built.2/include/pthread.h:1099:50: warning: 'struct timespec' declared inside parameter list will not be visible outside of this definition or declaration const struct timespec abstime); ^~~~ C:/work/libuvc/pthreads-w32-2-9-1-release/Pre-built.2/include/pthread.h:1135:53: warning: 'struct timespec' declared inside parameter list will not be visible outside of this definition or declaration const struct timespec abstime); ^~~~ C:/work/libuvc/pthreads-w32-2-9-1-release/Pre-built.2/include/pthread.h:1140:53: warning: 'struct timespec' declared inside parameter list will not be visible outside of this definition or declaration const struct timespec abstime); ^~~~ C:/work/libuvc/pthreads-w32-2-9-1-release/Pre-built.2/include/pthread.h:1177:56: warning: 'struct timespec' declared inside parameter list will not be visible outside of this definition or declaration PTW32_DLLPORT int PTW32_CDECL pthread_delay_np (struct timespec * interval); ^~~~ In file included from C:/work/libuvc/fork/libuvc/src/diag.c:40:0: C:/work/libuvc/fork/libuvc/include/libuvc/libuvc_internal.h:72:0: warning: "ARRAYSIZE" redefineddefine ARRAYSIZE(arr) (sizeof(arr) / (IS_ARRAY(arr) ? sizeof(arr[0]) : 0))
In file included from C:/msys64/mingw64/x86_64-w64-mingw32/include/minwindef.h:163:0, from C:/msys64/mingw64/x86_64-w64-mingw32/include/windef.h:8, from C:/msys64/mingw64/x86_64-w64-mingw32/include/windows.h:69, from C:/msys64/mingw64/x86_64-w64-mingw32/include/winsock.h:10, from C:/work/libuvc/fork/libuvc/include/libuvc/libuvc.h:13, from C:/work/libuvc/fork/libuvc/src/diag.c:39: C:/msys64/mingw64/x86_64-w64-mingw32/include/winnt.h:668:0: note: this is the location of the previous definition
define ARRAYSIZE(A) RTL_NUMBER_OF_V2(A)
[ 55%] Building C object CMakeFiles/uvc.dir/src/frame.c.obj In file included from C:/work/libuvc/fork/libuvc/include/libuvc/libuvc_internal.h:12:0, from C:/work/libuvc/fork/libuvc/src/frame.c:39: C:/work/libuvc/pthreads-w32-2-9-1-release/Pre-built.2/include/pthread.h:1041:50: warning: 'struct timespec' declared inside parameter list will not be visible outside of this definition or declaration const struct timespec abstime); ^
~~~ C:/work/libuvc/pthreads-w32-2-9-1-release/Pre-built.2/include/pthread.h:1099:50: warning: 'struct timespec' declared inside parameter list will not be visible outside of this definition or declaration const struct timespec abstime); ^~~~ C:/work/libuvc/pthreads-w32-2-9-1-release/Pre-built.2/include/pthread.h:1135:53: warning: 'struct timespec' declared inside parameter list will not be visible outside of this definition or declaration const struct timespec abstime); ^~~~ C:/work/libuvc/pthreads-w32-2-9-1-release/Pre-built.2/include/pthread.h:1140:53: warning: 'struct timespec' declared inside parameter list will not be visible outside of this definition or declaration const struct timespec abstime); ^~~~ C:/work/libuvc/pthreads-w32-2-9-1-release/Pre-built.2/include/pthread.h:1177:56: warning: 'struct timespec' declared inside parameter list will not be visible outside of this definition or declaration PTW32_DLLPORT int PTW32_CDECL pthread_delay_np (struct timespec * interval); ^~~~ In file included from C:/work/libuvc/fork/libuvc/src/frame.c:39:0: C:/work/libuvc/fork/libuvc/include/libuvc/libuvc_internal.h:72:0: warning: "ARRAYSIZE" redefineddefine ARRAYSIZE(arr) (sizeof(arr) / (IS_ARRAY(arr) ? sizeof(arr[0]) : 0))
In file included from C:/msys64/mingw64/x86_64-w64-mingw32/include/minwindef.h:163:0, from C:/msys64/mingw64/x86_64-w64-mingw32/include/windef.h:8, from C:/msys64/mingw64/x86_64-w64-mingw32/include/windows.h:69, from C:/msys64/mingw64/x86_64-w64-mingw32/include/winsock.h:10, from C:/work/libuvc/fork/libuvc/include/libuvc/libuvc.h:13, from C:/work/libuvc/fork/libuvc/src/frame.c:38: C:/msys64/mingw64/x86_64-w64-mingw32/include/winnt.h:668:0: note: this is the location of the previous definition
define ARRAYSIZE(A) RTL_NUMBER_OF_V2(A)
[ 66%] Building C object CMakeFiles/uvc.dir/src/init.c.obj In file included from C:/work/libuvc/fork/libuvc/include/libuvc/libuvc_internal.h:12:0, from C:/work/libuvc/fork/libuvc/src/init.c:79: C:/work/libuvc/pthreads-w32-2-9-1-release/Pre-built.2/include/pthread.h:1041:50: warning: 'struct timespec' declared inside parameter list will not be visible outside of this definition or declaration const struct timespec abstime); ^
~~~ C:/work/libuvc/pthreads-w32-2-9-1-release/Pre-built.2/include/pthread.h:1099:50: warning: 'struct timespec' declared inside parameter list will not be visible outside of this definition or declaration const struct timespec abstime); ^~~~ C:/work/libuvc/pthreads-w32-2-9-1-release/Pre-built.2/include/pthread.h:1135:53: warning: 'struct timespec' declared inside parameter list will not be visible outside of this definition or declaration const struct timespec abstime); ^~~~ C:/work/libuvc/pthreads-w32-2-9-1-release/Pre-built.2/include/pthread.h:1140:53: warning: 'struct timespec' declared inside parameter list will not be visible outside of this definition or declaration const struct timespec abstime); ^~~~ C:/work/libuvc/pthreads-w32-2-9-1-release/Pre-built.2/include/pthread.h:1177:56: warning: 'struct timespec' declared inside parameter list will not be visible outside of this definition or declaration PTW32_DLLPORT int PTW32_CDECL pthread_delay_np (struct timespec * interval); ^~~~ In file included from C:/work/libuvc/fork/libuvc/src/init.c:79:0: C:/work/libuvc/fork/libuvc/include/libuvc/libuvc_internal.h:72:0: warning: "ARRAYSIZE" redefineddefine ARRAYSIZE(arr) (sizeof(arr) / (IS_ARRAY(arr) ? sizeof(arr[0]) : 0))
In file included from C:/msys64/mingw64/x86_64-w64-mingw32/include/minwindef.h:163:0, from C:/msys64/mingw64/x86_64-w64-mingw32/include/windef.h:8, from C:/msys64/mingw64/x86_64-w64-mingw32/include/windows.h:69, from C:/msys64/mingw64/x86_64-w64-mingw32/include/winsock.h:10, from C:/work/libuvc/fork/libuvc/include/libuvc/libuvc.h:13, from C:/work/libuvc/fork/libuvc/src/init.c:78: C:/msys64/mingw64/x86_64-w64-mingw32/include/winnt.h:668:0: note: this is the location of the previous definition
define ARRAYSIZE(A) RTL_NUMBER_OF_V2(A)
[ 77%] Building C object CMakeFiles/uvc.dir/src/stream.c.obj In file included from C:/work/libuvc/fork/libuvc/include/libuvc/libuvc_internal.h:12:0, from C:/work/libuvc/fork/libuvc/src/stream.c:40: C:/work/libuvc/pthreads-w32-2-9-1-release/Pre-built.2/include/pthread.h:1041:50: warning: 'struct timespec' declared inside parameter list will not be visible outside of this definition or declaration const struct timespec abstime); ^
~~~ C:/work/libuvc/pthreads-w32-2-9-1-release/Pre-built.2/include/pthread.h:1099:50: warning: 'struct timespec' declared inside parameter list will not be visible outside of this definition or declaration const struct timespec abstime); ^~~~ C:/work/libuvc/pthreads-w32-2-9-1-release/Pre-built.2/include/pthread.h:1135:53: warning: 'struct timespec' declared inside parameter list will not be visible outside of this definition or declaration const struct timespec abstime); ^~~~ C:/work/libuvc/pthreads-w32-2-9-1-release/Pre-built.2/include/pthread.h:1140:53: warning: 'struct timespec' declared inside parameter list will not be visible outside of this definition or declaration const struct timespec abstime); ^~~~ C:/work/libuvc/pthreads-w32-2-9-1-release/Pre-built.2/include/pthread.h:1177:56: warning: 'struct timespec' declared inside parameter list will not be visible outside of this definition or declaration PTW32_DLLPORT int PTW32_CDECL pthread_delay_np (struct timespec * interval); ^~~~ In file included from C:/work/libuvc/fork/libuvc/src/stream.c:40:0: C:/work/libuvc/fork/libuvc/include/libuvc/libuvc_internal.h:72:0: warning: "ARRAYSIZE" redefineddefine ARRAYSIZE(arr) (sizeof(arr) / (IS_ARRAY(arr) ? sizeof(arr[0]) : 0))
In file included from C:/msys64/mingw64/x86_64-w64-mingw32/include/minwindef.h:163:0, from C:/msys64/mingw64/x86_64-w64-mingw32/include/windef.h:8, from C:/msys64/mingw64/x86_64-w64-mingw32/include/windows.h:69, from C:/msys64/mingw64/x86_64-w64-mingw32/include/winsock.h:10, from C:/work/libuvc/fork/libuvc/include/libuvc/libuvc.h:13, from C:/work/libuvc/fork/libuvc/src/stream.c:39: C:/msys64/mingw64/x86_64-w64-mingw32/include/winnt.h:668:0: note: this is the location of the previous definition
define ARRAYSIZE(A) RTL_NUMBER_OF_V2(A)
In file included from C:/work/libuvc/fork/libuvc/src/stream.c:50:0: C:/work/libuvc/fork/libuvc/src/time_windows.h:16:17: error: return type is an incomplete type struct timespec get_abs_future_time_coarse(unsigned milli) ^
~~~~~C:/work/libuvc/fork/libuvc/src/time_windows.h: In function 'get_abs_future_time_coarse': C:/work/libuvc/fork/libuvc/src/time_windows.h:22:21: error: storage size of 'future' isn't known struct timespec future; ^~C:/work/libuvc/fork/libuvc/src/time_windows.h:26:12: warning: 'return' with a value, in function returning void return future; ^~C:/work/libuvc/fork/libuvc/src/time_windows.h:16:17: note: declared here struct timespec get_abs_future_time_coarse(unsigned milli) ^~~~~~C:/work/libuvc/fork/libuvc/src/stream.c: In function 'get_precise_timestamp_freq': C:/work/libuvc/fork/libuvc/src/stream.c:472:13: warning: assignment makes pointer from integer without a cast [-Wint-conversion] perf_freq = li.QuadPart; ^ C:/work/libuvc/fork/libuvc/src/stream.c: In function 'uvc_stream_get_frame': C:/work/libuvc/fork/libuvc/src/stream.c:1237:19: error: storage size of 'ts' isn't known struct timespec ts; ^~ C:/work/libuvc/fork/libuvc/src/stream.c: In function 'uvc_stream_stop': C:/work/libuvc/fork/libuvc/src/stream.c:1312:19: error: storage size of 'ts' isn't known struct timespec ts; ^~ [ 88%] Building C object CMakeFiles/uvc.dir/src/misc.c.obj [100%] Linking C shared library libuvc.dll C:\msys64\mingw64\bin\ar.exe: CMakeFiles/uvc.dir/src/stream.c.obj: No such file or directory [100%] Built target uvc— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/pupil-labs/libuvc/issues/29, or mute the thread https://github.com/notifications/unsubscribe-auth/AMnuX3J1hWoutOSRX0jUxd4VXQ4BQiTrks5uFIOjgaJpZM4VJKfk .
I see. No problem. Maybe you want to make it clear in the INSTALL_WINDOWS.md file. Any, I will close the issue.
"struct timespec ts" is causing the problem.