Hacking:Building: Difference between revisions

Line 53:
 
== Configuring and building ==
'''The installed toolchains have to match the one Qt was compiled with.'''
 
Depend on your purposes You can build Valentina with different keys:
 
* noTests - disable compiling tests. Use if you don't need tests and what to speed up compilation time.
* noRunPath - disable adding [https://en.wikipedia.org/wiki/Rpath Rpath attribute]. Works only for Linux.
* no_ccache - have sens only on Linux. Disable using ccache for speed up compilation. [https://en.wikipedia.org/wiki/Precompiled_header PCH] will be used instead.
* noDebugSymbols - By default for release mode debug symbols will be placed outside of binary file. We use them for debugging and sending crash reports on Windows. Have sens only for Linux/Windows with GCC.
* debug - Compile the project in debug mode.
 
By default all keys are disabled.
 
<source lang=bash>
cd $SOURCE_DIRECTORY
qmake "CONFIG += noTests noRunPath no_ccache noDebugSymbols" Valentina.pro -r
qmake -r
make (or mingw32-make or nmake or jom, depending on your platform)
</source>
 
'''Note:.''' In order to build and use Valentina, the PATH environment variable needs to be extended:
 
PATH - to locate qmake, moc and other Qt tools This is done by adding c:\Qt\%VERSION%\bin to the PATH variable.