nlib
Information About the Libraries for Linux (Ubuntu)
Required Software
Software such as gcc, clang, cmake, and zlib must be installed in Ubuntu 14.10 using apt-get or similar programs.
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.
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 = "chef/ubuntu-14.10"
# or
# config.vm.box = "chef/ubuntu-14.10-i386"
# then:
sudo -E apt-get -y install cmake
sudo -E apt-get -y install g++
sudo -E apt-get -y install clang-3.5
sudo -E apt-get -y install make
sudo -E apt-get -y install zlib1g-dev
The Linux version of nlib is built for Ubuntu 14.10 setup using Vagrant. Contact Nintendo if you need the Vagrantfile.