我正在尝试在 Ubuntu 上打开 Desktop-Head-Unit 可执行文件,并在尝试时获得以下输出:
$ ./desktop-head-unit
./desktop-head-unit: error while loading shared libraries: libSDL2_ttf-2.0.so.0: cannot open shared object file: No such file or directory
我怎样才能解决这个问题?
答案1
我通过运行解决了这个问题
sudo apt install libsdl2-ttf-2.0-0
然后我遇到了另一个错误,并通过
sudo apt-get install libportaudio2
现在我得到了这个:
$ ./desktop-head-unit
ALSA lib pcm_dmix.c:1052:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm_route.c:867:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_dmix.c:1052:(snd_pcm_dmix_open) unable to open slave
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
ALSA lib pcm.c:8306:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:8306:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:8306:(snd_pcm_recover) underrun occurred
Connecting over ADB to localhost:5277...failed.
Failed to start Google Automotive Link.
我正在做。
./desktop-head-unit --adb 5554
运行设置 tcpip 端口也是一个好主意。