Skip to content
qPCR4vir edited this page Apr 5, 2019 · 74 revisions

Basically, you copy the source code of nana (which is a tiny - 0.7 MB - .zip file) and tell your build system where it is.

General instructions: πŸ“š

Get Nana

You have to compile the library (configure and build to generate the binary libs) before you can link it to your projects. This can be made with tools for build-automation or from an IDE. Cmake may help to create the files for those build systems. These are the general steps to install the library:

Installing

Some terms for this instruction:

  • NanaPath: The path where Nana's files are located.
  • IDEName: The name of a certain Integrated Development Environments. Such as vc2017.
  • NanaStatic: The generated Nana static linkage file. Example: a *.lib or a *.a file.

Step One:

Start the IDE you use, set C++ include path and library path.

Step Two:

Create a static linkage library solution within a IDE/build system you use, and add all the files which are placed in NanaPath/source and in all its sub directories to the project. Then compile the solution and you will get a static linkage file NanaStatic in a path similar to NanaPath/build/bin/IDEName.

Step Three:

Write a program that use Nana to create a GUI, and compile it with the NanaStatic file linked. Make sure to enable the compiler supports for RTTI, MultiThreading and exception.

Specific instructions:

by OS:

- Windows

- Linux

- MacOS

by build tools:

by compilers:

by IDE:

Clone this wiki locally