Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't build libfreenect.sln on Windows #561

Open
MikeRea95 opened this issue Jul 26, 2018 · 7 comments

Comments

@MikeRea95
Copy link

commented Jul 26, 2018

Hello,

I'm trying to get freenect working on my Windows 10 machine, and I've followed the instructions on Getting Started to the best of my abilities.

I've gotten to the point of building the solution with Visual Studio (VS 2017), but I get a lot of errors whenever I try to build it.

1>------ Build started: Project: freenect, Configuration: Debug Win32 ------
2>------ Build started: Project: firmware, Configuration: Debug Win32 ------
3>------ Build started: Project: freenectstatic, Configuration: Debug Win32 ------
4>------ Skipped Build: Project: uninstall, Configuration: Debug Win32 ------
4>Project not selected to build for this solution configuration 
3>cl : Command line warning D9002: ignoring unknown option '-O0'
3>cl : Command line warning D9002: ignoring unknown option '-g'
3>audio.c
1>cl : Command line warning D9002: ignoring unknown option '-O0'
1>cl : Command line warning D9002: ignoring unknown option '-g'
1>audio.c
2>Already have audios.bin
1>c:\users\mike\documents\temprary\libfreenect-master\src\usb_libusb10.h(30): fatal error C1083: Cannot open include file: 'libusb.h': No such file or directory
1>cameras.c
3>c:\users\mike\documents\temprary\libfreenect-master\src\usb_libusb10.h(30): fatal error C1083: Cannot open include file: 'libusb.h': No such file or directory
3>cameras.c
1>c:\users\mike\documents\temprary\libfreenect-master\src\usb_libusb10.h(30): fatal error C1083: Cannot open include file: 'libusb.h': No such file or directory
3>c:\users\mike\documents\temprary\libfreenect-master\src\usb_libusb10.h(30): fatal error C1083: Cannot open include file: 'libusb.h': No such file or directory
3>core.c
1>core.c
1>c:\users\mike\documents\temprary\libfreenect-master\src\usb_libusb10.h(30): fatal error C1083: Cannot open include file: 'libusb.h': No such file or directory
3>c:\users\mike\documents\temprary\libfreenect-master\src\usb_libusb10.h(30): fatal error C1083: Cannot open include file: 'libusb.h': No such file or directory
3>flags.c
1>flags.c
1>c:\users\mike\documents\temprary\libfreenect-master\src\usb_libusb10.h(30): fatal error C1083: Cannot open include file: 'libusb.h': No such file or directory
3>c:\users\mike\documents\temprary\libfreenect-master\src\usb_libusb10.h(30): fatal error C1083: Cannot open include file: 'libusb.h': No such file or directory
3>loader.c
1>loader.c
3>c:\users\mike\documents\temprary\libfreenect-master\src\usb_libusb10.h(30): fatal error C1083: Cannot open include file: 'libusb.h': No such file or directory
1>c:\users\mike\documents\temprary\libfreenect-master\src\usb_libusb10.h(30): fatal error C1083: Cannot open include file: 'libusb.h': No such file or directory
3>registration.c
1>registration.c
1>c:\users\mike\documents\temprary\libfreenect-master\src\usb_libusb10.h(30): fatal error C1083: Cannot open include file: 'libusb.h': No such file or directory
3>c:\users\mike\documents\temprary\libfreenect-master\src\usb_libusb10.h(30): fatal error C1083: Cannot open include file: 'libusb.h': No such file or directory
3>tilt.c
1>tilt.c
3>c:\users\mike\documents\temprary\libfreenect-master\src\usb_libusb10.h(30): fatal error C1083: Cannot open include file: 'libusb.h': No such file or directory
1>c:\users\mike\documents\temprary\libfreenect-master\src\usb_libusb10.h(30): fatal error C1083: Cannot open include file: 'libusb.h': No such file or directory
3>usb_libusb10.c
1>usb_libusb10.c
3>c:\users\mike\documents\temprary\libfreenect-master\src\usb_libusb10.c(31): fatal error C1083: Cannot open include file: 'libusb.h': No such file or directory
1>c:\users\mike\documents\temprary\libfreenect-master\src\usb_libusb10.c(31): fatal error C1083: Cannot open include file: 'libusb.h': No such file or directory
3>Generating Code...
1>Generating Code...
1>Done building project "freenect.vcxproj" -- FAILED.
5>------ Build started: Project: freenect_sync, Configuration: Debug Win32 ------
6>------ Build started: Project: freenect-chunkview, Configuration: Debug Win32 ------
7>------ Build started: Project: freenect-glview, Configuration: Debug Win32 ------
3>Done building project "freenectstatic.vcxproj" -- FAILED.
8>------ Build started: Project: freenect-hiview, Configuration: Debug Win32 ------
6>cl : Command line warning D9002: ignoring unknown option '-O0'
6>cl : Command line warning D9002: ignoring unknown option '-g'
6>chunkview.c
6>c:\users\mike\documents\temprary\pthreads\pre-built.2\include\pthread.h(320): error C2011: 'timespec': 'struct' type redefinition
6>c:\program files (x86)\windows kits\10\include\10.0.16299.0\ucrt\time.h(39): note: see declaration of 'timespec'
6>c:\users\mike\documents\temprary\libfreenect-master\examples\chunkview.c(242): warning C4113: 'void (__cdecl *)()' differs in parameter lists from 'void (__cdecl *)(void)'
6>c:\users\mike\documents\temprary\libfreenect-master\examples\chunkview.c(243): warning C4113: 'void (__cdecl *)()' differs in parameter lists from 'void (__cdecl *)(void)'
8>cl : Command line warning D9002: ignoring unknown option '-O0'
6>Done building project "freenect-chunkview.vcxproj" -- FAILED.
9>------ Build started: Project: freenect-micview, Configuration: Debug Win32 ------
8>cl : Command line warning D9002: ignoring unknown option '-g'
8>hiview.c
8>c:\users\mike\documents\temprary\pthreads\pre-built.2\include\pthread.h(320): error C2011: 'timespec': 'struct' type redefinition
8>c:\program files (x86)\windows kits\10\include\10.0.16299.0\ucrt\time.h(39): note: see declaration of 'timespec'
8>c:\users\mike\documents\temprary\libfreenect-master\examples\hiview.c(267): warning C4113: 'void (__cdecl *)()' differs in parameter lists from 'void (__cdecl *)(void)'
8>c:\users\mike\documents\temprary\libfreenect-master\examples\hiview.c(268): warning C4113: 'void (__cdecl *)()' differs in parameter lists from 'void (__cdecl *)(void)'
8>c:\users\mike\documents\temprary\libfreenect-master\examples\hiview.c(277): warning C4113: 'void (__cdecl *)()' differs in parameter lists from 'void (__cdecl *)(void)'
8>c:\users\mike\documents\temprary\libfreenect-master\examples\hiview.c(278): warning C4113: 'void (__cdecl *)()' differs in parameter lists from 'void (__cdecl *)(void)'
8>Done building project "freenect-hiview.vcxproj" -- FAILED.
10>------ Build started: Project: freenect-regview, Configuration: Debug Win32 ------
5>cl : Command line warning D9002: ignoring unknown option '-O0'
5>cl : Command line warning D9002: ignoring unknown option '-g'
5>libfreenect_sync.c
5>c:\users\mike\documents\temprary\pthreads\pre-built.2\include\pthread.h(320): error C2011: 'timespec': 'struct' type redefinition
5>c:\program files (x86)\windows kits\10\include\10.0.16299.0\ucrt\time.h(39): note: see declaration of 'timespec'
5>Done building project "freenect_sync.vcxproj" -- FAILED.
11>------ Build started: Project: freenect-glpclview, Configuration: Debug Win32 ------
10>cl : Command line warning D9002: ignoring unknown option '-O0'
10>cl : Command line warning D9002: ignoring unknown option '-g'
10>regview.c
11>LINK : fatal error LNK1104: cannot open file '..\lib\Debug\freenect_sync.lib'
11>Done building project "freenect-glpclview.vcxproj" -- FAILED.
12>------ Build started: Project: freenect-regtest, Configuration: Debug Win32 ------
12>LINK : fatal error LNK1104: cannot open file '..\lib\Debug\freenect_sync.lib'
10>c:\users\mike\documents\temprary\pthreads\pre-built.2\include\pthread.h(320): error C2011: 'timespec': 'struct' type redefinition
10>c:\program files (x86)\windows kits\10\include\10.0.16299.0\ucrt\time.h(39): note: see declaration of 'timespec'
12>Done building project "freenect-regtest.vcxproj" -- FAILED.
13>------ Build started: Project: freenect-tiltdemo, Configuration: Debug Win32 ------
9>cl : Command line warning D9002: ignoring unknown option '-O0'
9>cl : Command line warning D9002: ignoring unknown option '-g'
9>micview.c
9>c:\users\mike\documents\temprary\pthreads\pre-built.2\include\pthread.h(320): error C2011: 'timespec': 'struct' type redefinition
9>c:\program files (x86)\windows kits\10\include\10.0.16299.0\ucrt\time.h(39): note: see declaration of 'timespec'
9>c:\users\mike\documents\temprary\libfreenect-master\examples\micview.c(217): warning C4113: 'void (__cdecl *)()' differs in parameter lists from 'void (__cdecl *)(void)'
9>c:\users\mike\documents\temprary\libfreenect-master\examples\micview.c(218): warning C4113: 'void (__cdecl *)()' differs in parameter lists from 'void (__cdecl *)(void)'
10>c:\users\mike\documents\temprary\libfreenect-master\examples\regview.c(208): warning C4113: 'void (__cdecl *)()' differs in parameter lists from 'void (__cdecl *)(void)'
10>c:\users\mike\documents\temprary\libfreenect-master\examples\regview.c(209): warning C4113: 'void (__cdecl *)()' differs in parameter lists from 'void (__cdecl *)(void)'
10>Done building project "freenect-regview.vcxproj" -- FAILED.
14>------ Build started: Project: freenect_sync_static, Configuration: Debug Win32 ------
13>LINK : fatal error LNK1104: cannot open file '..\lib\Debug\freenect_sync.lib'
13>Done building project "freenect-tiltdemo.vcxproj" -- FAILED.
14>cl : Command line warning D9002: ignoring unknown option '-O0'
14>cl : Command line warning D9002: ignoring unknown option '-g'
9>Done building project "freenect-micview.vcxproj" -- FAILED.
14>libfreenect_sync.c
14>c:\users\mike\documents\temprary\pthreads\pre-built.2\include\pthread.h(320): error C2011: 'timespec': 'struct' type redefinition
14>c:\program files (x86)\windows kits\10\include\10.0.16299.0\ucrt\time.h(39): note: see declaration of 'timespec'
14>Done building project "freenect_sync_static.vcxproj" -- FAILED.
7>cl : Command line warning D9002: ignoring unknown option '-O0'
7>cl : Command line warning D9002: ignoring unknown option '-g'
7>glview.c
7>c:\users\mike\documents\temprary\pthreads\pre-built.2\include\pthread.h(320): error C2011: 'timespec': 'struct' type redefinition
7>c:\program files (x86)\windows kits\10\include\10.0.16299.0\ucrt\time.h(39): note: see declaration of 'timespec'
7>c:\users\mike\documents\temprary\libfreenect-master\examples\glview.c(338): warning C4113: 'void (__cdecl *)()' differs in parameter lists from 'void (__cdecl *)(void)'
7>c:\users\mike\documents\temprary\libfreenect-master\examples\glview.c(339): warning C4113: 'void (__cdecl *)()' differs in parameter lists from 'void (__cdecl *)(void)'
7>Done building project "freenect-glview.vcxproj" -- FAILED.
15>------ Skipped Build: Project: INSTALL, Configuration: Debug Win32 ------
15>Project not selected to build for this solution configuration 
========== Build: 1 succeeded, 12 failed, 4 up-to-date, 2 skipped ==========

