質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
Raspbian

Raspbianは、DebianベースのRaspberry Pi用ディストリビューション。ハードウェア浮動小数点演算を有効にすることが可能で、Webブラウズなどの速度を向上できます。

シェルスクリプト

シェルスクリプトは、UNIX系のOSもしくはコマンドラインインタプリタ向けに記述されたスクリプト。bash/zshといったシェルによって実行されるため、このように呼ばれています。バッチ処理などに使用されており、テキストファイルに書かれた命令を順に実行します。

Android

Androidは、Google社が開発したスマートフォンやタブレットなど携帯端末向けのプラットフォームです。 カーネル・ミドルウェア・ユーザーインターフェイス・ウェブブラウザ・電話帳などのアプリケーションやソフトウェアをひとつにまとめて構成。 カーネル・ライブラリ・ランタイムはほとんどがC言語/C++、アプリケーションなどはJavaSEのサブセットとAndroid環境で書かれています。

キャスト

キャストとは、オブジェクトの型の変換が許可された場合に、明白に別の型への変換を行うプロセスのことです。

Raspberry Pi

Raspberry Piは、ラズベリーパイ財団が開発した、名刺サイズのLinuxコンピュータです。 学校で基本的なコンピュータ科学の教育を促進することを意図しています。

Q&A

解決済

1回答

3323閲覧

RaspberryPiZeroでlazycastを使いたい

退会済みユーザー

退会済みユーザー

総合スコア0

Raspbian

Raspbianは、DebianベースのRaspberry Pi用ディストリビューション。ハードウェア浮動小数点演算を有効にすることが可能で、Webブラウズなどの速度を向上できます。

シェルスクリプト

シェルスクリプトは、UNIX系のOSもしくはコマンドラインインタプリタ向けに記述されたスクリプト。bash/zshといったシェルによって実行されるため、このように呼ばれています。バッチ処理などに使用されており、テキストファイルに書かれた命令を順に実行します。

Android

Androidは、Google社が開発したスマートフォンやタブレットなど携帯端末向けのプラットフォームです。 カーネル・ミドルウェア・ユーザーインターフェイス・ウェブブラウザ・電話帳などのアプリケーションやソフトウェアをひとつにまとめて構成。 カーネル・ライブラリ・ランタイムはほとんどがC言語/C++、アプリケーションなどはJavaSEのサブセットとAndroid環境で書かれています。

キャスト

キャストとは、オブジェクトの型の変換が許可された場合に、明白に別の型への変換を行うプロセスのことです。

Raspberry Pi

Raspberry Piは、ラズベリーパイ財団が開発した、名刺サイズのLinuxコンピュータです。 学校で基本的なコンピュータ科学の教育を促進することを意図しています。

0グッド

0クリップ

投稿2021/02/20 14:26

前提・実現したいこと

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

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答1

0

ベストアンサー

/usr/bin/ld: cannot find -lilclientってエラーが出てるので、手順抜かしてるだけだと思います。

(github.com/homeworkc/lazycast - README.md)Build Binaries

cd /opt/vc/src/hello_pi/libs/ilclient/
make
cd /opt/vc/src/hello_pi/hello_video
make

投稿2021/02/20 15:20

Y.H.

総合スコア7914

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

退会済みユーザー

退会済みユーザー

2021/02/21 08:31

ご指摘の通り手順をおさえてやりましたが、依然としてエラーが出ています。 以下エラーです。 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 rm player.o make[1]: Leaving directory '/home/pi/lazycast/player' make -C h264/. make[1]: Entering directory '/home/pi/lazycast/h264' 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 h264.c -o h264.o -Wno-deprecated-declarations h264.c: In function ‘video_decode_test’: h264.c:428:31: warning: passing argument 2 of ‘audioplay_create’ from incompatible pointer type [-Wincompatible-pointer-types] if (audioplay_create(client, &audio_render, list, 4) != 0) ^~~~~~~~~~~~~ In file included from h264.c:43: audio.h:1:40: note: expected ‘COMPONENT_T *’ {aka ‘struct _COMPONENT_T *’} but argument is of type ‘COMPONENT_T **’ {aka ‘struct _COMPONENT_T **’} int32_t audioplay_create(ILCLIENT_T *, COMPONENT_T *, COMPONENT_T **, int); ^~~~~~~~~~~~~ h264.c:509:10: warning: unused variable ‘startindicator’ [-Wunused-variable] int startindicator = buffer[1] & 0x40; ^~~~~~~~~~~~~~ h264.c:485:18: warning: unused variable ‘oldlen’ [-Wunused-variable] unsigned char* oldlen = NULL; ^~~~~~ h264.c:484:22: warning: unused variable ‘actuallen’ [-Wunused-variable] int peslen = -100, actuallen = 0; ^~~~~~~~~ h264.c:484:7: warning: unused variable ‘peslen’ [-Wunused-variable] int peslen = -100, actuallen = 0; ^~~~~~ h264.c: In function ‘main’: h264.c:648:38: warning: passing argument 3 of ‘pthread_create’ from incompatible pointer type [-Wincompatible-pointer-types] if (pthread_create(&npthread, NULL, addnullpacket, beg) != 0) ^~~~~~~~~~~~~ In file included from h264.c:35: /usr/include/pthread.h:236:15: note: expected ‘void * (*)(void *)’ but argument is of type ‘void * (*)(rtppacket *)’ {aka ‘void * (*)(struct srtppacket *)’} void *(*__start_routine) (void *), ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ h264.c:650:37: warning: passing argument 3 of ‘pthread_create’ from incompatible pointer type [-Wincompatible-pointer-types] if (pthread_create(&dthread, NULL, video_decode_test, beg) != 0) ^~~~~~~~~~~~~~~~~ In file included from h264.c:35: /usr/include/pthread.h:236:15: note: expected ‘void * (*)(void *)’ but argument is of type ‘int (*)(rtppacket *)’ {aka ‘int (*)(struct srtppacket *)’} void *(*__start_routine) (void *), ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
退会済みユーザー

