Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

Ionic C++ Tutorials

To build and run an Ionic C++ Tutorial, navigate into the directory of a specific sample task and follow the steps below depending on your platform. The Ionic C++ SDK is used in all the tutorials. Go to Ionic Developer SDK Setup then click on the C++ icon and the desired OS icon.

Note: the sample apps expect a Password Persistor located at ~/.ionicsecurity/profiles.pw. The password needs to be provided as an environment variable.

export IONIC_PERSISTOR_PASSWORD=password123

Linux

Requirements:

  • g++
  • CMake 3.1

Build:

export IONIC_SDK_PATH=<PATH_TO_IONIC_SDK>
cmake -Dplatform=Linux -Darchitecture=x86_64
make

Run:

./target/<app>

MacOSX

Requirements:

  • g++
  • CMake 3.1

Build:

export IONIC_SDK_PATH=<PATH_TO_IONIC_SDK>
cmake -Dplatform=MacOSX -Darchitecture=universal
make

Run:

./target/<app>

Windows

Requirements:

  • Visual Build Tools: Toolset v140 (including ATL libs)
  • CMake 3.1

Build:

set IONIC_SDK_PATH=<PATH_TO_IONIC_SDK>
cmake -Dplatform=Windows -Darchitecture=Win32
msbuild /p:Architecture=Win32 /p:Configuration=Release ionic-sample.sln

Run:

targets\Release\<app>.exe