Difference between revisions of "HICN/Windows"

From fd.io
Jump to: navigation, search
(Install dependency)
(Build)
Line 6: Line 6:
 
===Install Microsoft vcpkg===
 
===Install Microsoft vcpkg===
 
<pre>
 
<pre>
$ git clone https://github.com/Microsoft/vcpkg.git
+
$ make vcpkg
$ 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
+
</pre>
+
===Build Libparc===
+
<pre>
+
$ 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 ..\..\..\..
+
 
</pre>
 
</pre>
 +
===Build hICN stack===
 +
make all
  
===Build hICN===
 
<pre>
 
$ cd hicn-fdio
 
$ git clone https://github.com/FDio/hicn.git
 
$ 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
 
 
</pre>
 
</pre>

Revision as of 09:27, 30 March 2020

Build

Install dependency

  1. Download the file init.bat
  2. Execute the script init.bat

Install Microsoft vcpkg

$ make vcpkg

Build hICN stack

make all

</pre>