Windows with CMake

<< Click to Display Table of Contents >>

Navigation:  Getting started with CVB tutorials > Building a CVB sample application > C++ and CMake >

Windows with CMake

1From the Windows Start menu start the CMake GUI. For the source directory select
%CVB%Tutorial/Image Manager/Cvb++/QtStatisticsDisplay
and for the build directory select
%CVB%Tutorial/Image Manager/Cvb++/QtStatisticsDisplay/build
 

Run the tutorial in bin subfolder

%CVB%Tutorial/Image Manager/Cvb++/QtStatisticsDisplay/bin

 

QtSample1
 

2Click the Configure button and select your Visual Studio version and your desired platform (default is Win32).
The configuration takes a while to be finalized and no error should be reported.
 
QtSample2

 
Click the Finish button and the configuration will start and present the results:
 
QtSample3

 

The warning "setting up CVB Qt bridge for UI components - do not forget to link CVB::CvbUI" is not an error and can be ignored.

 

CMake_Warning

 

3Now click the Generate button. This will generate a couple of Visual Studio solutions in the build directory:
 
QtSample4
 

4Load the QtStatisticsDisplay.sln solution file in Visual Studio and execute a Build Solution command:
 
QtSample5

5Finally execute the sample:

Choose QtStatisticsDisplay as StartUp Project.

 
QtSample6

 

Then start the application.

QtSample7

 

The result should look like this after a first snap:

QtSample8

 

Congratulations. You have built and ran your first Common Vision Blox sample using Qt. The code of the sample can be compiled under different operating systems as well as on different projects.
 
Repeat the steps for the other samples. It is not too difficult.