FlexSEA Wiki

A WEARABLE ROBOTICS TOOLKIT

User Tools

Site Tools


build_plan_gui

Building Plan GUI

Requirements

  • Qt 5.12
    • The version of GCC is limited by Qt's version of C/C++ libraries. If version 5.12.X of Qt is used, GCC/G++ 7.3 is the default used by Qt.
    • Important: select “Qt Chart”

Setup

  1. Install Qt 5.12 from their website (MinGW 7.3 32-bits). If you don't already have a license, the Open Source version can be used.
  2. Qt might require you to set-up an account before proceeding.

Changes to building previous versions

  1. fx_plan_stack is no longer needed to build GUI, plan_3_0 repository containing GUI code no longer has any ties to Dephy source code
  2. If you do have fx_plan_stack build privileges, see how to build fx_plan_stack libraries. Once you successfully build fx_plan_stack, the build script (stack_builder.sh) will copy the compiled libraries and headers to the plan_3_0 repository automatically.

How to build (Basic)

  1. From the root directory launch Qt by using the .pro file
  2. Build the app or version of the code you desire by using the hammer. Make sure it is the release version and that the correct compiler (Qt 5.12.2 Mingw32) is selected.
  3. Even if the build “fails”, look at the build directory in the release folder. If you see plan_3_0.exe, the build has succeeded. You will just need to copy it into a folder containing the appropriate DLLs. This can either be acquired from Dephy or gathered by hand. The DLLs can be found in the appropriate Qt compiler folder. Below is a list of DLLs and their path relative to the executable:
    • libEGL.dll
    • libgcc_s_dw2-1.dll
    • libGLESv2.dll
    • libstdc++-6.dll
    • libwinpthread-1.dll
    • Qt5Charts.dll
    • Qt5Core.dll
    • Qt5Gui.dll
    • Qt5Multimedia.dll
    • Qt5Network.dll
    • Qt5PrintSupport.dll
    • Qt5SerialPort.dll
    • Qt5WebSockets.dll
    • Qt5Widgets.dll
    • Qt5WinExtras.dll
    • Qt5Xml.dll
    • Qt5XmlPatterns.dll
    • platforms/qdirect2d.dll
    • platforms/qminimal.dll
    • platforms/qoffscreen.dll
    • platforms/qwebgl.dll
    • platforms/qwindows.dll

How to build (Fancy)

This section will discuss more advanced options.

Includes

Includes are done directly in the .pro files. These will change what parts of the source code is included and should match up with the flags used by fx_plan_stack. These definitions can be found in the plan_definitions.cmake file.

Automatically building plan stack

Qt offers you the option of including additional build steps. You can add the execution of stack_builder.sh as a build setup.

Windows

  1. Click Projects in Qt Creator
  2. Under Build & Run, select the appropriate configuration and click Build. The Build Settings screen will appear.
  3. Under Build Steps, click Add Build Step → Custom Process Step
  4. In the Custom Process Step, type C:\Program Files\Git\bin\sh.exe as the Command:
    1. Note: This executable may be located at C:\Program Files (x86)\Git\bin\sh.exe depending on where Git Bash is installed on your machine.
  5. Type -c “./stack_builder.sh” as the Arguments:
  6. Type the location of the the stack_builder.sh script as the Working directory:
    1. For example, C:\GitHub\plan_3_0\fx_plan_stack
  7. Move the Custom Process Step to the top of the Build Steps by clicking the Move Up arrow.

Linux

See the image below. Replace the Working directory: as necessary.

build_plan_gui.txt · Last modified: 2020/02/21 16:20 by rqurashi