Is there any step I could've missed?
Let me know if I need to provide any more information.

I've tried looking at this as suggested by the Getting Started page, but that section admits itself that it is outdated and unhelpful.

@Kawzeg

This comment has been minimized.

Copy link
Contributor

commented Aug 1, 2018

Try adding #define HAVE_STRUCT_TIMESPEC before the pthread import in libfreenect_sync.c, like suggested here.

This libusb issue suggests that the issue may be fixed with a new Windows SDK, though I can't verify that right now.

Kawzeg added a commit to Kawzeg/libfreenect that referenced this issue Aug 1, 2018
@MikeRea95

This comment has been minimized.

Copy link
Author

commented Aug 2, 2018

I tried adding the define call and it didn't seem to help.

I also tried using Zadig to install the libusb0 drivers and that apparently made it worse. I'm very confused.

@Kawzeg

This comment has been minimized.

Copy link
Contributor

commented Aug 2, 2018

Did that change your error messages? I had some issues where I needed to clean the build results, or Visual Studio would throw errors.

Which Zadig version did you use? I seem to recall having issues with the latest (Zadig v2.3.0), I used Zadig 2.0.1 to install libusbK v3.0.6.0, which does work for me right now.

Another issue might be the libusb library itself, I had tried to use the WinUSB Patch there, which version of that do you use? Maybe try https://github.com/libusb/libusb/releases/tag/v1.0.22

