Skip to content

Getting Started

Ali Rashidi edited this page May 15, 2019 · 5 revisions

Introduction

TarnaBot can be used with any Qt project. First, let's create a project which uses TarnaBot.

Install the library

Clone or download the project, run qmake, make and finally make install.

git clone https://github.com/codenegaar/TarnaBot
cd TarnaBot
qmake
make
make install

Create the project

Let's create a simple guessing game bot using TarnaBot. Create a new project of type 'Qt Console Application' using QtCreator, I name it 'GuessingGameBot'.

Add the library

To add TarnaBot, simply right-click on the project in the left pane, and select 'Add library'. Choose 'External Library' and click next.

Now, choose the library file from where you cloned and built TarnaBot, 'Include path' field may be automatically filled, make sure to change it to point at the 'include' directory in the library's project directory. Leave other options unchanged and finalize the process.

Clone this wiki locally