错误信息:
1. could not initialize sdl - no available video device (did you set the display variable?)
2. SDL_OpenAudio (2 channels, 44100 Hz): No such audio device
SDL_OpenAudio (1 channels, 44100 Hz): No such audio device
No more combinations to try, audio open failed
No codec could be found with id 61
Failed to open file '/mnt/hgfs/ubuntuWorkSpace/5.mp3' or configure filtergraph
解决方案:
sudo apt-get install libx11-dev
sudo apt-get install xorg-dev
sudo apt-get install libasound2-dev libpulse-dev
进入SDL2.0的目录:
make distclean
../../configure --host=x86-64_unknown-linux-gnu --enable-video-x11 --enable-x11-shared --enable-video-x11-vm
make -j4
sudo make install
注意要执行一下:export DISPLAY=:0
在vmware下,-j8老是死机,从此不喜欢j8
在rk3399上:
sudo apt build-dep libsdl2
解决以下问题:
Using libsamplerate : NO
Using libudev : YES --安装前为NO
Using dbus : YES --安装前为NO
Using ime : YES
Using ibus : NO
Using fcitx : YES --安装前为NO