How to build and install scope2d
Source code for scope2d can be downloaded from the project page.
Build instructions are given in scope2d’s project build folder, in files named BUILD
. Qt’s QMake
is necessary to build scope2d.
scope2d needs Qt 5.8.0 or above, Qwt 6.1.3 or above and Eigen 3.3.4 or above to be built.
Build scope2d on Windows
Build 64bit with MSVC using nmake
-
Open either
scope2d_release.pro
orscope2d_debug.pro
depending on the build type you want -
Set
EIGENDIR
to your installation location of Eigen library. -
Set
QWTDIR
to your installation location of Qwt library. -
Start Qt Console for MSVC
-
Change directory to this directory (i.e.
<YOUR_PATH>/build/make-msvc
) -
Run
qmake scope2d_release.pro
OR
qmake scope2d_debug.pro
depending on which build you want; release or debug
-
Change directory to the MSVC folder that has the nmake.exe for 64 bit. It is usually at
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64
if you have MS Visual Studio -
Run
vcvars64.bat
-
Change directory back to the make-msvc folder
-
Run
nmake
-
When above line finishes executing, run below
nmake install
-
When the build is completed, you will find scope2d.exe in
../x64/Release
or..x64/Debug
, depending on the build type you chose
Build 32bit with MinGW
-
Open either
scope2d_release.pro
orscope2d_debug.pro
depending on the build type you want -
Set
EIGENDIR
to your installation location of Eigen library. -
Set
QWTDIR
to your installation location of Qwt library. -
Start Qt Console for MSVC
-
Change directory to this directory (i.e.
<YOUR_PATH>/build/make-mingw
) -
Run
qmake scope2d_release.pro
OR
qmake scope2d_debug.pro
depending on which build you want; release or debug
-
Run
mingw32-make
-
When above line finishes executing, run below
mingw32-make install
-
When the build is completed, you will find scope2d.exe in
../x64/Release
or..x64/Debug
, depending on the build type you chose
Build scope2d on Linux
-
Open either
scope2d_release.pro
orscope2d_debug.pro
depending on the build type you want -
Set
EIGENDIR
to your installation location of Eigen library. -
Set
QWTDIR
to your installation location of Qwt library. -
Start a Terminal
-
Change directory to this directory (i.e.
<YOUR_PATH>/build/make-linux
) -
Run
qmake scope2d_release.pro
OR
qmake scope2d_debug.pro
depending on which build you want; release or debug
-
Run
make
-
When the build is completed, you will find scope2d in
../x64/Release
or..x64/Debug
, depending on the build type you chose
Alternative methods to build scope2d
Since scope2d has a small source code, its source code can easily be imported into Visual Studio or Qt Creator to be built. Qwt and Eigen need to be added as additional dependencies to the project in either environment. In Visual Studio, the Qt VS Addin can be used to create a Qt project within Visual Studio, after which the scope2d source code can be imported.