GUI: Update readme-file for new Qt download address etc.

This commit is contained in:
Kimmo Varis 2012-09-09 14:39:57 +03:00
parent ce862e02aa
commit 9a52412d8f
1 changed files with 26 additions and 11 deletions

View File

@ -1,30 +1,30 @@
cppcheck GUI Cppcheck GUI
============ ============
This is a GUI for cppcheck. It allows selecting folder or set of files to check This is a GUI for cppcheck. It allows selecting folder or set of files to check
with cppcheck and shows list of found errors. with cppcheck and shows list of found errors.
Running Running
------- -------
You need QT4 libraries installed in your system. Packages/files to install You need Qt4 libraries installed in your system. Packages/files to install
depends on your operating system: depends on your operating system:
- Windows: download QT4 from http://qt.nokia.com/ - Windows: download Qt4 from http://qt-project.org/downloads
- Linux: install QT4 using your package manager, look for packages having QT4 - Linux: install Qt4 using your package manager, look for packages having Qt4
in their name, e.g. for Ubuntu install libqt4-core, libqt4-gui and libqt4-xml in their name, e.g. for Ubuntu install libqt4-core and libqt4-gui.
Compiling Compiling
--------- ---------
Windows: Windows:
- The easy way is to download Qt SDK from http://qt.nokia.com/ and use Qt - The easy way is to download Qt SDK from http://qt-project.org/downloads and
Creator and/or command line tools to build the GUI. use QtCreator and/or command line tools to build the GUI. Be careful to
- The harder way is to download QT sources and build QT with Visual Studio download the correct version of library for your compiler!
(Express Edition works). Compiling QT alone may take over 4 hours! - The harder way is to download Qt sources and build Qt with Visual Studio
(Express Edition works). Compiling Qt alone may take over 4 hours!
Linux: Linux:
- Install QT development packages (make sure qmake -tool gets installed!). The - Install Qt development packages (make sure qmake -tool gets installed!). The
names depend on distribution, but e.g. for Ubuntu the needed packages are: names depend on distribution, but e.g. for Ubuntu the needed packages are:
* libqt4-core * libqt4-core
* libqt4-gui * libqt4-gui
* libqt4-xml
* libqt4-dev * libqt4-dev
* qt4-dev-tools * qt4-dev-tools
* qt4-qmake * qt4-qmake
@ -46,3 +46,18 @@ builds own binary. Test is run by simple running that binary. The binary also
has several options to select tests etc. You can get the help by running has several options to select tests etc. You can get the help by running
"binaryname -help" -command. "binaryname -help" -command.
Translations
------------
The GUI is translated to several languages. Qt comes with two tools to update
and compile the translations. lupdate updates translations files from the code
and lrelease compiles translation files use with the executable.
To update translations:
- run lupdate gui.pro to update the translation files to match the code. This
command updates all the .ts files. Which can be then edited to translate
the application.
To compile translations:
- run lrelease gui.pro to compile .ts files to .qm files which are used by the
executable.