Open idimou opened 4 years ago
wpa_cli
is the one that actually causes the seg fault. Be sure to use up-to-date system image. You can also try using a separate SD card with the latest "Raspberry Pi OS (32-bit) with desktop Image with desktop based on Debian Buster" image.Thanks for the swift response.
I've deployed it again on a the pi zero with Raspberry OS 20-08-2020 version with desktop (not Lite). It still gave me segmentation faults. I tried the same on a pi 4 and it works. I see the "The display is ready" and rolling PIN messages. I was able to cast from an android phone using Castto app with 2 secs latency.
Using Windows 10 PC as a source the pi 4 appears on the available devices but each time I press on it the PIN textbox disappears, there is a drawer at the top of the win 10 screen indicating "Connecting to device" but nothing else happens. The console on the pi 4 side continues to show the PIN: .... scrolling.
Both p2p and MICE should work with Win 10.
hmmm still can't connect from windows 10 to a pi 4 running lazycast. Please test it with a pi 4 when you get a chance. Thanks again.
Just for the info. I encountered the same error. Using: old Raspberry Pi 1 B+ Fresh Raspbian Stretch Desktop from the README link (updated and upgraded) Followed preparation steps in README without errors.
When running ./all.sh, I get the error.
Dear homeworkc, good idea and it looks like an active maturing implementation. Thanks for all the effort to provide such a useful solution.
I've followed the steps to configure lazycast on a pi zero. I've connected via shh over ethernet (zero also connected to my WLAN) and when I clone and make lazycast I get a bunch of errors:
`idimou@zero:~/lazycast $ make make -C player/. make[1]: Entering directory '/home/idimou/lazycast/player' cc -DOMX_SKIP64BIT -I/opt/vc/include/ -I /opt/vc/include/interface/vmcs_host/ -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux -I/opt/vc/include/interface/vcos/ -I /opt/vc/include/IL -I/opt/vc/src/hello_pi/libs/ilclient -I/opt/vc/include/ -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux -I./ -I/opt/vc/src/hello_pi/libs/ilclient -I/opt/vc/src/hello_pi/libs/vgfont -DSTANDALONE -DSTDC_CONSTANT_MACROS -DSTDC_LIMIT_MACROS -DTARGET_POSIX -D_LINUX -fPIC -DPIC -D_REENTRANT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -U_FORTIFY_SOURCE -Wall -g -DHAVE_LIBOPENMAX=2 -DOMX -DOMX_SKIP64BIT -ftree-vectorize -pipe -DUSE_EXTERNAL_OMX -DHAVE_LIBBCM_HOST -DUSE_EXTERNAL_LIBBCM_HOST -DUSE_VCHIQ_ARM -Wno-psabi -I/opt/vc/include/ -I /opt/vc/include/interface/vmcs_host/ -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux -I/opt/vc/include/interface/vcos/ -I /opt/vc/include/IL -I/opt/vc/src/hello_pi/libs/ilclient -I/opt/vc/include/ -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux -I./ -I/opt/vc/src/hello_pi/libs/ilclient -I/opt/vc/src/hello_pi/libs/vgfont -g -c player.c -o player.o -Wno-deprecated-declarations player.c: In function ‘copy_into_buffer_and_empty’: player.c:221:6: warning: unused variable ‘buff_size’ [-Wunused-variable] int buff_size = buff_header->nAllocLen; ^
~~~~ player.c: In function ‘setup_demuxer’: player.c:470:50: warning: comparison of constant ‘0’ with boolean expression is always false [-Wbool-compare] if (!avcodec_open2(codec_context, codec, NULL) < 0) ^ player.c:470:50: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses] player.c:470:7: note: add parentheses around left hand side expression to silence this warning if (!avcodec_open2(codec_context, codec, NULL) < 0) ^~~~~~~~~~ ( ) player.c:491:50: warning: comparison of constant ‘0’ with boolean expression is always false [-Wbool-compare] if (!avcodec_open2(codec_context, codec, NULL) < 0) ^ player.c:491:50: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses] player.c:491:7: note: add parentheses around left hand side expression to silence this warning if (!avcodec_open2(codec_context, codec, NULL) < 0) ^~~~~~~~~~ ( ) player.c: In function ‘setup_clockComponent’: player.c:602:23: warning: unused variable ‘clock’ [-Wunused-variable] OMX_COMPONENTTYPEclock = ilclient_get_handle(clockComponent); ^~~~~ player.c: In function ‘audioplay_get_latency’: player.c:729:16: warning: variable ‘error’ set but not used [-Wunused-but-set-variable] OMX_ERRORTYPE error; ^~~~~ player.c: In function ‘receivepkt’: player.c:823:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^ player.c: In function ‘addnullpacket’: player.c:908:16: warning: variable ‘padpacket’ set but not used [-Wunused-but-set-variable] unsigned char padpacket[2048]; ^~~~~ player.c:904:6: warning: unused variable ‘err’ [-Wunused-variable] int err = 1000; ^~~ player.c: In function ‘main’: player.c:1326:37: warning: passing argument 3 of ‘pthread_create’ from incompatible pointer type [-Wincompatible-pointer-types] if (pthread_create(&thread, NULL, receivepkt, oldnodecopy) != 0) ^~~~~~ In file included from player.c:6: /usr/include/pthread.h:236:15: note: expected ‘void ()(void )’ but argument is of type ‘void ()(Nodetype )’ {aka ‘void ()(struct Node )’} void (__start_routine) (void ),cc -DOMX_SKIP64BIT -I/opt/vc/include/ -I /opt/vc/include/interface/vmcs_host/ -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux -I/opt/vc/include/interface/vcos/ -I /opt/vc/include/IL -I/opt/vc/src/hello_pi/libs/ilclient -I/opt/vc/include/ -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux -I./ -I/opt/vc/src/hello_pi/libs/ilclient -I/opt/vc/src/hello_pi/libs/vgfont -DSTANDALONE -DSTDC_CONSTANT_MACROS -DSTDC_LIMIT_MACROS -DTARGET_POSIX -D_LINUX -fPIC -DPIC -D_REENTRANT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -U_FORTIFY_SOURCE -Wall -g -DHAVE_LIBOPENMAX=2 -DOMX -DOMX_SKIP64BIT -ftree-vectorize -pipe -DUSE_EXTERNAL_OMX -DHAVE_LIBBCM_HOST -DUSE_EXTERNAL_LIBBCM_HOST -DUSE_VCHIQ_ARM -Wno-psabi -I/opt/vc/include/ -I /opt/vc/include/interface/vmcs_host/ -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux -I/opt/vc/include/interface/vcos/ -I /opt/vc/include/IL -I/opt/vc/src/hello_pi/libs/ilclient -I/opt/vc/include/ -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux -I./ -I/opt/vc/src/hello_pi/libs/ilclient -I/opt/vc/src/hello_pi/libs/vgfont -g -c audio.c -o audio.o -Wno-deprecated-declarations cc -o h264.bin -Wl,--whole-archive h264.o audio.o -lilclient -lavformat -lavcodec -lavutil -lasound -L/opt/vc/lib/ -lbrcmGLESv2 -lbrcmEGL -lopenmaxil -lbcm_host -lvcos -lvchiq_arm -lpthread -lrt -lm -L/opt/vc/src/hello_pi/libs/ilclient -L/opt/vc/src/hello_pi/libs/vgfont -Wl,--no-whole-archive -rdynamic rm h264.o audio.o make[1]: Leaving directory '/home/idimou/lazycast/h264' make -C control/. make[1]: Entering directory '/home/idimou/lazycast/control' cc -O2 -Wall -g -c controlhidc.c -o controlhidc.o controlhidc.c: In function ‘main’: controlhidc.c:227:20: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 2 has type ‘char ’ [-Wformat=] printf("sourceip:%u\n", sourceip); ~^
~~~~ %s cc -o controlhidc.bin controlhidc.o -L /usr/X11R6/lib -lX11 -lm cc -O2 -Wall -g -c control.c -o control.o control.c: In function ‘main’: control.c:198:13: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘KeySym’ {aka ‘long unsigned int’} [-Wformat=] printf("%x\n", keysym); ~^~~~ %lx cc -o control.bin control.o -L /usr/X11R6/lib -lX11 -lm rm control.o controlhidc.o make[1]: Leaving directory '/home/idimou/lazycast/control'`After this of course if I try to run all.sh I get a segmentation fault: ./all.sh: line 126: 4817 Segmentation fault sudo wpa_cli -i$p2pdevinterface p2p_find type=progessive ./all.sh: line 126: 4827 Segmentation fault sudo wpa_cli -i$p2pdevinterface set device_name "$(uname -n)" ./all.sh: line 126: 4836 Segmentation fault sudo wpa_cli -i$p2pdevinterface set device_type 7-0050F204-1 ./all.sh: line 126: 4845 Segmentation fault sudo wpa_cli -i$p2pdevinterface set p2p_go_ht40 1 ./all.sh: line 126: 4854 Segmentation fault sudo wpa_cli -i$p2pdevinterface wfd_subelem_set 0 000600111c44012c ./all.sh: line 126: 4863 Segmentation fault sudo wpa_cli -i$p2pdevinterface wfd_subelem_set 1 0006000000000000 ./all.sh: line 126: 4872 Segmentation fault sudo wpa_cli -i$p2pdevinterface wfd_subelem_set 6 000700000000000000
Same when I try to clone and use v1.0.1.
Have you tested in on a pi zero? What can I do to make it?
Should I try it on a pi 4?