Recently I made a tutorial about Mirroring iPad/iPhone screen on Linux. The post has gained some momentum and I’ve received a lot of messages from some users who have ran into problems either during the installation of UxPlay or while using it. I did manage to solve some of them, so I decided to compile the solution to the most common problems in a single post.
The CXX compiler identification is unknown CMake Error at CMakeLists.txt:3 (project): No CMAKE_CXX_COMPILER could be found.
You must install the basic package needed to compile a Debian package. In a Debian based distro, type
sudo apt-get install build-essential
Green or Black Screen
In this issue, the mirroring window pops up but with a green or black screen instead of the iPad/iPhone screen. Installing the package gstreamer1.0-plugins-bad worked for some users. If you are using a Debian based distro, just type
sudo apt-get install gstreamer1.0-plugins-bad
Some users had to installing a larger list of plugins for the gstreamer. Below is a command to install a other plugins that could make things work
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
NVIDIA Graphics card
Some users running on NVidia GPUs had problems like the green screen that were solved only after switching from the NVidia GPU to the onboard gpu, like a Intel’s one. If you are using the Nvidia official driver, you can do this by opening the NVIDIA X Server Settings in your applications menu or running it through the Terminal
There you can switch the GPUs. You will need to reboot in order to the settings take effect.
Mirroring the mirror window on Zoom
Some users did not manage to share the mirror window when using meeting apps like Zoom. The window did not appear in the list of open windows. A workaround is the following one. With the mirror window running, open a Terminal and type
xdotool selectwindow set_window --name "mirror"
And then click on your mirror window. This should change the window’s title to “mirror” and will make it appear in the list of open windows when you share a window on Zoom.
Screenshots: UxPlay in action