우분투 20.04 기준으로 아이폰 에어플레이 화면을 미러링하는 방법이다.
설치 방법은 어렵지 않으나 설치 과정에서 에러가 발생하는 문제가 있었기에 경험을 공유하고자 한다.
우선 기본 설치는 github 주소에서 zip 파일을 다운받는다.
https://github.com/antimof/UxPlay
antimof/UxPlay
AirPlay Unix mirroring server. Contribute to antimof/UxPlay development by creating an account on GitHub.
github.com
압축을 해지하고 터미널에서 압축을 해지한 폴더로 이동한뒤에 아래의 명령어를 수행한다.
|
다만 여기에서 cmake 를 할 때에 문제점이 있었다.
우선 cmake 가 없다면 다음과 같이 설치한다.
sudo apt install cmake
그런데도 아래와 같이 컴파일 과정에서 에러가 발생했다.
해당 문제에 대한 답변을 찾고 해결하였다. https://stackoverflow.com/a/66562219
"cc1plus: error: bad value (‘tigerlake’) for ‘-march=’ switch" compilation error
cc1plus: error: bad value (‘tigerlake’) for ‘-march=’ switch cc1plus: note: valid arguments to ‘-march=’ switch are: nocona core2 nehalem corei7 westmere sandybridge corei7-avx ivybridge core-avx-i
stackoverflow.com
gcc, g++ 10버전으로 사용하도록 한다.
빌드가 완료되어 실행을 하였지만, time out 이 발생하고 화면이 뜨지 않는다.
github 에 올라와 있는 package를 다운받았으나, gstream의 동작이 안되서 화면이 뜨지 않았다.
아래의 링크에 따라서 다음 package들을 설치한다.
sudo apt-get install libgstreamer1.0-0 gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0-doc gstreamer1.0-tools gstreamer1.0-x gstreamer1.0-alsa gstreamer1.0-gl gstreamer1.0-gtk3 gstreamer1.0-qt5 gstreamer1.0-pulseaudio |
https://github.com/FD-/RPiPlay/pull/146#issuecomment-675134133
Merge UxPlay gstreamer renderer into RPiPlay, allowing generic linux builds by dougg3 · Pull Request #146 · FD-/RPiPlay
I stumbled upon issue #98 where @antimof announced the creation of UxPlay, which is a port of RPiPlay that uses gstreamer for rendering rather than Pi-specific libraries. It works really well on my...
github.com
./uxplay 을 실행하고 아이폰에서 airplay 미러링 디바이스를 선택하고나면
아래와 같이 연결된 화면을 확인할 수 있다.