Skip to content
Susan Spencer edited this page Nov 29, 2021 · 16 revisions

Use Qt to build on your local PC

Install Qt

  • Download & run from https://www.qt.io/download-open-source.
  • During install create an account and select the GPLv3+ license.
  • Qt v 5.15.2 (includes Qt Creator)
  • Qt Creator Configuration
    • Under Tools/Options/Kit build a 'kit' by selecting your versions of Qt, a compiler, and the debugger that comes with your compiler.
    • You may need to install compilers. Get the latest versions of:
      • gcc (linux) - Your distro's gcc package might be easier to install & maintain than downloading & installing from gnu.org
      • MSVC or MINGW-64 (Windows)

Build with Qt Creator

  • With Git or GitHub Desktop, select your feature branch then run Qt Creator and select project Seamly2D
  • For the first build, in the Build top menu select Run qmake then Build Seamly2d
  • After the first build you can select Rebuild Seamly2D

Test with Qt Creator

  • In the left hand menu select Debug or Release. Select the green Run arrow.
  • Select your test pattern, create details & a layout. If no problems, then your branch is ready for a Pull Request.

Common Error messages

"msvc-version.conf loaded but QMAKE_MSC_VER isn't set" - Add "QMAKE_MSC_VER=xxxx" (for MSVC 2017 this is '1910') to your C:\Qt\<version>\msvc2017_64mkspecs\win32-msvc\qmake.conf file. Set this value manually in qmake.conf in your msvc qmake make spec directory. Read more here.

Clone this wiki locally