====== Errors when building Psi+ ======
===== Description of some errors =====
==== No declaration PSI_LIBDIR ====
The compiler issues a message:
src/applicationinfo.cpp:257: error: no declaration 'PSI_LIBDIR' in this scope
The error occurs when building the OS Linux, if you **do not use the script configure**.
If you use **configure** variable //PSI_LIBDIR// declared in accordance with the parameter //-libdir=path//, is transmitted to the script.
If used to build a utility **qmake** or development environment **QtCreator** then the result would lead to a error because these programs do not use **configure** when building project.
__**Solution**__:
In the file **src/applicationinfo.cpp** after strings:
#if defined(Q_WS_X11) && !defined(PSI_DATADIR)
#define PSI_DATADIR "/usr/local/share/psi"
#endif
Append declaration //PSI_LIBDIR//, substituting the desired value:
#if defined(Q_WS_X11) && !defined(PSI_LIBDIR)
#define PSI_LIBDIR "/usr/lib/psi"
#endif