Visual Studio
To use OpenNN with Visual Studio, you must create a solution. 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:
cmake .
The necessary files for a Visual Studio solution will be created in the directory.
Please mind the following dependencies:
-
- The folder «opennn» contains the OpenNN source library.
- The folder «eigen» contains the Eigen template library, which OpenNN uses.
- The folder «examples» contains several applications where OpenNN is used.
- The folder «tests» contains other applications where OpenNN is used.
Execute the file opennn.sln and build opennn first, selecting Release as the build type.


You can now run the example applications. Each of them is located in its respective folder, and the .exe file is in the 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
Qt Creator is a cross-platform IDE (integrated development environment), which means 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:
- Download Qt.
- Run an example.
- Create your application.
1. Download Qt
The first step is to download Qt. It can be done from here.
2. Run an example
You can find the opennn.pro project file for Qt Creator 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 the play button or pressing Ctrl+R. Read the application code to see what the simple classification example does. The following figure shows the iris plant example.
3. Create your application
You can create a new project in a blank example to use the tasks of OpenNN that better suit your needs.
Bibliography