현재 Nana 라이브러리의 최신 버전은 1.7.4입니다.
이 글에서는 Visual Studio 2019를 이용한 라이브러리 빌드 방법을 소개하고 있습니다.
나나는 C++ 11/14/17을 사용하고 모든 표준 C++ 컴파일러(VC2013~, GCC/MinGW, Clang 등)를 지원합니다.
플랫폼은 윈도우즈, 리눅스(X11), FreeBSD(X11)을 지원합니다.
1. 파일 다운로드 후 압축 해제
2. .\nana\build\vc2019 폴더 진입 후 nana.sln 열기
(VS2019 이외에도 폴더 진입시 여러가지 빌드 방법을 고를 수 있다.)
3. 프로젝트 속성 변경
모든 구성, x64 선택
Windows SDK 버전이 10.0인지 확인
플랫폼 도구 집합이 Visual Studio 2019인지 확인
C++ 언어 표준을 ISO C++ 17로 변경
적용 클릭
Debug 구성으로 변경
C/C++ → 코드 생성 탭의 런타임 라이브러리를 자신의 프로젝트에 맞게 변경(/MTd 혹은 /MDd)
Release 구성으로 변경
C/C++ → 코드 생성 탭의 런타임 라이브러리를 자신의 프로젝트에 맞게 변경(/MT 혹은 /MD)
※ Visual Studio 2017부터 DLL을 이용한 /MD, /MDd 디버깅이 기본값으로 되었으므로 /MD, /MDd로 바꿔주는 것이 좋다. 자신의 프로젝트에 맞게 선택할 것.
※ 스크린샷은 /MT, /MTd이지만 빌드는 /MD와 /MDd로 하였습니다.
4. 일괄 빌드
빌드 → 일괄 빌드 선택
Debug x64와 Release x64에 체크하고 빌드 클릭
5. 빌드 완료
.\nana\build\bin 폴더에 가보면
위에서 선택한 Debug x64와 Release x64 버전의 라이브러리 파일이 생성되었다.
참조
Nana C++ Library - a modern C++ GUI library
Thank you for downloading Nana C++ Library Your download should start automatically. If it doesn’t, please click Download historical version, please click here. Help shape the future of Nana C++ Library Goals $5 per month Buy me a coffee, a venti mocha f
nanapro.org
http://nanapro.org/en-us/documentation/instl_lib_doc.htm
Installation Library Documentation - Nana C++ Library
When you extract the library from its zip files, you have to install the library and configurate it before using. There is a general steps to install the library. Some terms for this instruction:NanaPath: The path where Nana's files are located. IDEName:
nanapro.org
'프로그래밍 > C++' 카테고리의 다른 글
OCCI(Oracle C++ Call Interface) 프로그래밍 에러 참고 (0) | 2020.09.08 |
---|---|
NANA C++ LIBRARY의 레이아웃 관리 방법 (작성중) (0) | 2020.08.31 |
Visual Studio 2019를 이용한 NANA C++ GUI LIBRARY 한글이 제대로 출력되지 않을 때 (0) | 2020.08.31 |
Visual Studio 2019를 이용한 NANA C++ GUI LIBRARY 간단사용 (0) | 2020.08.30 |