Check system version
1. cat /proc/version
[email protected]:~$ cat /proc/version
Linux version 3.16.0-30-generic ([email protected]) (gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) ) #40~14.04.1-Ubuntu SMP Thu Jan 15 17:45:15 UTC 2015
uname -a
[email protected]:~/Helloworld$ uname -a
Linux mike-ThinkPad-X220 4.4.0-47-generic #68-Ubuntu SMP Wed Oct 26 19:39:52 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
2. check disk usage
[email protected]:~$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 290G 8.8G 266G 4% /
none 4.0K 0 4.0K 0% /sys/fs/cgroup
udev 2.0G 4.0K 2.0G 1% /dev
tmpfs 394M 1.2M 393M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 2.0G 160K 2.0G 1% /run/shm
none 100M 96K 100M 1% /run/user
3. run .run file
chmod +x qt-opensource-linux-x64-5.7.0.run
sh qt-opensource-linux-x64-5.7.0.run
4. install pysvn
sudo apt-get install python-svn
sudo apt-get install svn-workbench
5. copy libs to usr
sudo cp liblensdetect.so* /usr/local/lib/
sudo ldconfig
6. Add addtional parameter for QT build
CONFIG+=linux
7. Error: Jump to case label
cannot declare local variables in case label without brakets. because http://stackoverflow.com/questions/92396/why-cant-variables-be-declared-in-a-switch-statement