User:Nmariusp: Difference between revisions
Appearance
Reorder page |
|||
(17 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
My procedure about how I use [[User:Nmariusp/Qt_Creator|Qt Creator]] | |||
My procedure about how I use [[User:Nmariusp/Clion|JetBrains CLion]] | |||
[[User:Nmariusp/Easy|I know how to program using C++. Can I do a KDE MR in less than 2 hours?]] | |||
[[User:Nmariusp/More|Advanced topics about how to start programming for KDE]] | |||
== How I install kde-builder == | |||
Install kde-builder. | |||
<pre> | <pre> | ||
# Edit the file ~/.config/kde-builder.yaml as needed. | |||
# In ~/.config/kde-builder.yaml , in the "global:" section: | |||
# cmake-options: > | |||
# -DCMAKE_BUILD_TYPE=Debug | |||
# -DBUILD_PYTHON_BINDINGS=OFF | |||
# In ~/.config/kde-builder.yaml , at the end of the "global:" section: | |||
# ignore-projects: | |||
# - gpgme | |||
# - breeze-icons # From time to time, I build breeze-icons. E.g. once per week. | |||
# - qcoro | |||
# kde-builder is installed. | |||
# Use kde-builder instead of kdesrc-build. The command lines are the same. | |||
# | |||
kde-builder kconfig | |||
kde-builder kcalc | |||
kde-builder --run kcalc | |||
# Run kcalc with the KDE theme that is used by your KDE Plasma desktop. | |||
kde-builder plasma-integration | |||
kde-builder --run kcalc | |||
# Run kcalc with most KDE so library files from ~/kde/usr, not from /usr. | |||
# See https://www.youtube.com/watch?v=Xjb09xBIcPU | |||
kde-builder frameworks | |||
kde-builder --run kcalc | |||
# | |||
# | |||
</pre> | </pre> | ||
== | == More topics == | ||
=== How to write the entire verbose STDOUT and STDERR of kdesrc-build to a file === | |||
<pre> | <pre> | ||
script -eq -c "kdesrc-build kconfig --no-src --no-include-dependencies --refresh-build --debug" ~/a.txt ; sed -i $'s/\033\[[0-9]\+m//g' ~/a.txt | |||
</pre> | </pre> | ||
The <code>sed</code> part removes the terminal ANSI color escape codes. | |||
<code>script -eq -c "command" ~/a.txt</code> is better than <code>command |& tee ~/a.txt</code> because kdesrc-build behaves differently if it is run in a user interactive terminal session (<code>isatty</code>). | |||
If using <code>tee</code>, part of the output of kdesrc-build will not be written to file. E.g. the output of the <code>cmake</code> step, the final part of the <code>make -j</code> step, the final part of the <code>make install</code> step. | |||
[[User:Nmariusp/Start|How to start programming for KDE]] | |||
Latest revision as of 09:52, 31 May 2025
My procedure about how I use Qt Creator
My procedure about how I use JetBrains CLion
I know how to program using C++. Can I do a KDE MR in less than 2 hours?
Advanced topics about how to start programming for KDE
How I install kde-builder
Install kde-builder.
# Edit the file ~/.config/kde-builder.yaml as needed. # In ~/.config/kde-builder.yaml , in the "global:" section: # cmake-options: > # -DCMAKE_BUILD_TYPE=Debug # -DBUILD_PYTHON_BINDINGS=OFF # In ~/.config/kde-builder.yaml , at the end of the "global:" section: # ignore-projects: # - gpgme # - breeze-icons # From time to time, I build breeze-icons. E.g. once per week. # - qcoro # kde-builder is installed. # Use kde-builder instead of kdesrc-build. The command lines are the same. kde-builder kconfig kde-builder kcalc kde-builder --run kcalc # Run kcalc with the KDE theme that is used by your KDE Plasma desktop. kde-builder plasma-integration kde-builder --run kcalc # Run kcalc with most KDE so library files from ~/kde/usr, not from /usr. # See https://www.youtube.com/watch?v=Xjb09xBIcPU kde-builder frameworks kde-builder --run kcalc
More topics
How to write the entire verbose STDOUT and STDERR of kdesrc-build to a file
script -eq -c "kdesrc-build kconfig --no-src --no-include-dependencies --refresh-build --debug" ~/a.txt ; sed -i $'s/\033\[[0-9]\+m//g' ~/a.txt
The sed
part removes the terminal ANSI color escape codes.
script -eq -c "command" ~/a.txt
is better than command |& tee ~/a.txt
because kdesrc-build behaves differently if it is run in a user interactive terminal session (isatty
).
If using tee
, part of the output of kdesrc-build will not be written to file. E.g. the output of the cmake
step, the final part of the make -j
step, the final part of the make install
step.