How to install on Windows


  • Access to code on Lxplus

In order to access the code, a CERN account is needed. This can be arranged via any CERN experiment associated with the development (i.e. ALICE), or via NIKHEF.

Alternatively, a SVN checkout can be made by someone with access to the code. If the login details are remembered by the repository, someone without access can then use that repository to commit changes.

This does, however, mean that the changes will be registered under the name of the person with access to the code. This is not recommended.

  • Visual Studio

The version doesn't matter, as long as it's compatible with a QT version.
  • Access to Qt library

Qt can be installed from the QT downloads page. Please regard the Visual Studio version that the QT software is associated with.
  • SVN software

Tortoise SVN has been known to work properly.
  • Phidgets

Phidgets is a library that is needed to compile the code. It can be downloaded on the Phidgets downloads page.
  • Boost

Boost is a library. To install, download the latest version from (1.59.0 is currently being used). Install, navitage to the folder in command prompt and type bootstrap. Then type .\b2 to build - this can take a while.
Afterwards, add the path to the lib (something like C:\boost\boost[version]\stage\lib) to the Additional Library directories in the linker options of the project in Visual Studio. Also add the path to the root file (something like C:\boost\boost[version]) to the include directories in the VC++ Directories of the project.

  • Dlib

Dlib is a library that contains algorithms such as the least squares optimization and fourier transform. Download the latest version at
Then, when using Visual Studio in combination with Qt, it should be sufficient to add the root folder (something like C:/dlib/dlib[version]) to the search path in the .pro file.

  • Spline

Installation Process

After the required software is installed, do an SVN checkout in the folder that you want the code to be in. The code path is:

Then, go to Start -> All Programs -> Qt -> QT [version] -> MSVC [version] and open the CMD shortcut. From here, navigate to the code directory (on your hard disk, not the cern server!).

Type: qmake -tp vc -r

This will create a Visual Studio Solution file. Opening this in Visual studio and building it will let you compile the code.

Info for compiling in VS2013

  • In order to run a compiled program, Windows needs to know the path to you QT installation. This can be done by opening "Edit the system environment variables" and adding the path to your Qt installation to PATH.
  • Some problems with building can occur when the various libraries and installed programs are not on the same hard disk.
  • In order for console output to appear, go to project properties -> Linker -> System and set the subsystem to Console.

Known errors & fixes

The program can't start because Qt5Cored.dll is missing from your computer.
Try reinstalling the program to fix this problem.

You can find the path to the .dll file by opening cmd and typing: dir [Drive name]:\Qt5Cored.dll /s.
This path can then be added to the project by going to Project -> Properties -> Debugging and writing PATH=[path] at the Environment option.

Using QtCreator

Additionally, development on qtcreator on windows is also possible. Since QtCreator works on all major operating systems, the IDE will be the same for everyone working on the code, which is a big advantage.
QtCreator can be downloaded here. Adding the paths to the correct libraries wasn't necessary after switching from VS2013 to QtCreator, as everything was contained in the .pro files. If anything still has to be added, typing the path inside the .pro file should suffice.

Info for Developping in windows

The connection between the Spidr board and the computer uses Jumbo packets (9000 bit). These have to be configured in order for data-taking to work.
This can be done by going to Network & sharin centre, clicking on the (unidentified) network with the board, properties -> configure -> advanced -> Jumbo packets and setting them to the high option (9014).

-- Main.johnid@nikhefnl - 2015-10-08

Topic revision: r10 - 2017-10-15 - NavritBal
This site is powered by the TWiki collaboration platform Powered by Perl This site is powered by the TWiki collaboration platformCopyright © 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback