<table><tr><td style="">vpinon added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D8427" rel="noreferrer">View Revision</a></tr></table><br /><div><div><p>Thank you Aleix,<br />
You're right!<br />
<em>Before</em> launching cmake for cross compiling, I build the tool for host (this requires to have Qt5 dev files on build host):<br />
I haven't found a way to access the host compiler & libs <em>within</em> cmake (which has a toolchain file to switch to cross-compiling).<br />
My complete cross compiling sequence is (in Makefile syntax for MXE):</p>
<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);">cd "$(1)" && $(BUILD_CXX) -std=c++11 qrcAlias.cpp -o $(PREFIX)/bin/qrcAlias -fPIC $(shell pkg-config --cflags Qt5Core --libs Qt5Core)
mkdir "$(1)/build"
cd "$(1)/build" && cmake .. \
-DCMAKE_TOOLCHAIN_FILE="$(CMAKE_TOOLCHAIN_FILE)" \
-DCMAKE_BUILD_TYPE=Release \
-DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
-DBUILD_TESTING=OFF \
-DBINARY_ICONS_RESOURCE=ON \
-DQRCALIAS_EXECUTABLE=$(PREFIX)/bin/qrcAlias
$(MAKE) -C "$(1)/build" -j $(JOBS) install</pre></div>
<p>Would you have directions for a better approach? Or should I just add in comment the line to build qrcAlias?<br />
I wanted to have a look at how KF5_HOST_TOOLING works, but couldn't find where it is defined in ECM or in the frameworks that use it (kdecoration, kdeclarative)...</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R266 Breeze Icons</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D8427" rel="noreferrer">https://phabricator.kde.org/D8427</a></div></div><br /><div><strong>To: </strong>vpinon, apol, kfunk<br /><strong>Cc: </strong>Frameworks, bartoloni, benjaminnelan, afarid, fernandoteles, mardelle<br /></div>