Questions tagged [nana]

The Nana project is a modern C++ library aimed at providing a GUI framework for cross-platform programming.

Nana is a cross-platform C++ library for creating graphical user interfaces. Currently it supports Windows and Linux(X11) platforms. By using platform-independent interfaces, it allows the application code to work on all supported operating systems. Nana is a free and open source software, licensed under Boost Software License. It is written in Standard C++, and uses many advanced C++ features, such as templates, standard libraries, exception and RTTI, therefore can be compiled by Standard C++ compilers(VC2013, GCC/MinGW, Clang). The Boost Software License encourages both commercial and non-commercial use.

Nana is currently hosted on GitHub, and has a new Project Page

30 questions
9
votes
1 answer

can't include when compiling nana library, no such file or directory

I'm trying to install the nana C++ library in Ubuntu 16.04. I downloaded and unzipped it into the directory with my helloworld file, and went to the directory with the makefile; nana/build/makefile, and typed make but got the error X11/Xft/Xft.h:…
Dave
  • 91
  • 1
  • 1
  • 2
5
votes
3 answers

Failure to find x11 on nana cmake

I am loading up nana source in CLion and cmake gives me the an error saying x11 is set to NOTFOUND I have tried installing x11 dev libs on ubuntu but it has not helped :/ EDIT: I have fixed the issue above by installing (2nd Code block) sudo apt…
ジルビズ
  • 61
  • 2
  • 4
5
votes
1 answer

include_directories for imported library

I am writing project in c++, and I have problem with importing libraries in cmake. The third party library, which is importing, does not propagate include directories. Root /CMakeLists.txt # Top level CMakeLists.txt cmake_minimum_required(VERSION…
tsybaya
  • 117
  • 1
  • 7
5
votes
2 answers

What is the downside of having a standard GUI library for C++?

For GUI programming in C++, we can choose between too many libraries, such as Qt, Gtkmm, wxWidgets, FLTK and there is another one which already exists: Nana. Nana C++ library is using modern C++ (C++11) language features such as lambdas, templates…
Sadeq
  • 7,795
  • 4
  • 34
  • 45
3
votes
1 answer

Linker issue when usiing nana library on Ubuntu 20.04

I have been using nana library for a while for my application on Windows and it works great. Now I am trying to do a Linux build but I can not seem to link nana to my application correctly. I have tried this but it also did not seem to work I have…
Ali Kanat
  • 1,888
  • 3
  • 13
  • 23
3
votes
1 answer

What is the C++ feature being used in this Nana demo code?

On their webpage, the Nana GUI people give this example: #include int main() { using namespace nana; form fm; drawing{fm}.draw([](paint::graphics& graph){ graph.string({10, 10}, L"Hello, world!", colors::red); …
Scooter
  • 6,802
  • 8
  • 41
  • 64
2
votes
2 answers

Setting the window icon in a nana C++ GUI application

I am using nana for building a GUI in my C++ application, which basically works fine. However, I have trouble setting the window icon under Windows: nana::API::window_icon_default(nana::paint::image("hunger.ico")); There is definitely a file…
Matthias
  • 9,817
  • 14
  • 66
  • 125
2
votes
2 answers

Make GUI in C++ by Nana

I am trying to make a lightweight GUI application in C++ and I was suggested to use the Nana library. I downloaded the zip file but I don't know how to proceed. I unzipped it and according to the instructions, I have to Create a static linkage…
tony_chow
  • 41
  • 4
2
votes
2 answers

How to using gui nana library with biicode

I am trying to compile my code with nana gui library using Biicode. https://www.biicode.com/qiangwu/qiangwu/nana/master/0/biicode.conf # Biicode configuration file migrated from old config files [requirements] qiangwu/nana:…
Szymon Madera
  • 87
  • 1
  • 6
1
vote
0 answers

how to save the selected/checked items in a listbox in nana gui c++

int main() { using namespace nana; form fm; listbox lb(fm, nana::rectangle(10, 10, 280, 120)); auto cat = lb.at(0); if (cat.begin() == cat.end()) std::wcout << ("true "); else std::wcout << …
Bahaeldin0
  • 63
  • 8
1
vote
1 answer

gcc auto link shared libraries needed by static libraries

I've installed the Nana library and I've read from their website that the library needs some shared libraries to work.. So during linking (gcc) i need to put all links (-lXft, -l...). Is there a solution to auto link shared libraries needed by…
Angelo13C
  • 43
  • 3
1
vote
1 answer

Text over picture

Is it possible to create text displayed on a picture with nana? I tried this int main() { using namespace nana; form fm; place plc(fm); picture pic(fm); label lbl(fm, "LBL", true); pic.load(paint::image("xxx.png")); …
Narase
  • 490
  • 2
  • 12
1
vote
0 answers

Building hello world with nana

Im trying to build my first project with the nana gui lib. I never really worked with other libraries and thus have no experience with cmake. I installed the library using cmake, make, make install and got through with not error. When trying to…
Narase
  • 490
  • 2
  • 12
1
vote
1 answer

Issue when installing nana in codeblocks

I'm trying to use the nana c++ library for my user interface and i followed this tutorial https://github.com/qPCR4vir/nana-docs/wiki/Code-Blocks-Linux but when i try to compile this code : #include #include…
poilonais
  • 21
  • 1
1
vote
1 answer

how to use opengl for nana c++ library?

I am playing on nana library for gui. I also have to use opengl, But there is one example for opengl, which is for windows. Link I am using ubuntu linux. above example call reinterpret_cast(fm.native_handle()); I finally have found it. The…
geeeek
  • 375
  • 2
  • 13
1
2