Compile and Run EasyAR Windows Samples

This article shows how to run EasyAR non-Unity Windows samples.

If you want to use EasyAR unity package, please read this for setup.

If you want to setup EasyAR Windows projects using EasyAR package, please read this instead.

Pre-Requirements

  • Visual Studio 2019 or later (for samples with .vcxproj)

  • (USB) Camera

  • CMake 3.8 or later (Samples with CMakeLists.txt)

  • Qt 5.4 or later (Qt samples)

Make sure to install C++ support for Visual Studio, which is not selected by default on the first install.

Plugin Camera

Make sure you have some camera connected to the computer and they can work.

Open sample

Samples with .sln

Open solution file.

../_images/image61.png

Samples with CMakeLists.txt

Open CMake and specify source code and binaries folder,

../_images/image64.png

Click Configure and select generator,

../_images/image65.png

Click Configure until all red lines are gone,

../_images/image66.png

If some paths are not setup automatically, you can manually change them until all options are correctly set.

../_images/image67.png

Click Generate to generate solutions, and open solution file,

../_images/image61.png

Key

Find initialize code in the samples, and if a key string is required, input the key there.

Engine::initialize
../_images/image62.png

Some samples has key input box on UI after execution, and for those samples, you can also input key in the UI box and leave the sample code unchanged.

../_images/image63.png

HelloARQt

If lack of Qt is prompted during runtime, add Qt path to PATH enviroment variable and log off the computer and relogin.

../_images/image112.png

Run

Just compile and run as a normal Windows desktop application.