C++
Last updated
Last updated
Ensure you have installed:
- The cross-platform, open-source make system.
- VS2013 for Windows Desktop is a minimum as cpp-Lattice Network uses languages features not supported in 2012. The Professional edition also works. (tested 10/2014)
or - for files like winsock2.h and gdi32.lib
- This for retrieving source from Github.
- Ensure that 7z.exe has been added to the PATH.
Execute the following step to download the latest source code
Execute the following commands within a command shell to download all dependencies:
1. Getting dependencies
Note: The 'Debug'-configuration is also supported.
Execute the following commands within a command shell to build the project:
First generate the lattice solution and visual studio project files
Note: In-source build (running cmake in root directory) is not currently supported.
double click on lattice.sln, open open project and then click Build
, or:
compile from command line
Note: The 'Debug'-configuration is also supported.
After setting up the dependencies and running your first successful build, unless there are changes to any of the dependencies, you can make a fresh build from the latest code much faster by just fetching the new code and rebuilding.
In the directory C:\cpp-
lattice>
, run the command git pull
.
Enter C:\cpp-
lattice\build>
and remove CMakeCache.txt
Re-run steps 2 & 3.