-
Notifications
You must be signed in to change notification settings - Fork 15
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
Native Windows support #71
Comments
Thanks! Many of the Linux and mac distributions of the library are separated into separate av vs iotc libraries as well; I think if you specified the same library twice it would work with your changes as well. Let me see if I can put this into a set of changes that work across all platforms. |
I think I could modify the source to work with windows natively using Win32/X64 .dll files without changing how any of the main functionality works. Just some modifications to I've been testing using .dll inclusions instead of the .so inclusions and see they function in a similar manner and are named the same calls, they just come from various .dlls instead of a single .so file. Here is a quick check locating Then accessing the functions is the same as the wyze-cam package tutk.py file. I'm calling three different functions, from three different DLLs. Just would require two changes to how the script operates. Inside of tulk.py First Change Second Change @kroo |
This command worked for me in a developer console.
Fighting with the login now, getting a 403 forbidden. If I get it running I will update. |
🚀 Feature Request
Add native Windows support. (without using WSL and Xming.)
The library can support windows natively if the DLL's are specified in the code instead of using a merged .so/.dylib file. Windows does not support merging DLL's.
🔈 Motivation
Selfishly, I want to be able to view the camera stream using the efficient
cv2.imshow()
.I have not tried running it via WSL but I assume running it natively is faster.
🛰 Alternatives
Running it via WSL and Xming like proposed in the install instructions.
📎 Additional context
I got it to run on Windows by changing the code to specify if
tutk_platform_lib
needed AVAPIs or IOTCAPIs.Now, I can't make a PR because it no longer supports Linux or MacOS. I don't know enough about g++ etc. to see why a merged library file is needed instead of just importing the two separate files. If Linux and MacOS can handle 2 separate files it could be cleaned up and merged, and support all 3 platforms.
I attach 2 patch files with the changes I made to get it to work. It's not a proper Git patch but it shows that the changes needed for Windows functionality are quite few.
wyzecam/iotc.py:
wyzecam/tutk/tutk_ioctl_mux.py
The text was updated successfully, but these errors were encountered: