D8427: Allow cross compiling resource file

Vincent Pinon noreply at phabricator.kde.org
Tue Oct 24 20:07:49 UTC 2017


vpinon added a comment.


  Thank you Aleix,
  You're right!
  //Before// launching cmake for cross compiling, I build the tool for host (this requires to have Qt5 dev files on build host):
  I haven't found a way to access the host compiler & libs //within// cmake (which has a toolchain file to switch to cross-compiling).
  My complete cross compiling sequence is (in Makefile syntax for MXE):
  
    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
  
  Would you have directions for a better approach? Or should I just add in comment the line to build qrcAlias?
  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)...

REPOSITORY
  R266 Breeze Icons

REVISION DETAIL
  https://phabricator.kde.org/D8427

To: vpinon, apol, kfunk
Cc: #frameworks, bartoloni, benjaminnelan, afarid, fernandoteles, mardelle
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20171024/3d5e16af/attachment.html>


More information about the Kde-frameworks-devel mailing list