Skip to content


Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time
# NDK Support

Setup NDK environment:
    Download and install NDK somewhere
    Add this to your ~/.bash_profile:

        export NDK_PATH=<your NDK install location>

By default NDK build is disabled because it is currently not fully supported.
To enable NDK build, specify


before invoking

# Ignoring prebuilt files

By default NatJ uses the prebuilt ffi files.
To disable this behaviour, specify


before invoking

# Linux support

Building for Linux is a bit trick, requires additional setup and manual invocation.

Example for Linux build configuration:
	- OS X host system
	- 32-bit Ubuntu 15.10 distribution in a VM
	- 64-bit Ubuntu 15.10 distribution in a VM
	- Both VMs must be on the same network as the host
	- OS X should be able to access both VMs via SSH key authentication and SCP
		this command should succeed without asking for password:
		ssh <user>@<ubuntu-ip-address>

Build only:
	cd natj-linux
	# for 32-bit builds
	./ <user>@<ubuntu-32-ip> i686
	# for 64-bit builds
	./ <user>@<ubuntu-64-ip> x86_64

	The results will be copied back to the host system.

Build and test:
	cd natj-cxxtests/linux-test
	# for 32-bit
	./ <user>@<ubuntu-32-ip> i686
	# for 64-bit
	./ <user>@<ubuntu-64-ip> x86_64

	The results will be copied back to the host system.

# Windows support

Known issue: Windows 32-bit builds are currently causing VM crashes.

Testing on Windows is currently possible via Ansible. More info is available in natj-cxxtests/README.txt