2.6. All-In-One development creation

This chapter here shows how the all-in-one develoment setup is created. In this setup all required components for the itom development environment are installed/compiled. The following steps must be executed in the given procedure. In the chapter about install_all-in-one_development_setup you find how the development environment is installed.

2.6.1. Download Packages

2.6.1.1. Download all required software/packages for 64-bit version/ 32-bit version

All these steps here are shown for a 64-bit version of the all-in-one development setup. A 32-bit version is created in the same way with the corresponding 32-bit software/packages.

First download all the needed software and packages. This download links are for the current availabe software versions.

Warning

Qt WebEngine, Qt WebEngineWidgets are only available under VS 2017 as it is shown in the figure below!

Qt 5.10.1 supports Qt WebEngine, Qt WebEngineWidgets for VS2015.

../_images/QT_WebEngine_hint.png

2.6.1.2. Download packages for the 3rdPartyPCL tools

2.6.2. Compile/setup dependencies

2.6.2.1. Install Visual Studio 2017

Install Visual Studio 2017 Community without optional features.

2.6.2.2. Creating the _install_ and 3rdParty folder

Create a path on your hard drive with a long, long path name called ${MAINDIR}. Later, the all-in-one path on the destination computer must be shorter than this path name, due to the Qt patching. For example your path can be called: E:\itom_all-in-one_development\itom_all-in-one_development\vs2017_qt5.12.1_x64\. Than create the following paths relative to the ${MAINDIR}. 3rdPartyPCL is not necessary to create a working itom.

../_images/folder_structure.png

2.6.2.2.1. _install_ folder

The _install_ folder is used to execute the installation procedure of the all-in-one development. Copy the following files into ${MAINDIR}/_install_ folder

../_images/folder_install.png
2.6.2.2.1.1. optional folder

This folder is for optional software, which is not necessary to build and compile a working itom. This software is required further for development purposes. Copy the following files into ${MAINDIR}/_install_/optional folder

../_images/folder_optional.png
2.6.2.2.1.2. qpatch folder

The folder qpatch contains the files, which are needed to patch the prebuild version of Qt version. Copy following files into ${MAINDIR}/_install_/qpatch folder. Change the root Qt path and the target path in the create_files_to_patch.py file. Execute the script and check if the filenames in the files-to-patch-windows has been found.

../_images/folder_qpatch.png

2.6.2.2.2. 3rdParty folder

2.6.2.2.2.1. Python folder

preinstalled Verison of python 3.7 For the compilation of itom, it is not necessary to have a installed Python on the computer. For the Python 3rdParty folder, first:

  • Install the current version of Python on your computer.

  • Copy the installed Python folder into the ${MAINDIR}/3rdParty/Python folder.

  • Deinstall it again.

Warning

You have to copy the installed folder, rename and deinstall it does not work!

2.6.2.2.2.2. Qtx.xx.x folder

copy the output of the qt compilation process into this folder. Compile QT

2.6.2.2.2.3. OpenCVx.x.x folder

copy the output of the compilation process to this folder. Compile OpenCV

2.6.2.2.3. 3rdPartyPCL folder

For the 3rdPartyPCL folder the software packages Boost, Eigen, Flann and QHull can be downloaded as binaries. VTK and PCL must be compiled on your computer. Have the version dotted in the Name.

2.6.2.2.3.1. boostX.XX.X
  • Go for the prebuilt binaries(downloaded, see above) Execute the boost_1_69_0-msvc-12.0-64.exe file and install boost on your hard drive in a folder with a short path that is different from QT. Copy than the folders boost and lib into ${MAINDIR}/3rdPartyPCL/boost1.69.0-64.

2.6.2.2.3.2. EigenX.X.X
2.6.2.2.3.3. flannX.X.X
2.6.2.2.3.4. QHullxxxx.x
2.6.2.2.3.5. PCLx.x.x
  • Copy the output of the compilation process to this folder Compile PCL

2.6.2.2.3.6. VTKx.x.x
  • Copy the output of the compilation process to this folder Compile VTK

2.6.3. Modify setupscript

Update the version of the python packages (pip, setuptools, wheel) of the setup_itom_all-in-one.bat.

The setup.py file needs some changes to work with the new version of the software/packages. The setup checks, if the packages are given in the right version.

First set the following variables in the beginning of the file.

  • Set the qtOriginalBuildPath. E. g.: “C:\itom_all-in-one_development\itom_all-in-one_development\itom_all-in-one_development\VS2017_Qt5.12.1_x64\3rdParty\Qt5.12.1\5.12.1\msvc2017_64”

  • Set the qtNewBuildPath. E. g.: “../3rdParty/Qt5.12.1/5.12/msvc2017_64”

  • Set the numpyRequiredVersion to the Numpy version, which is attached to the all-in-one development setup. E. g.: “1.11.0”

  • Set the pythonRequiredVersion to the python version, which is attached to the all-in-one development setup. E. g.: “3.5.”

Check in the function generateCMakeDict the version of Visual Studio and the paths of CMake, OpenCV, Python library version, VTK, PCL, Eigen, Flann, QHull.

../_images/Setup_packages_versions.PNG

Check in the function installNumpy, if the numpy whl file names are right.

../_images/Setup_numpy_file.PNG

Check in the function upgradePip, installPyflakes, installJedi the filenames of the whl-files.

2.6.4. Pack everything together

use 7zip and rar format to pack windows compiled binaries together to upload them to sourceforge