OpenNN has been written in ANSI C++. As a consequence, you can build the library on any system with little effort. OpenNN includes project files for Qt Creator. If you want to work with another compiler, you need to create a project for it. In this tutorial, you'll learn how to do that.
To use OpenNN with Visual Studio, you must create a solution for it. This is quickly done using Cmake. First of all, you can download OpenNN from GitHub or Sourceforge. Then, open a terminal, go to your OpenNN folder, and run the following command.
The necessary files for a Visual Studio solution will be created in the directory.
Please mind the following dependencies:
Execute the file opennn.sln and build opennn first, selecting Release as the build type.
You can now run the example applications. Each are located in its respective folder and the .exe file in a Release directory.
An MS-DOS console should appear with the results of the corresponding example.
Once you have seen OpenNN work, you can develop your neural network application. To do that, use a blank example.
Qt Creator is a cross-platform IDE (integrated development environment). That means that you can use Qt Creator in Windows, Linux, and macOS. Note that OpenNN does not use the Qt library. To run OpenNN with Qt creator, follow the next steps:
The first step is to download Qt. It can be done from here.
The opennn.pro project file for Qt Creator can be found in the opennn folder. To start the OpenNN project, double-click on that file.
Many example subprojects are also included in the OpenNN distribution. From the opennn project, select some examples, for instance, the simple_classification subproject. Then run that example by clicking on the play button or pressing Ctrl+R. Read the application code to see what the simple classification example does. The next figure shows the iris plant example.
You can create a new project in a blank example to use the tasks of OpenNN that better suit your needs.