I mistakenly deleted all qt5 related files in /usr/lib/x86_64-linux-gnu. So, I installed qt5 again using
sudo apt-get install qt5-default
sudo apt-get install qtdeclarative5-dev
But, applications that use qt5 complains that somethings are missing. For example,
$ qtcreator
qtcreator: error while loading shared libraries: libQt5Test.so.5: cannot open shared object file: No such file or directory
$ qtpaths
/usr/lib/x86_64-linux-gnu/qt5/bin/qtpaths: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.6' not found (required by /usr/lib/x86_64-linux-gnu/qt5/bin/qtpaths)
/usr/lib/x86_64-linux-gnu/qt5/bin/qtpaths: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5' not found (required by /usr/lib/x86_64-linux-gnu/qt5/bin/qtpaths)
$ cmake-gui
This application failed to start because it could not find or load the Qt platform plugin "xcb".
How do I correctly reinstall qt5 and make these applications working?
Thank you in advance!