- Building OpenNN
Artelnics - Making intelligent use of data
OpenNN has been written in ANSI C++. This means that the library can be built on any system with little effort. OpenNN includes project files for Qt Creator. When working with another compiler is needed, a project for it must be created. In this tutorial, you'll learn how to do that.Contents:
Qt Creator is a cross-platform IDE (integrated development environment). That means that it can be used in Windows, Linux and MacOS. Note that OpenNN does not use the Qt library. In order to run OpenNN with Qt creator, follow the next steps:
- Download Qt.
- Download OpenNN.
- Run an example.
- Create your application.
(i) Download Qt
The first step is to download Qt, it can be done from here.
(ii) Download OpenNN
(iii) Run an example
The opennn.pro project file for Qt Creator can be found in the opennn folder. To open the OpenNN project just double click on that file.
Many example subprojects are also included in the OpenNN distribution. From the opennn project select some example, for instance the simple_function_regression subproject. Then run that example by clicking on the play button or pressing Ctrl+R. Read the application code to see what the simple function regression example does. The next figure shows the iris plant example.
(iv) Create your application
Now you can create a new project in a blank example, in order to use the tasks of OpenNN that better suit your needs.
- The folder opennn contains the OpenNN source libray.
- The folder eigen contains the Eigen template library, which is used by OpenNN.
- The folder examples contains several applications which use OpenNN.
- The folder tests contains another application which use OpenNN.
Once the solution has been created, you can run the example applications. A MS-DOS console should appear with the results of the corresponding example. To develop your own neural networks application, use the blank example.
- The OpenNN source library depends on the Eigen library.
- All the examples depend on OpenNN.
- The tests also depend on OpenNN.
Once all the makefiles has been created, you can run the example applications and create your own neural networks program.