Development
This page is about how to modify and build the LQ source code, not about using LQ in your own projects. For the latter, see the setup guides for Windows and NI Linux RT instead.
Most of the code in the main GitHub repo is auto-generated and should not be edited by hand. See the code generator repo instead.
Also, do not call VIs directly from the main Git repository. These VIs have “Separate compiled code from source file” enabled, which causes significant lag when opening or closing large LQ-based projects. Instead, only use the VIs that you have installed. Alternative, run the build scripts to generate usable VIs (see the Building from Source section below).
System Requirements
To build the C++ shared library (runtime):
To build the NIPM packages (dev and runtime):
- NI Package Manager 19.0 or newer
- NI LabVIEW 2014 or newer
- NI LabVIEW Command Line Interface 1.0 or newer
To build the .ipk packages (runtime):
- Python 3.5 or newer
opkg-utils
0.4.0 or newer
Building from Source
To build the LQ packages from scratch:
- Install a suitable C++ compiler
- Install Qt
- Build and install Qwt
- Install NI LabVIEW
- (If using LabVIEW 2014-2017) Install the additional National Instruments tools listed under the System Requirements section above.
- Clone the repo from https://github.com/JKSH/LQ-Bindings/.
- Open buildpkg-nipkg-runtime.bat and buildpkg-nipkg-dev.bat with a text editor. Check the file paths at the top of each file and and edit them if necessary.
- Open the Command Prompt and ensure that your compiler is in the PATH (e.g. by launching x86 Native Tools Command Prompt for VS 2019)
- From the Command Prompt, run the *.bat files.
The steps are mostly the same for the Linux packages – just use buildpkg-ipk-runtime.sh instead of buildpkg-nipkg-runtime.bat)