mpromonet / webrtc-streamer

WebRTC streamer for V4L2 capture devices, RTSP sources and Screen Capture
https://webrtcstreamer.agreeabletree-365b9a90.canadacentral.azurecontainerapps.io/?layout=2x2
The Unlicense
2.83k stars 582 forks source link

cmke error Compilation failed, What is the reason for this? Thank you #586

Closed zhuya1996 closed 1 year ago

zhuya1996 commented 1 year ago

QQ截图20230508212210 QQ截图20230508213547 QQ截图20230508213620

zhuya1996 commented 1 year ago

Please help answer this question. Thank you!!

iqbal-h commented 1 year ago

CMakeList.txt is inside webrtc-streamer directory. .../webrtc-streamer:~# cmake .

zhuya1996 commented 1 year ago

Put it in the depot_ Are tools in the same level directory?

iqbal-h commented 1 year ago

This is how the directories should look like:

.../home/depot_tools:~# 
.../home/webrtc:~# 
.../home/webrtc-streamer:~# 

Adding path for depot_tools is a must cmake . && make will run only inside webrtc-streamer

zhuya1996 commented 1 year ago

目录应该是这样的:

.../home/depot_tools:~# 
.../home/webrtc:~# 
.../home/webrtc-streamer:~# 

添加 depot_tools 的路径是必须的, cmake . && make只能在 webrtc-streamer 中运行

QQ截图20230508230154 QQ截图20230508230208

zhuya1996 commented 1 year ago

目录应该是这样的:

.../home/depot_tools:~# 
.../home/webrtc:~# 
.../home/webrtc-streamer:~# 

添加depot_tools的路径是必须的,cmake . && make只能在webrtc-streamer中运行

QQ截图20230508230154 QQ截图20230508230208

There's still a problem

mpromonet commented 1 year ago

Hi

Some dependencies are probably missing like glib. You should get needed environnent from dockerfile.

Best Regards Michel

zhuya1996 commented 1 year ago

o no,Not very good at using dockers

zhuya1996 commented 1 year ago

你好

可能缺少一些依赖项,例如 glib。您应该从 dockerfile 获得所需的环境。

最好的问候 米歇尔

image Hello, have I compiled this successfully???But the generated webrtc streamer is not an exe

mpromonet commented 1 year ago

Hi,

It looks like an executable, it is green, if you look to its permission, it should have +x permission.

Best Regards, Michel.

zhuya1996 commented 1 year ago

你好,

它看起来像一个可执行文件,它是绿色的,如果你查看它的权限,它应该有 +x 权限。

最好的问候, 米歇尔。

QQ截图20230509180257 After downloading, it is not an exe under Windows

mpromonet commented 1 year ago

Hi, Of course, you build a linux executable... Best Regards Michel

zhuya1996 commented 1 year ago

嗨, 当然,你构建了一个 linux 可执行文件...... 最好的问候 Michel

Hello, can you compile exe under Linux for use under Windows?

mpromonet commented 1 year ago

Hi,

This need to cross compile for windows under linux, probably not an easy task to build webrtc lib. Why not build on windows for windows ?

Best Regards Michel.