Skip to content
meyerd edited this page Sep 18, 2011 · 9 revisions

Compilation

CMake is the preferred method for compiling n2n.

Linux

Win32

Use the CMake GUI for creating the Visual Studio Project files or use the command line:

c:\n2n> mkdir build
c:\n2n> cd build
c:\n2n\build> cmake -G "Visual Studio 10" --build .\ ..\
-- Check for working C compiler using: Visual Studio 10
-- Check for working C compiler using: Visual Studio 10 -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler using: Visual Studio 10
-- Check for working CXX compiler using: Visual Studio 10 -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Configuring done
-- Generating done
-- Build files have been written to: C:/n2n/build

Then use the generated n2n.sln for compilation.

Cross compiling on Linux for Win32

Clone this wiki locally