# How to build Cvb++ Example in Windows 7 64

**URL:** <https://forum.commonvisionblox.com/t/how-to-build-cvb-example-in-windows-7-64/851>\
**Category:** C++ API\
**Tags:** qt, cmake\
**Created:** [August 12, 2019, 1:00pm UTC](https://forum.commonvisionblox.com/t/how-to-build-cvb-example-in-windows-7-64/851 "2019-08-12T13:00:39Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![fluber](https://avatars.discourse-cdn.com/v4/letter/f/cc9497/32.png) [@fluber](https://forum.commonvisionblox.com/u/fluber)\
**Post date:** [August 12, 2019, 1:00pm UTC](https://forum.commonvisionblox.com/t/how-to-build-cvb-example-in-windows-7-64/851/1 "2019-08-12T13:00:39Z")

</div>

Example:  
C:\Program Files\STEMMER IMAGING\Common Vision Blox\Tutorial\Polimago\Cvb++\QmlCookieClassification

Visual Studio 2015  
CMake 3.15.2  
Qt 5.12.2

 ![2019-08-12%2020_56_13-Cmder](https://canada1.discourse-cdn.com/flex027/uploads/commonvisionblox/original/1X/7a66690f742dc124b4ad58dc5e24cf885c1df3ed.png)

 ![A](https://canada1.discourse-cdn.com/flex027/uploads/commonvisionblox/original/1X/cc4c743d4cffd913983175781949af228423505c.png)

cmake :  
1: generate for nmake Makefile  
2: generate for Visual Studio 14 2015

is 1 or 2 ?

---

<div class="post-metadata">

**Author:** ![rtp\_derahs](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.commonvisionblox.com/rtp_derahs/32/79_2.png) [@rtp\_derahs](https://forum.commonvisionblox.com/u/rtp_derahs)\
**Post date:** [August 12, 2019, 1:49pm UTC](https://forum.commonvisionblox.com/t/how-to-build-cvb-example-in-windows-7-64/851/2 "2019-08-12T13:49:19Z")

</div>

Hi @fluber,

I’m not quite sure, what the point of your question is? Anyway, the default way would be to

- Use the latest verion of the CMake GUI
- Configure for VS 2015 x64
- Generate - to get the VS solution
- Open solution in VS 🙂

As the _CMakeLists.txt_ shows, you will need to have a local copy of Qt 5.12.  
Also an environment variable **CMAKE\_PREFIX\_PATH** , pointing to the location of your Qt, is required.

---

<div class="post-metadata">

**Author:** ![illusive](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.commonvisionblox.com/illusive/32/61_2.png) [@illusive](https://forum.commonvisionblox.com/u/illusive)\
**Post date:** [August 12, 2019, 2:04pm UTC](https://forum.commonvisionblox.com/t/how-to-build-cvb-example-in-windows-7-64/851/3 "2019-08-12T14:04:16Z")

</div>

Hi @fluber,

The standard builder for Visual Studio Projects with CMake should really be _“Visual Studio 14 2015”_ (or, if you have installed the 64 bit version of Common Vision Blox, _“Visual Studio 14 2015 Win64”_).

---

<div class="post-metadata">

**Author:** ![illusive](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.commonvisionblox.com/illusive/32/61_2.png) [@illusive](https://forum.commonvisionblox.com/u/illusive)\
**Post date:** [August 12, 2019, 2:05pm UTC](https://forum.commonvisionblox.com/t/how-to-build-cvb-example-in-windows-7-64/851/4 "2019-08-12T14:05:56Z")

</div>

> [@rtp\_derahs](#):
>
> VS 2015 x64

Mind the exact name of the builder. It is **“Visual Studio 14 2015 Win64”**. According to the cmake documentation, x64 will be rejected on the command line.

---

<div class="post-metadata">

**Author:** ![Diverl](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.commonvisionblox.com/diverl/32/434_2.png) [@Diverl](https://forum.commonvisionblox.com/u/Diverl)\
**Post date:** [August 12, 2019, 2:56pm UTC](https://forum.commonvisionblox.com/t/how-to-build-cvb-example-in-windows-7-64/851/5 "2019-08-12T14:56:25Z")

</div>

Hi @fluber,

since a few days we can also offer you an online help on how to build the applications: [Getting Started with CVB Tutorials](https://help.commonvisionblox.com/NextGen/14.0/md_theory_of_operation_appnotes__c_v_b_tutorials.html).

---

<div class="post-metadata">

**Author:** ![fluber](https://avatars.discourse-cdn.com/v4/letter/f/cc9497/32.png) [@fluber](https://forum.commonvisionblox.com/u/fluber)\
**Post date:** [August 13, 2019, 3:32am UTC](https://forum.commonvisionblox.com/t/how-to-build-cvb-example-in-windows-7-64/851/6 "2019-08-13T03:32:27Z")

</div>

the QtStatisticsDisplay example is ok.

the QmlCookieClassification example is failed.

I don’t know this. cmake log.

**setting up CVB Qt bridge for UI components - do not forget to link CVB::CvbUI**

How do I fix it.

---

<div class="post-metadata">

**Author:** ![fluber](https://avatars.discourse-cdn.com/v4/letter/f/cc9497/32.png) [@fluber](https://forum.commonvisionblox.com/u/fluber)\
**Post date:** [August 13, 2019, 4:03am UTC](https://forum.commonvisionblox.com/t/how-to-build-cvb-example-in-windows-7-64/851/7 "2019-08-13T04:03:19Z")

</div>

can use [https://doc.qt.io/qtcreator/creator-project-cmake.html](https://doc.qt.io/qtcreator/creator-project-cmake.html). to build cvb++ qt project ?

---

<div class="post-metadata">

**Author:** ![Diverl](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.commonvisionblox.com/diverl/32/434_2.png) [@Diverl](https://forum.commonvisionblox.com/u/Diverl)\
**Post date:** [August 13, 2019, 7:20am UTC](https://forum.commonvisionblox.com/t/how-to-build-cvb-example-in-windows-7-64/851/8 "2019-08-13T07:20:30Z")

</div>

Good morning @fluber,  
the message _setting up CVB Qt bridge for UI components - do not forget to link CVB::CvbUI_ is only a warning, not an error. Simply continue, the example will work nonetheless.  
But thank you for the information, I will put this into the Getting Started guide. 👍

---

<div class="post-metadata">

**Author:** ![fluber](https://avatars.discourse-cdn.com/v4/letter/f/cc9497/32.png) [@fluber](https://forum.commonvisionblox.com/u/fluber)\
**Post date:** [August 13, 2019, 8:29am UTC](https://forum.commonvisionblox.com/t/how-to-build-cvb-example-in-windows-7-64/851/9 "2019-08-13T08:29:31Z")

</div>

the QtStatisticsDisplay example is ok. I can successfully build the project and run.

but the QmlCookieClassification example is failed.

![A](https://canada1.discourse-cdn.com/flex027/uploads/commonvisionblox/original/1X/fbf380885a4c952397a603606ebacfd4fee0ec90.png)

 ![B](https://canada1.discourse-cdn.com/flex027/uploads/commonvisionblox/original/1X/170a3dbddace8f2181787ca48dbe6e625315beb3.png)  
 ![C](https://canada1.discourse-cdn.com/flex027/uploads/commonvisionblox/original/1X/0b1f192f22d955a7486d9dc8a9528eecbfd851f1.png)  
 ![D](https://canada1.discourse-cdn.com/flex027/uploads/commonvisionblox/original/1X/5a84c611954e292a884e0869eb1752cf3b27be02.png)

---

<div class="post-metadata">

**Author:** ![fluber](https://avatars.discourse-cdn.com/v4/letter/f/cc9497/32.png) [@fluber](https://forum.commonvisionblox.com/u/fluber)\
**Post date:** [August 14, 2019, 2:57am UTC](https://forum.commonvisionblox.com/t/how-to-build-cvb-example-in-windows-7-64/851/10 "2019-08-14T02:57:29Z")

</div>

I remove the “Common Vision Blox Bindings 1.00.000 (x64)” and reinstall “CommonVisionBlox 13.02.000 (x64)”.

the do “cmake generate…” again.  
then I can successfully build the project. “QmlCookieClassification”

---

<div class="post-metadata">

**Author:** ![Diverl](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.commonvisionblox.com/diverl/32/434_2.png) [@Diverl](https://forum.commonvisionblox.com/u/Diverl)\
**Post date:** [August 14, 2019, 7:39am UTC](https://forum.commonvisionblox.com/t/how-to-build-cvb-example-in-windows-7-64/851/11 "2019-08-14T07:39:23Z")

</div>

Thanks for the information! Great that it works now! 👍
