nlib
Information About the Libraries for Linux
Required Software
For OSs including Ubuntu, software such as gcc, clang, cmake, and zlib need to be installed using apt-get or similar tools.
Directory Structure
The Linux (Ubuntu) package has the following directory structure.
    ├── lib
    │  └── cmake
    │      ├── gcc
    │      │  ├── libnx_*.so     # shared libraries
    │      │  └── libnx_*_d.so   # shared libraries(debug)
    │      └── clang
    │          ├── libnx_*.so     # shared libraries
    │          └── libnx_*_d.so   # shared libraries(debug)
    ├── samples
    │   └── cmake
    │       ├── cmake_gcc.sh     # A shell script for creating makefiles for the sample programs.
    │       └── cmake_clang.sh   # A shell script for creating makefiles for the sample programs.
    └── setup
       └── setup-wsl-tools.sh    # A shell script for installing and updating the tools and the libraries (for Ubuntu or WSL)
Other Platform-Specific Information
  • Make sure that the size of wchar_t is 4 bytes. Characters are stored as UTF-32, and not as UTF-16.
Example of the Script for Configuring the Development Environment
# Assuming the following is set with Vagrant:
# config.vm.box = "ubuntu/xenial64"
# or
# config.vm.box = "ubuntu/trusty32"
# then:
# We recommend you to download the latest version of cmake from https://cmake.org/download/ and install it.
# sudo -E apt-get -y install cmake
sudo -E apt-get -y install g++
sudo -E apt-get -y install clang
sudo -E apt-get -y install make
sudo -E apt-get -y install zlib1g-dev
Contact Nintendo if you need the Vagrantfile.