Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt CrossCompile from Linux to Windows with clang-cl and qmake - providing Qt install path
Forum Updated to NodeBB v4.3 + New Features

Qt CrossCompile from Linux to Windows with clang-cl and qmake - providing Qt install path

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 275 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    SebastianM
    wrote on 3 Jan 2021, 17:28 last edited by SebastianM 1 Mar 2021, 17:45
    #1

    Hi,
    I've got success with compiling Qt application inside Docker with clang-cl when CMake is used. ie. windows SDK variables are provided through toolchain file and Qt binaries with Qt5_DIR environment variable.

    When project uses qmake - I struggle to provide Qt libraries paths.

    QT_INSTALL_BINS=/opt/Qt/5.15.0/msvc2015_64 QT_HOST_DATA=/opt/Qt/5.15.0/msvc2015_64 PATH=/usr/lib/llvm-10/bin/:/opt/Qt/5.15.0/msvc2015_64/lib:$PATH qmake -spec /var/nixnote2/linux_win_clang_msvc -d
    

    I've made custom mkspec, but I can't modify Qt install directory. It's taken from QT_HOST_DATE (DEBUG 1: /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/qt_config.prf:3: QMAKE_QT_CONFIG := /usr/lib/x86_64-linux-gnu/qt5/mkspecs/qconfig.pri), which is Qt internal variable.

    Beside OBVIOUS solutions to rewrite project to use CMake - how otherwise can I modify configuration variables?

    1 Reply Last reply
    0

    1/1

    3 Jan 2021, 17:28

    • Login

    • Login or register to search.
    1 out of 1
    • First post
      1/1
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved