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

关于cmake..时报错 #1

Open
fanqiegu0 opened this issue Nov 29, 2024 · 4 comments
Open

关于cmake..时报错 #1

fanqiegu0 opened this issue Nov 29, 2024 · 4 comments

Comments

@fanqiegu0
Copy link

cmake..之后报错找不到rtsp_video_capture/nv12tobgr.cu。这个库不是应该在项目文件夹里面吗?感谢解答!

@a514154639
Copy link
Owner

a514154639 commented Nov 29, 2024 via email

@fanqiegu0
Copy link
Author

fanqiegu0 commented Nov 29, 2024 via email

@a514154639
Copy link
Owner

如果我只读USB摄像头的话,需要怎么改呢,我只用 int test_VideoCapture() {     VideoCapture cap(0); 之后编译的时候一直报map相关的错误。 ------------------ 原始邮件 ------------------ 发件人: "a514154639/opencv-ffmpeg-nvjmi" @.>; 发送时间: 2024年11月29日(星期五) 晚上9:16 @.>; @.@.>; 主题: Re: [a514154639/opencv-ffmpeg-nvjmi] 关于cmake..时报错 (Issue #1) 这个文件没用,cmake里直接删了就行,我当时忘了去掉了

---原始邮件--- 发件人: @.> 发送时间: 2024年11月29日(周五) 晚上9:08 收件人: @.>; 抄送: @.>; 主题: [a514154639/opencv-ffmpeg-nvjmi] 关于cmake..时报错 (Issue #1) cmake..之后报错找不到rtsp_video_capture/nv12tobgr.cu。这个库不是应该在项目文件夹里面吗?感谢解答! — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.> — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

int result = avformat_open_input(&_fmt_ctx, filename.c_str(), NULL, &options); usb摄像头我没测试过,应该要改一下这一句

@a514154639
Copy link
Owner

如果我只读USB摄像头的话,需要怎么改呢,我只用 int test_VideoCapture() {     VideoCapture cap(0); 之后编译的时候一直报map相关的错误。 ------------------ 原始邮件 ------------------ 发件人: "a514154639/opencv-ffmpeg-nvjmi" @.>; 发送时间: 2024年11月29日(星期五) 晚上9:16 @.>; @.@.>; 主题: Re: [a514154639/opencv-ffmpeg-nvjmi] 关于cmake..时报错 (Issue #1) 这个文件没用,cmake里直接删了就行,我当时忘了去掉了

---原始邮件--- 发件人: @.> 发送时间: 2024年11月29日(周五) 晚上9:08 收件人: @.>; 抄送: @.>; 主题: [a514154639/opencv-ffmpeg-nvjmi] 关于cmake..时报错 (Issue #1) cmake..之后报错找不到rtsp_video_capture/nv12tobgr.cu。这个库不是应该在项目文件夹里面吗?感谢解答! — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.> — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

你看看你linux中usb摄像头的地址是什么 "/dev/video0" 可能是这个

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants