https://community.kde.org/index.php?title=Calligra/Building/3/Developing_With_QtCreator&feed=atom&action=historyCalligra/Building/3/Developing With QtCreator - Revision history2024-03-28T11:30:37ZRevision history for this page on the wikiMediaWiki 1.40.2https://community.kde.org/index.php?title=Calligra/Building/3/Developing_With_QtCreator&diff=43648&oldid=prevJstaniek at 07:34, 3 August 20152015-08-03T07:34:52Z<p></p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 07:34, 3 August 2015</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l1">Line 1:</td>
<td colspan="2" class="diff-lineno">Line 1:</td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>{{Note<del style="font-weight: bold; text-decoration: none;">:</del>TODO: port to KF5}}</div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>{{Note<ins style="font-weight: bold; text-decoration: none;">|</ins>TODO: port to KF5}}</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>If everything is setup properly as explained here, you will be able to run Calligra apps and debug them from within Qt Creator. Git integration works too.</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>If everything is setup properly as explained here, you will be able to run Calligra apps and debug them from within Qt Creator. Git integration works too.</div></td></tr>
</table>Jstaniekhttps://community.kde.org/index.php?title=Calligra/Building/3/Developing_With_QtCreator&diff=43646&oldid=prevJstaniek: Created page with "{{Note:TODO: port to KF5}} If everything is setup properly as explained here, you will be able to run Calligra apps and debug them from within Qt Creator. Git integration wor..."2015-08-03T07:14:55Z<p>Created page with "{{Note:TODO: port to KF5}} If everything is setup properly as explained here, you will be able to run Calligra apps and debug them from within Qt Creator. Git integration wor..."</p>
<p><b>New page</b></p><div>{{Note:TODO: port to KF5}}<br />
<br />
If everything is setup properly as explained here, you will be able to run Calligra apps and debug them from within Qt Creator. Git integration works too.<br />
<br />
{{Note|First, you have to get the source of Calligra and install all dependencies. That is described best in the [[Calligra/Building/2|Building Calligra 2.x]] article, which would be anyway a must read, if you are building the first time. Following recipes were tested for Calligra 2.x , QtCreator 2.x or newer and Qt 4.8.x. All paths here are kept similar to these explained on the ''Building Calligra'' page but make sure you use correct ones. }}<br />
{{Note|This is a simplified Calligra- and CMake- specific recipe, more extensive documentation is at [https://qt-project.org/doc/qtcreator-3.2/creator-project-cmake.html].}}<br />
<br />
# Start Qt Creator, use ''File -> Open File or Project'' from the menu and select CMakeLists.txt file which is in the root of your Calligra source tree directory. The CMake wizard should start.<br />
# In the ''Build Location'' wizard's page you can set a custom build directory. Better do not use the proposed one (/path/to/source/qtcreator-build) but /home/YOURLOGIN/kde4/build/calligra or something like this. If you built this code from command line before, it's best idea to use the same build dir as before. Thus you can use Creator-based and command line-based builds exchangeably.<br />
# Click ''Next''. On the ''Run CMake'' wizard page you should add at least the install-dir build option:<br><br><pre>-DCMAKE_INSTALL_PREFIX=/home/YOURLOGIN/kde4/inst</pre>Depending on what kind of build you want, you can also append these options:<br />
#* For a build where you want to be able to obtain backtraces (good for bugfixing or reporting bugs)<br><pre>-DCMAKE_BUILD_TYPE=DebugFull</pre><br />
#* For building tests as well append <br><pre>-DKDE4_BUILD_TESTS=ON</pre><br />
#* For a fast running release build (not really useful for development).<br><pre>-DKDE4_BUILD_TESTS=0 -DBUILD_TESTS=0 -DCMAKE_BUILD_TYPE=Release</pre><br />
# After finishing the wizard, change to the Project view.<br />
# Edit the ''Make'' build step and set the ''Additional arguments'' to:<br/><pre>-j5 install</pre> (change 5 to other number as explained at [https://community.kde.org/Calligra/Building#Speed_up])<br />
# Add the variables to the build environment as listed below. You can use the ''Batch Edit'' button for convenience. See also [http://qt-project.org/doc/qtcreator-3.2/creator-build-settings.html#build-environment Qt Creator Manual]. Note you cannot use $HOME and other variables there. Compare to [https://techbase.kde.org/Getting_Started/Build/Environment]. Replace paths containing lib64 with other if your OS is 32 bit.<br><pre>CMAKE_PREFIX_PATH=/home/YOURLOGIN/kde4/inst</pre><pre>KDEDIRS=/home/YOURLOGIN/kde4/inst</pre><pre>KDEHOME=/home/YOURLOGIN/kde4/inst/.kde4</pre><pre>KDESYCOCA=/var/tmp/kdedev-YOURLOGIN/ksycoca</pre><pre>KDETMP=/tmp/kdedev-YOURLOGIN</pre><pre>KDEVARTMP=/var/tmp/kdedev-YOURLOGIN</pre><pre>KDE_INSTALL_PREFIX=/home/YOURLOGIN/kde4/inst</pre><pre>LD_LIBRARY_PATH=/home/YOURLOGIN/kde4/inst/lib64</pre><pre>PATH=/home/YOURLOGIN/kde4/inst/bin:/usr/bin:/usr/local/bin:/bin:/usr/bin/X11:/usr/X11R6/bin</pre><pre>PKG_CONFIG_PATH=/home/YOURLOGIN/kde4/inst/lib64/pkgconfig</pre><pre>QT_PLUGIN_PATH=/home/YOURLOGIN/kde4/inst/lib64/kde4/plugins</pre><br />
# Assure, that in ''Run Settings'' ''Run Environment'' is set to ''Use Build Environment''<br />
# Now in project's ''Run Settings'' you can select in the ''Run configuration'' which program should start when you execute ''Run'' or ''Debug''.</div>Jstaniek