-
Notifications
You must be signed in to change notification settings - Fork 6
Getting Started
Ali Rashidi edited this page May 15, 2019
·
5 revisions
TarnaBot can be used with any Qt project. First, let's create a project which uses TarnaBot.
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
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'.
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.