前提・実現したいこと
raspberrypi zero WHでlazycastを使おうとしたときのエラーです。
raspi0でlasycastを用いてAndroidスマートフォンを接続したいと考えています。
makeでエラーが起きているのですが、わかる方がおりましたらよろしくお願いします。
発生している問題・エラーメッセージ
pi@raspberrypi:~/lazycast $ make make -C player/. make[1]: Entering directory '/home/pi/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 -D__STDC_CONSTANT_MACROS -D__STDC_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_COMPONENTTYPE*clock = 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 *), ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ player.c: In function ‘copy_into_buffer_and_empty’: player.c:169:10: warning: ‘r’ may be used uninitialized in this function [-Wmaybe-uninitialized] return r; ^ cc -o player.bin -Wl,--whole-archive player.o -lilclient -lavformat -lavcodec -lavutil -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 /usr/bin/ld: cannot find -lilclient collect2: error: ld returned 1 exit status make[1]: *** [Makefile.include:19: player.bin] Error 1 rm player.o make[1]: Leaving directory '/home/pi/lazycast/player' make: *** [Makefile:5: player/.] Error 2 pi@raspberrypi:~/lazycast $ ./all.sh p2p-dev-wlan0 wlan0 Selected interface 'p2p-dev-wlan0' Available interfaces: p2p-dev-wlan0 wlan0 OK OK OK OK OK OK OK p2p-dev-wlan0 Selected interface 'p2p-wlan0-0' Available interfaces: p2p-wlan0-0 p2p-dev-wlan0 wlan0 Selected interface 'p2p-wlan0-0' Available interfaces: p2p-wlan0-0 p2p-dev-wlan0 wlan0 p2p-wlan0-0 The display is ready Your device is called: raspberrypi PIN: 31415926 PIN: 31415926 ---M1---> OPTIONS * RTSP/1.0 CSeq: 0 Require: org.wfa.wfd1.0 <-------- RTSP/1.0 200 OK CSeq: 1 Public: org.wfa.wfd1.0, SET_PARAMETER, GET_PARAMETER <---M2--- OPTIONS * RTSP/1.0 CSeq: 1 Require: org.wfa.wfd1.0 --------> RTSP/1.0 200 OK CSeq: 1 Public: org.wfa.wfd1.0, GET_PARAMETER, SET_PARAMETER, SETUP, PLAY, PAUSE, TEARDOWN GET_PARAMETER rtsp://localhost/wfd1.0 RTSP/1.0 CSeq: 1 Content-Length: 133 Content-Type: text/parameters wfd_audio_codecs wfd_video_formats wfd_content_protection wfd_client_rtp_ports wfd_standby_resume_capability wd_initial_buffer ---M3---> Written 256 bytes to edid.txt <-------- RTSP/1.0 200 OK CSeq: 2 Content-Type: text/parameters Content-Length: 461 wfd_client_rtp_ports: RTP/AVP/UDP;unicast 1028 0 mode=play wfd_audio_codecs: LPCM 00000002 00 wfd_video_formats: 00 00 02 10 0001FEFF 3FFFFFFF 00000FFF 00 0000 0000 00 none none wfd_3d_video_formats: none wfd_coupled_sink: none wfd_connector_type: 05 wfd_uibc_capability: input_category_list=GENERIC, HIDC;generic_cap_list=Keyboard, Mouse;hidc_cap_list=Keyboard/USB, Mouse/USB;port=none wfd_standby_resume_capability: none wfd_content_protection: none ---M4---> <-------- RTSP/1.0 200 OK CSeq: 3 ---M5---> <-------- RTSP/1.0 200 OK CSeq: 4 <---M6--- SETUP rtsp://192.168.173.80/wfd1.0/streamid=0 RTSP/1.0 CSeq: 5 Transport: RTP/AVP/UDP;unicast;client_port=1028 --------> [''] [] Traceback (most recent call last): File "./d2.py", line 223, in <module> serverport=serverport[-1] IndexError: list index out of range PIN: 31415926
該当のソースコード
https://github.com/homeworkc/lazycast/blob/master/all.sh https://github.com/homeworkc/lazycast/blob/master/d2.py
試したこと
起動した後、初期設定をし、英語のままで使用しました。
その後以下のように行いました。
sudo apt update wget clone https://github.com/homeworkc/lazycast sudo apt install libx11-dev linasound2-dev libavformat-dev libavcodec-dev sudo apt install network-manager network-manager-gnome openvpn openvpn-systemd-resolved network-manager-openvpn network-manager-openvpn-gnome sudo reboot cd lazycast make
githubに書いてあるwpasupplicant_2.4-1+deb9u6_armhf.debでダウングレードもしたが、その時は実行後すぐにsegmantation errorと出ます。
補足情報(FW/ツールのバージョンなど)
raspberrypi zero WH
os:2021-01-11-raspios-buster-armhf
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
退会済みユーザー
2021/02/21 08:31
退会済みユーザー
2021/02/21 08:32
2021/02/21 21:37 編集
2021/02/21 12:10
退会済みユーザー
2021/02/23 05:38