@MikeRea95

This comment has been minimized.

Copy link
Author

commented Aug 2, 2018

It seems to have made the list longer, though now it reports more successes.

1>Checking Build System
1>CMake does not need to re-run because C:/Users/Mike/Documents/Temprary/libfreenect-master/Output/CMakeFiles/generate.stamp is up-to-date.
1>CMake does not need to re-run because C:/Users/Mike/Documents/Temprary/libfreenect-master/Output/src/CMakeFiles/generate.stamp is up-to-date.
1>CMake does not need to re-run because C:/Users/Mike/Documents/Temprary/libfreenect-master/Output/examples/CMakeFiles/generate.stamp is up-to-date.
1>CMake does not need to re-run because C:/Users/Mike/Documents/Temprary/libfreenect-master/Output/fakenect/CMakeFiles/generate.stamp is up-to-date.
1>CMake does not need to re-run because C:/Users/Mike/Documents/Temprary/libfreenect-master/Output/wrappers/c_sync/CMakeFiles/generate.stamp is up-to-date.
1>CMake does not need to re-run because C:/Users/Mike/Documents/Temprary/libfreenect-master/Output/wrappers/cpp/CMakeFiles/generate.stamp is up-to-date.
2>------ Build started: Project: freenect, Configuration: Debug Win32 ------
3>------ Build started: Project: fakenect, Configuration: Debug Win32 ------
4>------ Build started: Project: firmware, Configuration: Debug Win32 ------
5>------ Build started: Project: freenectstatic, Configuration: Debug Win32 ------
2>Building Custom Rule C:/Users/Mike/Documents/Temprary/libfreenect-master/src/CMakeLists.txt
2>CMake does not need to re-run because C:/Users/Mike/Documents/Temprary/libfreenect-master/Output/src/CMakeFiles/generate.stamp is up-to-date.
3>Building Custom Rule C:/Users/Mike/Documents/Temprary/libfreenect-master/fakenect/CMakeLists.txt
3>CMake does not need to re-run because C:/Users/Mike/Documents/Temprary/libfreenect-master/Output/fakenect/CMakeFiles/generate.stamp is up-to-date.
5>Building Custom Rule C:/Users/Mike/Documents/Temprary/libfreenect-master/src/CMakeLists.txt
3>cl : Command line warning D9002: ignoring unknown option '-O0'
5>CMake does not need to re-run because C:/Users/Mike/Documents/Temprary/libfreenect-master/Output/src/CMakeFiles/generate.stamp is up-to-date.
3>cl : Command line warning D9002: ignoring unknown option '-g'
3>fakenect.c
2>cl : Command line warning D9002: ignoring unknown option '-O0'
2>cl : Command line warning D9002: ignoring unknown option '-g'
2>core.c
5>cl : Command line warning D9002: ignoring unknown option '-O0'
5>cl : Command line warning D9002: ignoring unknown option '-g'
5>core.c
4>Already have audios.bin
4>Building Custom Rule C:/Users/Mike/Documents/Temprary/libfreenect-master/src/CMakeLists.txt
4>CMake does not need to re-run because C:/Users/Mike/Documents/Temprary/libfreenect-master/Output/src/CMakeFiles/generate.stamp is up-to-date.
6>------ Skipped Build: Project: uninstall, Configuration: Debug Win32 ------
6>Project not selected to build for this solution configuration 
3>c:\users\mike\documents\temprary\libfreenect-master\src\usb_libusb10.h(30): fatal error C1083: Cannot open include file: 'libusb.h': No such file or directory
2>c:\users\mike\documents\temprary\libfreenect-master\src\usb_libusb10.h(30): fatal error C1083: Cannot open include file: 'libusb.h': No such file or directory
5>c:\users\mike\documents\temprary\libfreenect-master\src\usb_libusb10.h(30): fatal error C1083: Cannot open include file: 'libusb.h': No such file or directory
5>tilt.c
2>tilt.c
3>parson.c
3>registration.c
5>c:\users\mike\documents\temprary\libfreenect-master\src\usb_libusb10.h(30): fatal error C1083: Cannot open include file: 'libusb.h': No such file or directory
2>c:\users\mike\documents\temprary\libfreenect-master\src\usb_libusb10.h(30): fatal error C1083: Cannot open include file: 'libusb.h': No such file or directory
2>cameras.c
5>cameras.c
3>c:\users\mike\documents\temprary\libfreenect-master\src\usb_libusb10.h(30): fatal error C1083: Cannot open include file: 'libusb.h': No such file or directory
3>Generating Code...
2>c:\users\mike\documents\temprary\libfreenect-master\src\usb_libusb10.h(30): fatal error C1083: Cannot open include file: 'libusb.h': No such file or directory
5>c:\users\mike\documents\temprary\libfreenect-master\src\usb_libusb10.h(30): fatal error C1083: Cannot open include file: 'libusb.h': No such file or directory
5>flags.c
2>flags.c
3>Done building project "fakenect.vcxproj" -- FAILED.
2>c:\users\mike\documents\temprary\libfreenect-master\src\usb_libusb10.h(30): fatal error C1083: Cannot open include file: 'libusb.h': No such file or directory
5>c:\users\mike\documents\temprary\libfreenect-master\src\usb_libusb10.h(30): fatal error C1083: Cannot open include file: 'libusb.h': No such file or directory
5>usb_libusb10.c
5>c:\users\mike\documents\temprary\libfreenect-master\src\usb_libusb10.c(31): fatal error C1083: Cannot open include file: 'libusb.h': No such file or directory
5>registration.c
5>c:\users\mike\documents\temprary\libfreenect-master\src\usb_libusb10.h(30): fatal error C1083: Cannot open include file: 'libusb.h': No such file or directory
5>audio.c
2>usb_libusb10.c
2>c:\users\mike\documents\temprary\libfreenect-master\src\usb_libusb10.c(31): fatal error C1083: Cannot open include file: 'libusb.h': No such file or directory
2>registration.c
2>c:\users\mike\documents\temprary\libfreenect-master\src\usb_libusb10.h(30): fatal error C1083: Cannot open include file: 'libusb.h': No such file or directory
2>audio.c
5>c:\users\mike\documents\temprary\libfreenect-master\src\usb_libusb10.h(30): fatal error C1083: Cannot open include file: 'libusb.h': No such file or directory
2>c:\users\mike\documents\temprary\libfreenect-master\src\usb_libusb10.h(30): fatal error C1083: Cannot open include file: 'libusb.h': No such file or directory
2>loader.c
5>loader.c
2>c:\users\mike\documents\temprary\libfreenect-master\src\usb_libusb10.h(30): fatal error C1083: Cannot open include file: 'libusb.h': No such file or directory
5>c:\users\mike\documents\temprary\libfreenect-master\src\usb_libusb10.h(30): fatal error C1083: Cannot open include file: 'libusb.h': No such file or directory
2>Generating Code...
5>Generating Code...
2>Done building project "freenect.vcxproj" -- FAILED.
7>------ Build started: Project: freenect_sync, Configuration: Debug Win32 ------
8>------ Build started: Project: fakenect-record, Configuration: Debug Win32 ------
9>------ Build started: Project: freenect-camtest, Configuration: Debug Win32 ------
5>Done building project "freenectstatic.vcxproj" -- FAILED.
10>------ Build started: Project: freenect-chunkview, Configuration: Debug Win32 ------
9>Building Custom Rule C:/Users/Mike/Documents/Temprary/libfreenect-master/examples/CMakeLists.txt
8>Building Custom Rule C:/Users/Mike/Documents/Temprary/libfreenect-master/fakenect/CMakeLists.txt
7>Building Custom Rule C:/Users/Mike/Documents/Temprary/libfreenect-master/wrappers/c_sync/CMakeLists.txt
10>Building Custom Rule C:/Users/Mike/Documents/Temprary/libfreenect-master/examples/CMakeLists.txt
10>CMake does not need to re-run because C:/Users/Mike/Documents/Temprary/libfreenect-master/Output/examples/CMakeFiles/generate.stamp is up-to-date.
7>CMake does not need to re-run because C:/Users/Mike/Documents/Temprary/libfreenect-master/Output/wrappers/c_sync/CMakeFiles/generate.stamp is up-to-date.
9>CMake does not need to re-run because C:/Users/Mike/Documents/Temprary/libfreenect-master/Output/examples/CMakeFiles/generate.stamp is up-to-date.
8>CMake does not need to re-run because C:/Users/Mike/Documents/Temprary/libfreenect-master/Output/fakenect/CMakeFiles/generate.stamp is up-to-date.
9>cl : Command line warning D9002: ignoring unknown option '-O0'
9>cl : Command line warning D9002: ignoring unknown option '-g'
9>camtest.c
8>cl : Command line warning D9002: ignoring unknown option '-O0'
8>cl : Command line warning D9002: ignoring unknown option '-g'
10>cl : Command line warning D9002: ignoring unknown option '-O0'
10>cl : Command line warning D9002: ignoring unknown option '-g'
10>chunkview.c
10>c:\users\mike\documents\temprary\pthreads\pre-built.2\include\pthread.h(320): error C2011: 'timespec': 'struct' type redefinition
10>c:\program files (x86)\windows kits\10\include\10.0.16299.0\ucrt\time.h(39): note: see declaration of 'timespec'
10>c:\users\mike\documents\temprary\libfreenect-master\examples\chunkview.c(242): warning C4113: 'void (__cdecl *)()' differs in parameter lists from 'void (__cdecl *)(void)'
10>c:\users\mike\documents\temprary\libfreenect-master\examples\chunkview.c(243): warning C4113: 'void (__cdecl *)()' differs in parameter lists from 'void (__cdecl *)(void)'
10>Done building project "freenect-chunkview.vcxproj" -- FAILED.
11>------ Build started: Project: freenect-cpp_pcview, Configuration: Debug Win32 ------
8>record.c
8>c:\users\mike\documents\temprary\libfreenect-master\src\usb_libusb10.h(30): fatal error C1083: Cannot open include file: 'libusb.h': No such file or directory
8>parson.c
8>Generating Code...
7>cl : Command line warning D9002: ignoring unknown option '-O0'
7>cl : Command line warning D9002: ignoring unknown option '-g'
7>libfreenect_sync.c
9>LINK : fatal error LNK1104: cannot open file '..\lib\Debug\freenect.lib'
11>Building Custom Rule C:/Users/Mike/Documents/Temprary/libfreenect-master/wrappers/cpp/CMakeLists.txt
11>CMake does not need to re-run because C:/Users/Mike/Documents/Temprary/libfreenect-master/Output/wrappers/cpp/CMakeFiles/generate.stamp is up-to-date.
11>cl : Command line warning D9002: ignoring unknown option '-O0'
11>cl : Command line warning D9002: ignoring unknown option '-g'
11>cpp_pc_view.cpp
9>Done building project "freenect-camtest.vcxproj" -- FAILED.
12>------ Build started: Project: freenect-cppview, Configuration: Debug Win32 ------
12>Building Custom Rule C:/Users/Mike/Documents/Temprary/libfreenect-master/wrappers/cpp/CMakeLists.txt
7>LINK : fatal error LNK1104: cannot open file '..\..\lib\Debug\freenect.lib'
12>CMake does not need to re-run because C:/Users/Mike/Documents/Temprary/libfreenect-master/Output/wrappers/cpp/CMakeFiles/generate.stamp is up-to-date.
7>Done building project "freenect_sync.vcxproj" -- FAILED.
13>------ Build started: Project: freenect-glpclview, Configuration: Debug Win32 ------
12>cl : Command line warning D9002: ignoring unknown option '-O0'
12>cl : Command line warning D9002: ignoring unknown option '-g'
12>cppview.cpp
13>Building Custom Rule C:/Users/Mike/Documents/Temprary/libfreenect-master/examples/CMakeLists.txt
13>CMake does not need to re-run because C:/Users/Mike/Documents/Temprary/libfreenect-master/Output/examples/CMakeFiles/generate.stamp is up-to-date.
13>cl : Command line warning D9002: ignoring unknown option '-O0'
13>cl : Command line warning D9002: ignoring unknown option '-g'
13>glpclview.c
13>c:\users\mike\documents\temprary\libfreenect-master\examples\glpclview.c(216): warning C4113: 'void (__cdecl *)()' differs in parameter lists from 'void (__cdecl *)(void)'
13>c:\users\mike\documents\temprary\libfreenect-master\examples\glpclview.c(217): warning C4113: 'void (__cdecl *)()' differs in parameter lists from 'void (__cdecl *)(void)'
13>LINK : fatal error LNK1104: cannot open file '..\lib\Debug\freenect_sync.lib'
13>Done building project "freenect-glpclview.vcxproj" -- FAILED.
14>------ Build started: Project: freenect-glview, Configuration: Debug Win32 ------
11>c:\users\mike\documents\temprary\pthreads\pre-built.2\include\pthread.h(320): error C2011: 'timespec': 'struct' type redefinition
11>c:\program files (x86)\windows kits\10\include\10.0.16299.0\ucrt\time.h(39): note: see declaration of 'timespec'
14>Building Custom Rule C:/Users/Mike/Documents/Temprary/libfreenect-master/examples/CMakeLists.txt
14>CMake does not need to re-run because C:/Users/Mike/Documents/Temprary/libfreenect-master/Output/examples/CMakeFiles/generate.stamp is up-to-date.
14>cl : Command line warning D9002: ignoring unknown option '-O0'
12>c:\users\mike\documents\temprary\pthreads\pre-built.2\include\pthread.h(320): error C2011: 'timespec': 'struct' type redefinition
14>cl : Command line warning D9002: ignoring unknown option '-g'
14>glview.c
12>c:\program files (x86)\windows kits\10\include\10.0.16299.0\ucrt\time.h(39): note: see declaration of 'timespec'
12>c:\users\mike\documents\temprary\libfreenect-master\wrappers\cpp\libfreenect.hpp(33): fatal error C1083: Cannot open include file: 'libusb.h': No such file or directory
12>Done building project "freenect-cppview.vcxproj" -- FAILED.
15>------ Build started: Project: freenect-hiview, Configuration: Debug Win32 ------
15>Building Custom Rule C:/Users/Mike/Documents/Temprary/libfreenect-master/examples/CMakeLists.txt
11>c:\users\mike\documents\temprary\libfreenect-master\wrappers\cpp\libfreenect.hpp(33): fatal error C1083: Cannot open include file: 'libusb.h': No such file or directory
15>CMake does not need to re-run because C:/Users/Mike/Documents/Temprary/libfreenect-master/Output/examples/CMakeFiles/generate.stamp is up-to-date.
8>Done building project "fakenect-record.vcxproj" -- FAILED.
16>------ Build started: Project: freenect-micview, Configuration: Debug Win32 ------
15>cl : Command line warning D9002: ignoring unknown option '-O0'
15>cl : Command line warning D9002: ignoring unknown option '-g'
15>hiview.c
11>Done building project "freenect-cpp_pcview.vcxproj" -- FAILED.
17>------ Build started: Project: freenect-regtest, Configuration: Debug Win32 ------
16>Building Custom Rule C:/Users/Mike/Documents/Temprary/libfreenect-master/examples/CMakeLists.txt
16>CMake does not need to re-run because C:/Users/Mike/Documents/Temprary/libfreenect-master/Output/examples/CMakeFiles/generate.stamp is up-to-date.
14>c:\users\mike\documents\temprary\pthreads\pre-built.2\include\pthread.h(320): error C2011: 'timespec': 'struct' type redefinition
17>Building Custom Rule C:/Users/Mike/Documents/Temprary/libfreenect-master/examples/CMakeLists.txt
14>c:\program files (x86)\windows kits\10\include\10.0.16299.0\ucrt\time.h(39): note: see declaration of 'timespec'
14>c:\users\mike\documents\temprary\libfreenect-master\examples\glview.c(338): warning C4113: 'void (__cdecl *)()' differs in parameter lists from 'void (__cdecl *)(void)'
14>c:\users\mike\documents\temprary\libfreenect-master\examples\glview.c(339): warning C4113: 'void (__cdecl *)()' differs in parameter lists from 'void (__cdecl *)(void)'
17>CMake does not need to re-run because C:/Users/Mike/Documents/Temprary/libfreenect-master/Output/examples/CMakeFiles/generate.stamp is up-to-date.
14>Done building project "freenect-glview.vcxproj" -- FAILED.
18>------ Build started: Project: freenect-regview, Configuration: Debug Win32 ------
18>Building Custom Rule C:/Users/Mike/Documents/Temprary/libfreenect-master/examples/CMakeLists.txt
15>c:\users\mike\documents\temprary\pthreads\pre-built.2\include\pthread.h(320): error C2011: 'timespec': 'struct' type redefinition
15>c:\program files (x86)\windows kits\10\include\10.0.16299.0\ucrt\time.h(39): note: see declaration of 'timespec'
15>c:\users\mike\documents\temprary\libfreenect-master\examples\hiview.c(267): warning C4113: 'void (__cdecl *)()' differs in parameter lists from 'void (__cdecl *)(void)'
15>c:\users\mike\documents\temprary\libfreenect-master\examples\hiview.c(268): warning C4113: 'void (__cdecl *)()' differs in parameter lists from 'void (__cdecl *)(void)'
15>c:\users\mike\documents\temprary\libfreenect-master\examples\hiview.c(277): warning C4113: 'void (__cdecl *)()' differs in parameter lists from 'void (__cdecl *)(void)'
15>c:\users\mike\documents\temprary\libfreenect-master\examples\hiview.c(278): warning C4113: 'void (__cdecl *)()' differs in parameter lists from 'void (__cdecl *)(void)'
18>CMake does not need to re-run because C:/Users/Mike/Documents/Temprary/libfreenect-master/Output/examples/CMakeFiles/generate.stamp is up-to-date.
15>Done building project "freenect-hiview.vcxproj" -- FAILED.
19>------ Build started: Project: freenect-tiltdemo, Configuration: Debug Win32 ------
18>cl : Command line warning D9002: ignoring unknown option '-O0'
18>cl : Command line warning D9002: ignoring unknown option '-g'
18>regview.c
16>cl : Command line warning D9002: ignoring unknown option '-O0'
19>Building Custom Rule C:/Users/Mike/Documents/Temprary/libfreenect-master/examples/CMakeLists.txt
19>CMake does not need to re-run because C:/Users/Mike/Documents/Temprary/libfreenect-master/Output/examples/CMakeFiles/generate.stamp is up-to-date.
16>cl : Command line warning D9002: ignoring unknown option '-g'
16>micview.c
16>c:\users\mike\documents\temprary\pthreads\pre-built.2\include\pthread.h(320): error C2011: 'timespec': 'struct' type redefinition
16>c:\program files (x86)\windows kits\10\include\10.0.16299.0\ucrt\time.h(39): note: see declaration of 'timespec'
16>c:\users\mike\documents\temprary\libfreenect-master\examples\micview.c(217): warning C4113: 'void (__cdecl *)()' differs in parameter lists from 'void (__cdecl *)(void)'
16>c:\users\mike\documents\temprary\libfreenect-master\examples\micview.c(218): warning C4113: 'void (__cdecl *)()' differs in parameter lists from 'void (__cdecl *)(void)'
16>Done building project "freenect-micview.vcxproj" -- FAILED.
20>------ Build started: Project: freenect-wavrecord, Configuration: Debug Win32 ------
19>cl : Command line warning D9002: ignoring unknown option '-O0'
19>cl : Command line warning D9002: ignoring unknown option '-g'
19>tiltdemo.c
17>cl : Command line warning D9002: ignoring unknown option '-O0'
17>cl : Command line warning D9002: ignoring unknown option '-g'
17>regtest.c
17>c:\users\mike\documents\temprary\libfreenect-master\examples\regtest.c(35): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
20>Building Custom Rule C:/Users/Mike/Documents/Temprary/libfreenect-master/examples/CMakeLists.txt
17>c:\program files (x86)\windows kits\10\include\10.0.16299.0\ucrt\stdio.h(207): note: see declaration of 'fopen'
20>CMake does not need to re-run because C:/Users/Mike/Documents/Temprary/libfreenect-master/Output/examples/CMakeFiles/generate.stamp is up-to-date.
18>c:\users\mike\documents\temprary\pthreads\pre-built.2\include\pthread.h(320): error C2011: 'timespec': 'struct' type redefinition
17>LINK : fatal error LNK1104: cannot open file '..\lib\Debug\freenect_sync.lib'
18>c:\program files (x86)\windows kits\10\include\10.0.16299.0\ucrt\time.h(39): note: see declaration of 'timespec'
18>c:\users\mike\documents\temprary\libfreenect-master\examples\regview.c(208): warning C4113: 'void (__cdecl *)()' differs in parameter lists from 'void (__cdecl *)(void)'
18>c:\users\mike\documents\temprary\libfreenect-master\examples\regview.c(209): warning C4113: 'void (__cdecl *)()' differs in parameter lists from 'void (__cdecl *)(void)'
17>Done building project "freenect-regtest.vcxproj" -- FAILED.
21>------ Build started: Project: freenect_sync_static, Configuration: Debug Win32 ------
18>Done building project "freenect-regview.vcxproj" -- FAILED.
21>Building Custom Rule C:/Users/Mike/Documents/Temprary/libfreenect-master/wrappers/c_sync/CMakeLists.txt
19>c:\users\mike\documents\temprary\libfreenect-master\examples\tiltdemo.c(92): warning C4244: 'function': conversion from 'time_t' to 'unsigned int', possible loss of data
21>CMake does not need to re-run because C:/Users/Mike/Documents/Temprary/libfreenect-master/Output/wrappers/c_sync/CMakeFiles/generate.stamp is up-to-date.
19>LINK : fatal error LNK1104: cannot open file '..\lib\Debug\freenect_sync.lib'
19>Done building project "freenect-tiltdemo.vcxproj" -- FAILED.
20>cl : Command line warning D9002: ignoring unknown option '-O0'
20>cl : Command line warning D9002: ignoring unknown option '-g'
20>wavrecord.c
20>c:\users\mike\documents\temprary\libfreenect-master\examples\wavrecord.c(97): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
20>c:\program files (x86)\windows kits\10\include\10.0.16299.0\ucrt\stdio.h(207): note: see declaration of 'fopen'
20>c:\users\mike\documents\temprary\libfreenect-master\examples\wavrecord.c(98): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
20>c:\program files (x86)\windows kits\10\include\10.0.16299.0\ucrt\stdio.h(207): note: see declaration of 'fopen'
20>c:\users\mike\documents\temprary\libfreenect-master\examples\wavrecord.c(99): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
20>c:\program files (x86)\windows kits\10\include\10.0.16299.0\ucrt\stdio.h(207): note: see declaration of 'fopen'
20>c:\users\mike\documents\temprary\libfreenect-master\examples\wavrecord.c(100): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
20>c:\program files (x86)\windows kits\10\include\10.0.16299.0\ucrt\stdio.h(207): note: see declaration of 'fopen'
21>cl : Command line warning D9002: ignoring unknown option '-O0'
21>cl : Command line warning D9002: ignoring unknown option '-g'
21>libfreenect_sync.c
20>LINK : fatal error LNK1104: cannot open file '..\lib\Debug\freenect.lib'
20>Done building project "freenect-wavrecord.vcxproj" -- FAILED.
21>freenect_sync_static.vcxproj -> C:\Users\Mike\Documents\Temprary\libfreenect-master\Output\lib\Debug\freenect_sync.lib
21>Done building project "freenect_sync_static.vcxproj".
22>------ Build started: Project: ALL_BUILD, Configuration: Debug Win32 ------
22>Building Custom Rule C:/Users/Mike/Documents/Temprary/libfreenect-master/CMakeLists.txt
22>CMake does not need to re-run because C:/Users/Mike/Documents/Temprary/libfreenect-master/Output/CMakeFiles/generate.stamp is up-to-date.
23>------ Skipped Build: Project: INSTALL, Configuration: Debug Win32 ------
23>Project not selected to build for this solution configuration 
========== Build: 4 succeeded, 17 failed, 0 up-to-date, 2 skipped ==========

