Difference between revisions of "HICN/Windows"

From fd.io
Jump to: navigation, search
(Build Libparc)
Line 26: Line 26:
 
$ cd hicn-fdio
 
$ cd hicn-fdio
 
$ set hicn-fdio_path=%cd%
 
$ set hicn-fdio_path=%cd%
$ git clone -b cframework/master https://gerrit.fd.io/r/cicn cframework
+
$ git clone -b cframework/master https://github.com/FDio/cicn.git cframework
 
$ cd cframework\libparc
 
$ cd cframework\libparc
 
$ mkdir build
 
$ mkdir build
Line 35: Line 35:
 
$ cd ..\..\..\..
 
$ cd ..\..\..\..
 
</pre>
 
</pre>
 +
 
===Build hICN===
 
===Build hICN===
 
<pre>
 
<pre>

Revision as of 15:12, 26 September 2019

Build

Install dependency

  1. Install Visual Studio 2017
  2. Install Windows 10 SDK
  3. Install Git
  4. Install CMake

Install Microsoft vcpkg

$ git clone https://github.com/Microsoft/vcpkg.git
$ cd vcpkg
$ set vcpkg_path=%cd%
$ .\bootstrap-vcpkg.bat
$ .\vcpkg integrate install
$ .\vcpkg install libevent:x64-windows
$ .\vcpkg install openssl:x64-windows
$ .\vcpkg install pthreads:x64-windows
$ .\vcpkg install curl:x64-windows
$ .\vcpkg install asio:x64-windows
$ set PATH=%PATH%;%vcpkg_path%\installed\x64-windows\bin

Build Libparc

$ cd ..
$ mkdir hicn-fdio
$ cd hicn-fdio
$ set hicn-fdio_path=%cd%
$ git clone -b cframework/master https://github.com/FDio/cicn.git cframework
$ cd cframework\libparc
$ mkdir build
$ cd build
$ cmake .. -G"NMake Makefiles" -DCMAKE_TOOLCHAIN_FILE="%vcpkg_path%/scripts/buildsystems/vcpkg.cmake" ^
-DCMAKE_INSTALL_PREFIX="%hicn-fdio_path%/install" -DCMAKE_BUILD_TYPE="Release"
$ nmake install
$ cd ..\..\..\..

Build hICN

$ cd hicn-fdio
$ git clone https://gerrit.fd.io/r/hicn
$ cd hicn
$ mkdir build
$ cd build
$ cmake .. -G"NMake Makefiles" -DCMAKE_TOOLCHAIN_FILE="%vcpkg_path%/scripts/buildsystems/vcpkg.cmake" ^
-DCMAKE_INSTALL_PREFIX="%hicn-fdio_path%/install" -DLIBPARC_HOME="%hicn-fdio_path%/install" -DCMAKE_BUILD_TYPE="Release"
$ nmake install