Skip to content
klabarge edited this page Mar 6, 2018 · 4 revisions

Windows

  1. Open trax project in Qt and build

    REM add QT's bin directory to PATH to get access to `windeployqt`
    REM TODO, determine location via https://superuser.com/questions/539666/how-to-get-the-visual-studio-installation-path-in-a-batch-file#answer-992252
    set PATH=%PATH%;C:\Qt\Qt5.10.0\5.10.0\msvc2017_64\bin
    
    REM set home directory for Visual Studio
    set VCINSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC
    
    REM use `windeployqt`
    windeployqt C:\Users\Kyle\build-tray-Desktop_Qt_5_10_0_MSVC2017_64bit-Debug\bin\Tray.exe
  2. The only missing DLL was ucrtbased.dll, which I placed in the BIN directory.

Mac

$~: macdeployqt /Users/kyle/build-tray-Desktop_Qt_5_10_0_clang_64bit-Debug/bin/Tray.app

Linux

  1. Set qmake version to downloaded version

    TODO - change this more graceful

    # edit default.conf
    :~$ sudo vi /usr/lib/x86_64-linux-gnu/qtchooser/default.conf
    
    # modify the two paths in this file to the bin and lib directories
    /path/to/Qt5.10.0/5.10.0/gcc_64/bin
    /path/to/Qt5.10.0/5.10.0/gcc_64/lib
  2. Download linuxdeployqt

    # Download
    :~$ wget https://github.com/probonopd/linuxdeployqt/archive/continuous.zip
    # Extract
    :~$ chmod a+x linuxdeployqt-continuous-x86_64.AppImage
    # Run
    :~$ ./linuxdeployqt-continuous-x86_64.AppImage build-tray-Desktop_Qt_5_10_0_GCC_64bit-Debug/bin/Tray
    
  3. Install sql libraries

Per an upstream bug, all sql plugins are deployed. https://github.com/probonopd/linuxdeployqt/issues/235

###TODO

:~$

Clone this wiki locally