退会済みユーザー

2021/02/21 08:32

続きです h264.c: In function ‘sendtodecoder’: h264.c:177:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ h264.c: In function ‘video_decode_test’: h264.c:534:10: warning: ‘buf’ may be used uninitialized in this function [-Wmaybe-uninitialized] sendtodecoder(video_decode, video_scheduler, video_render, tunnel, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ buf, &beg, scan, &port_settings_changed, &first); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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 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/pi/lazycast/h264' make -C control/. make[1]: Entering directory '/home/pi/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/pi/lazycast/control' 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 wlan0: freq=2452 Setting up wifi p2p with freq=2452 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 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 ---M3---> 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 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---> SET_PARAMETER rtsp://localhost/wfd1.0 RTSP/1.0 CSeq: 2 Content-Length: 249 Content-Type: text/parameters wfd_audio_codecs: LPCM 00000002 00 wfd_video_formats: 00 00 02 08 00000080 00000000 00000000 00 0000 0000 00 none none wfd_presentation_URL: rtsp://192.168.173.80/wfd1.0/streamid=0 none wfd_client_rtp_ports: RTP/AVP/UDP;unicast 1028 0 mode=play <-------- RTSP/1.0 200 OK CSeq: 3 ---M5---> SET_PARAMETER rtsp://localhost/wfd1.0 RTSP/1.0 CSeq: 3 Content-Length: 27 Content-Type: text/parameters wfd_trigger_method: SETUP <-------- 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 --------> RTSP/1.0 200 OK CSeq: 5 Date: Sun, Feb 21 2021 08:21:15 GMT Session: 0000000d Transport: RTP/AVP/UDP;unicast;client_port=1028;server_port=19022 ['RTSP/1.0 200 OK\r\nCSeq: 5\r\nDate: Sun, Feb 21 2021 08:21:15 GMT\r\nSession: 0000000d\r\nTransport: RTP/AVP/UDP', 'unicast', 'client_port=1028', 'server_port=19022\r\n\r\n'] ['server_port=19022\r\n\r\n'] 19022 <---M7--- PLAY rtsp://192.168.173.80/wfd1.0/streamid=0 RTSP/1.0 CSeq: 6 Session: 0000000d --------> RTSP/1.0 200 OK CSeq: 6 Date: Sun, Feb 21 2021 08:21:15 GMT ---- Negotiation successful ---- 192.168.173.1 ./h264/h264.bin 42284 0 192.168.173.1 & SET_PARAMETER rtsp://localhost/wfd1.0 RTSP/1.0 CSeq: 4 Session: 0000000d Content-Length: 30 Content-Type: text/parameters wfd_trigger_method: TEARDOWN PIN: 31415926 ^CTraceback (most recent call last): File "./d2.py", line 58, in <module> sock.connect(server_address) File "/usr/lib/python2.7/socket.py", line 228, in meth return getattr(self._sock,name)(*args) KeyboardInterrupt ^C
Y.H.

2021/02/21 21:37 編集

ざっと眺めただかですがエラーなど出てないように見えます。CTRL+Cで処理中に強制姓終了されてるし。 ご自身でなぜメッセージ読まれないのでしょうか?
Y.H.

2021/02/21 12:10

付き合いきれないのでここまでとします。
退会済みユーザー

退会済みユーザー

2021/02/23 05:38

ありがとうございました。
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問