As for Zadig, I'm using 2.4. I'll give 2.0.1 a shot. Just to be sure, I should be installing libusbK v3.0.6.0 as my drivers, not libusb v2.6.0?

I've downloaded the most recent versions of libusb and libusbK. Not sure about WinUSB.

@Kawzeg

This comment has been minimized.

Copy link
Contributor

commented Aug 2, 2018

That libusbK version is the one I have currently installed, yes.

Multiple things:
You have a different windows sdk version than I do (10.0.14393.0), I don't know if that could be an issue.

It doesn't seem to find the libusb.h header, make sure that directory is set to the directory containing libusb.h.

You are compiling in Win32 configuration, make sure that you don't mix bitness with your dependencies, i.e. if you compile for x64, make sure all your dependencies are 64 bit also, and vice versa.

You shouldn't be concerned about WinUSB, that was just a sidenote.

@piedar piedar closed this in f63bb6a Aug 3, 2018
@piedar piedar reopened this Aug 3, 2018
@Kawzeg

This comment has been minimized.

Copy link
Contributor

commented Aug 3, 2018

I just realised that I have only been building the library, not the examples, those have the timespec issue as well.

@Kawzeg Kawzeg referenced this issue Aug 3, 2018
@MikeRea95

This comment has been minimized.

Copy link
Author

commented Aug 8, 2018

I've decided to go another route with my project, and am moving away from libfreenect. Thanks for your efforts, though!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.