-
Notifications
You must be signed in to change notification settings - Fork 30
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
Sample code not giving any output neither any error #46
Comments
Hi, |
Ok I tried this approach and this is when I am getting no output nor error. Do you have any idea where could be the problem? #include <iostream>
#include <libuvc/libuvc.h>
int main(){
std::cout<<"UVC Test:"<<std::endl;
uvc_context_t *ctx = nullptr;
uvc_error_t res = uvc_init(&ctx, nullptr);
// if (res < 0)
// {
// uvc_perror(res, "uvc_init error");
// std::cout<<"error"<<std::endl;
// }
// uvc_exit(ctx);
// std::cout<<"Done!"<<std::endl;
return 0;
} |
@lafith |
@papr |
Hi,
I built libuvc in windows without any error following your instructions. I wrote few lines just to check if it is working. It is running without any error but it is also not printing out anything.
main.cpp
CMakeLists.txt
The text was updated successfully, but these errors were encountered: